PHP Класс Sesha_Form_Property, horde

See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.php.
Автор: Bo Daley ([email protected])
Наследование: extends Horde_Form
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( $vars )
renderActive ( Horde_Form_Renderer $renderer, Variables $vars, string $action, string $method = 'get', string $enctype = null, boolean $focus = true ) Renders the form for editing.
validate ( Variables $vars, $canAutoFill = false ) : boolean Validates the form, checking if it really has been submitted by calling isSubmitted() and if true does any onSubmit() calls for variable types in the form. The _submitted variable is then rechecked.

Защищенные методы

Метод Описание
_addParameters ( $vars )
_buildTypeClassname ( string $dataType ) : string Helper method to build either h3 style class names as seen in Horde_Form_Type_ccc or autoloadable class names used in Sesha

Описание методов

__construct() публичный Метод

public __construct ( $vars )

_addParameters() защищенный Метод

protected _addParameters ( $vars )

_buildTypeClassname() защищенный Метод

Helper method to build either h3 style class names as seen in Horde_Form_Type_ccc or autoloadable class names used in Sesha
protected _buildTypeClassname ( string $dataType ) : string
$dataType string The type identifier to turn into a class name
Результат string A class name or an empty string

renderActive() публичный Метод

Renders the form for editing.
public renderActive ( Horde_Form_Renderer $renderer, Variables $vars, string $action, string $method = 'get', string $enctype = null, boolean $focus = true )
$renderer Horde_Form_Renderer A renderer instance, optional since Horde 3.2.
$vars Variables A Variables instance, optional since Horde 3.2.
$action string The form action (url).
$method string The form method, usually either 'get' or 'post'.
$enctype string The form encoding type. Determined automatically if null.
$focus boolean Focus the first form field?

validate() публичный Метод

Validates the form, checking if it really has been submitted by calling isSubmitted() and if true does any onSubmit() calls for variable types in the form. The _submitted variable is then rechecked.
public validate ( Variables $vars, $canAutoFill = false ) : boolean
$vars Variables A Variables instance, optional since Horde 3.2.
Результат boolean True if the form is valid.