HTML_QuickForm_text::setMaxlength()

HTML_QuickForm_text::setMaxlength() -- Sets maxlength of text field

Referentiesamenvatting

require_once 'HTML/QuickForm/text.php';

void HTML_QuickForm_text::setMaxlength (string $maxlength)

Beschrijving

This is just a shortcut for
$element->updateAttributes(array('maxlength' => $maxlength));

Parameter

string $maxlength

Maximum length of text field

Throws

throws no exceptions thrown

Note

since 1.3

Deze functie kan niet statisch worden aangeroepen.