previousHTML_Table::setCellAttributes (Previous) (Next) HTML_Table::setColAttributesnext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

HTML_Table::setCellContents

HTML_Table::setCellContents – Définit le contenu d'une cellule

Synopsis

require_once 'HTML/Table.php';

void HTML_Table::setCellContents ( int $row , int $col , mixed $contents , string $type='TD' )

Description

Définit le contenu pour une cellule existante. Si l'indices donnés n'existe pas et que autoGrow vaut TRUE alors, la ligne et/ou la colonne donnée sera créée automatiquement. Si autoGrow vaut FALSE, alors une erreur sera retournée.

Parameter

  • int $row - Index de la ligne

  • int $col - Index de la colonne

  • mixed $contents - Peut contenir du HTML ou tous objets avec une méthode toHTML()

  • string $type - Type de cellule, soit 'th' , soit 'td'

Throws

Possible PEAR_Error values
Code erreur Message d'erreur Signification Solution
  " Invalid table row reference [$row ] " La ligne $row n'existe pas Activer la fonctionnalité autoGrow
  " Invalid table column reference [$column ] " La colonne $column n'existe pas Activer la fonctionnalité autoGrow

Note

This function can not be called statically.

previousHTML_Table::setCellAttributes (Previous) (Next) HTML_Table::setColAttributesnext

Download Documentation Last updated: Sun, 18 Oct 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.