PEAR Manual
Prev |  | Next

# HTML_Table::updateRowAttributes

HTML_Table::updateRowAttributes -- Update row attributes

## Synopsis

    require_once "HTML/Table.php";

``void HTML_Table::updateRowAttributes` (int $row [, mixed $attributes = `NULL` [, boolean $inTR = `FALSE`]])`

## Description

Updates the row attributes for an existing row

## Parameter

- `int $row` - Row index

- `mixed $attributes` - Associative array or string of table row attributes

- `boolean $inTR` - `FALSE` if attributes are to be applied in `td` tags; `TRUE`, if attributes are to be applied in `tr` tag.

## Throws

Table 41-1. Possible PEAR_Error values

Error code | Error message | Meaning | Solution
--- | --- | --- | ---
| " Invalid table row reference [`$row`] " | The row `$row` does not exists | Enable the `autoGrow` feature
| " Invalid table column reference [`$column`] " | The column `$column` does not exists | Enable the `autoGrow` feature

## Note

This function can not be called statically.

Prev | Home | Next
HTML_Table::updateColAttributes | Up | HTML_Template_Flexy