20 pers. connectées au site
Manuel Pear
HTML_QuickForm_text::setMaxlength()
HTML_QuickForm_text::setMaxlength() -- Définit la longueur maximale pour un champs texte
Synopsis
- <?php
- require_once 'HTML/QuickForm/text.php
- ?>
void HTML_QuickForm_text::setMaxlength (string $maxlength)
Description
Ceci est un raccourci pour
- <?php
- $element->updateAttributes(array('maxlength' => $maxlength)
- ?>
Paramètres
- chaîne de caractères $maxlength
-
Longueur maximale pour un champs texte
Valeurs renvoyées
Aucune exception n'est lancée.
Note
Disponible depuis la version 1.3.
Cette fonction ne peut pas être appelée de façon statique.
Remonter