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

View this page in Last updated: Sun, 21 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

HTML_QuickForm::defaultRenderer()

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

Synopsis

require_once 'HTML/QuickForm.php';

object &HTML_QuickForm::defaultRenderer ( ( void )

Description

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

<?php
$renderer 
=& $form->defaultRenderer();
?>
以下のように書くのにくらべてほんの少しだけタイプ量を減らせます。

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

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

Return value

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

Throws

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

Note

since 3.0

This function can be called statically.

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

Download Documentation Last updated: Sun, 21 Jun 2009
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.