Structures_DataGrid::setRenderer

Structures_DataGrid::setRenderer() – レンダラを設定する

Synopsis

require_once 'Structures/DataGrid.php';

mixed& Structures_DataGrid::setRenderer ( string $type , array $options = array() )

Description

データグリッドがどのレンダラを使用するかを、 $type および $options に基づいて決定します。 既存のレンダラインスタンスをアタッチするには、かわりに attachRenderer() を使用します。

Parameter

string $type

定義済みのレンダラ文字列。

array $options

レンダリングのオプション。

Return value

レンダラのインスタンスあるいは PEAR_Error を返します。

Throws

例外はスローされません。

See

Structures_DataGrid::attachRenderer() も参照ください。

Note

This function can not be called statically.