previousHTML_Table::setCaption() (Previous) (Next) HTML_Table::setCellContents()next

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

HTML_Table::setCellAttributes()

HTML_Table::setCellAttributes() – セルの属性を設定する

Synopsis

require_once 'HTML/Table.php';

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

Description

既存のセルに対してセルの属性を設定します。指定したインデックスが存在せず、 かつ autoGrowTRUE の場合は、 指定した行や列が自動的に追加されます。 autoGrowFALSE の場合はエラーが返されます。

Parameter

  • int $row - 行インデックス。

  • int $col - 列インデックス。

  • mixed $attributes - テーブルのセルの属性を表す連想配列あるいは文字列。

  • int $body - 使用する tbody グループの番号。

Throws

Possible PEAR_Error values
エラーコード エラーメッセージ 意味 対応
  " Invalid table row reference [$row ] " $row が存在しません autoGrow 機能を有効にします
  " Invalid table column reference [$column ] " $column が存在しません autoGrow 機能を有効にします

Note

This function can not be called statically.

previousHTML_Table::setCaption() (Previous) (Next) HTML_Table::setCellContents()next

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