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.