Class Sesha_Forms_Property
Copyright 2004-2012 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (GPL). If you
did not receive this file, see http://www.horde.org/licenses/gpl.php.
-
Horde_Form
-
Sesha_Forms_Property
Methods summary
public
|
|
public
boolean
|
#
validate( Variables $vars, boolean $canAutoFill = false )
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.
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.
Parameters
- $vars
- <p>A Variables instance, optional since Horde
3.2.</p>
- $canAutoFill
- <p>Can the form be valid without being
submitted?</p>
Returns
boolean True if the form is valid.
|
public
|
#
renderActive( Horde_Form_Renderer $renderer, Variables $vars, string $action, string $method = 'get', string $enctype = null, boolean $focus = true )
Renders the form for editing.
Renders the form for editing.
Parameters
- $renderer
- <p>A renderer instance, optional
since Horde 3.2.</p>
- $vars
- <p>A Variables instance, optional
since Horde 3.2.</p>
- $action
- The form action (url).
- $method
- <p>The form method, usually either
'get' or 'post'.</p>
- $enctype
- <p>The form encoding type. Determined
automatically if null.</p>
- $focus
- Focus the first form field?
|