Curry
PHP Framework

core

db

html

utility

HtmlTableRow::setCellValue

public HtmlTableRow setCellValue ( string $columnKey, string|HtmlElement $value )
セルの値を設定します。
指定の列キーのセルが存在しない場合はセルを作成し、値を設定します。
存在する場合はそのセルの値を更新します。

パラメーター

名前 内容
$columnKey string 列キー
$value string|HtmlElement セルの子ノードとして設定する値を指定します。
この値はテキストやエレメント、またはそれらを配列として復数指定することも出来ます。

返り値

自身のインスタンスを返します。