HTML_QuickForm_element::accept()

HTML_QuickForm_element::accept() -- Accepts a renderer

Synopsis

require_once 'HTML/QuickForm/element.php';

void HTML_QuickForm_element::accept (object HTML_QuickForm_Renderer &$renderer [, bool $required = FALSE [, string $error = NULL]])

Description

This method rarely needs to be called directly, it is usually called from HTML_QuickForm::accept() method.

Parameter

object HTML_QuickForm_Renderer &$renderer

an instance of HTML_QuickForm_Renderer subclass

boolean $required

Whether an element is required

string $error

An error message associated with an element

Throws

throws no exceptions thrown

Note

This function can not be called statically.