constructor HTML_QuickForm_text (Previous) (Next) HTML_QuickForm_text::setSize()

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

HTML_QuickForm_text::setMaxlength()

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

Description

This is just a shortcut for


<?php
$element->updateAttributes(array('maxlength' => $maxlength));
?>

Parameter

string $maxlength

Maximum length of text field

Throws

throws no exceptions thrown

Note

since 1.3

This function can not be called statically.

constructor HTML_QuickForm_text (Previous) (Next) HTML_QuickForm_text::setSize()

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.