HTML_QuickForm::accept() (Previous) (Next) HTML_QuickForm::toArray()

View this page in Last updated: Sun, 31 Aug 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

HTML_QuickForm::defaultRenderer()

HTML_QuickForm::defaultRenderer() -- デフォルトレンダラオブジェクトへの参照を返す

説明

デフォルトレンダラオブジェクトへの参照を返します。 次のように使用することで、


<?php
$renderer =& $form->defaultRenderer();
?>

以下のように書くのにくらべてほんの少しだけタイプ量を減らせます。

<?php
require_once 'HTML/QuickForm/Renderer/Default.php';

$renderer =& new HTML_QuickForm_Renderer_Default();
?>

また、これは内部的には toHtml() および廃止予定のいくつかのメソッドを実装するために使用されています。

返り値

デフォルトレンダラオブジェクトを返します。

例外・エラー

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

注意

since 3.0

この関数は、スタティックにコールする ことができます。

HTML_QuickForm::accept() (Previous) (Next) HTML_QuickForm::toArray()

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