HTML_Table::setCellAttributes()

HTML_Table::setCellAttributes() – Set cell attributes

Synopsis

require_once 'HTML/Table.php';

void HTML_Table::setCellAttributes ( int $row , int $col , mixed $attributes , int $body=0 )

Description

Sets the cell attributes for an existing cell. If the given indices do not exist and autoGrow is TRUE then the given row and/or column is automatically added. If autoGrow is FALSE, an error is returned.

Parameter

  • int $row - Row index

  • int $col - Column index

  • mixed $attributes - Associative array or string of table cell attributes

  • 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.

Set table caption (Previous) Set cell content (Next)
Last updated: Sat, 22 Nov 2014 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.