HTML_QuickForm_text::setMaxlength()

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

Synopsis

require_once 'HTML/QuickForm/text.php';

void HTML_QuickForm_text::setMaxlength (string $maxlength)

Beschreibung

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

Parameter

string $maxlength

Maximum length of text field

Fehler-Meldungen

throws no exceptions thrown

Hinweise

since 1.3

Diese Methode kann nicht statisch aufgerufen werden.