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

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

HTML_QuickForm::defaultRenderer()

HTML_QuickForm::defaultRenderer() -- Returns a reference to default renderer object

Description

Returns a reference to default renderer object. You can use this method to save a few keystrokes:


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

instead of

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

$renderer =& new HTML_QuickForm_Renderer_Default();
?>

It is also used internally to implement toHtml() and some of the deprecated methods.

Return value

return default renderer object

Throws

throws no exceptions thrown

Note

since 3.0

This function can be called statically.

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

Download Documentation Last updated: Sun, 28 Sep 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.