HTML_QuickForm_element::freeze() -- Freezes the element
Описание
When the element is displayed after the call to freeze(), only its value is displayed without the input tags, thus the element cannot be edited. If persistant freeze is set, then hidden field containing the element value will be output, too.
Throws
throws no exceptions thrown
Заметка
Эта функция не должна вызываться статически.
Пример
Пример 27-1. Freezing the text element require_once 'HTML/QuickForm.php';
$text =& HTML_QuickForm::createElement('text', 'freezeMe');
$text->setValue('Some value');
echo $text->toHtml() . "\n";
$text->freeze();
echo $text->toHtml() . "\n";
$text->setPersistantFreeze(false);
echo $text->toHtml() . "\n"; |
|
Пример 27-2. Output <input name="freezeMe" type="text" value="Some value" />
Some value<input type="hidden" name="freezeMe" value="Some value" />
Some value |
|
HIVE: All information for read only. Please respect copyright! |