HTML_Table::setRowAttributes()

HTML_Table::setRowAttributes() – 行の属性を設定する

Synopsis

require_once 'HTML/Table.php';

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

Description

既存の行の属性を設定します。

Parameter

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

  • mixed $attributes - 連想配列あるいは文字列で指定する、テーブルの行の属性。 これは属性の配列とすることも可能で、その場合には、 ループ内でそれらの属性が繰り返されます。

  • boolean $inTR - FALSE を指定すると、属性を td タグに対して設定します。 TRUE を指定すると、属性を tr タグに対して設定します。

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