HTML_QuickForm_text::setMaxlength()

HTML_QuickForm_text::setMaxlength() – テキストフィールドの最大長を設定する

Synopsis

require_once 'HTML/QuickForm/text.php';

void HTML_QuickForm_text::setMaxlength ( string $maxlength )

Description

これは、単に以下の処理と同じことをします。

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

Parameter

string $maxlength

テキストフィールドの最大長。

Throws

例外はスローされません。

Note

since 1.3

This function can not be called statically.