\Sesha_Form_Property

Copyright 2004-2017 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.

Summary

Methods
Properties
Constants
__construct()
validate()
renderActive()
No public properties found
No constants found
_addParameters()
_buildTypeClassname()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(  $vars) 

Parameters

$vars

validate()

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.

Parameters

\Variables $vars

A Variables instance, optional since Horde 3.2.

$canAutoFill

Returns

boolean —

True if the form is valid.

renderActive()

renderActive(\Horde_Form_Renderer  $renderer, \Variables  $vars, string  $action, string  $method = 'get', string  $enctype = null, boolean  $focus = true) 

Renders the form for editing.

Parameters

\Horde_Form_Renderer $renderer

A renderer instance, optional since Horde 3.2.

\Variables $vars

A Variables instance, optional since Horde 3.2.

string $action

The form action (url).

string $method

The form method, usually either 'get' or 'post'.

string $enctype

The form encoding type. Determined automatically if null.

boolean $focus

Focus the first form field?

_addParameters()

_addParameters(  $vars) 

Parameters

$vars

_buildTypeClassname()

_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

Parameters

string $dataType

The type identifier to turn into a class name

Returns

string —

A class name or an empty string