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
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 메소드들

메소드 설명
__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.