HTML_QuickForm_text::setMaxlength()

HTML_QuickForm_text::setMaxlength() – Définit la longueur maximale pour un champs texte

Synopsis

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));
?>

Parameter

string $maxlength

Longueur maximale pour un champs texte

Throws

No exceptions thrown.

Note

Disponible depuis la version 1.3.

This function can not be called statically.