previousHTML_Table::setRowType() (Previous) (Next) HTML_Table::toHtml()next

View this page in Last updated: Tue, 02 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

HTML_Table::setRowAttributes()

HTML_Table::setRowAttributes() – Set row attributes

Synopsis

require_once 'HTML/Table.php';

void HTML_Table::setRowAttributes ( int $row , mixed $attributes , boolean $inTR = false , int $body=0 )

Description

Sets the attributes for an existing row

Parameter

  • int $row - Row index

  • mixed $attributes - Associative array or string of table row attributes. This can also be an array of attributes, in which case the attributes will be repeated in a loop.

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

  • int $body - The number of the tbody group that should be used

Throws

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.

previousHTML_Table::setRowType() (Previous) (Next) HTML_Table::toHtml()next

Download Documentation Last updated: Tue, 02 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.