\Horde_Form_Action_ConditionalSetValue

Horde_Form_Action_ConditionalSetValue is a Horde_Form_Action that sets the value of one Horde_Form variable based on the value of the variable the action is attached to.

Summary

Methods
Properties
Constants
Horde_Form_Action()
getTrigger()
id()
getActionScript()
printJavaScript()
getTarget()
setValues()
factory()
singleton()
$_id
$_params
$_trigger
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$_id

$_id : 

Type

$_params

$_params : 

Type

$_trigger

$_trigger : array

Which JS events should trigger this action?

Type

array

Methods

Horde_Form_Action()

Horde_Form_Action(  $params = null) 

Parameters

$params

getTrigger()

getTrigger() 

id()

id() 

getActionScript()

getActionScript(  $form,   $renderer,   $varname) 

Parameters

$form
$renderer
$varname

printJavaScript()

printJavaScript() 

getTarget()

getTarget() 

setValues()

setValues(  $vars,   $sourceVal,   $arrayVal = false) 

Parameters

$vars
$sourceVal
$arrayVal

factory()

factory(mixed  $action, array  $params = null) : \Horde_Form_Action

Attempts to return a concrete Horde_Form_Action instance based on $form.

Parameters

mixed $action

The type of concrete Horde_Form_Action subclass to return. If $action is an array, then we will look in $action[0]/lib/Form/Action/ for the subclass implementation named $action[1].php.

array $params

A hash containing any additional configuration a form might need.

Returns

\Horde_Form_Action

The concrete Horde_Form_Action reference, or false on an error.

singleton()

singleton(mixed  $action, array  $params = null) : \Horde_Form_Action

Attempts to return a reference to a concrete Horde_Form_Action instance based on $action. It will only create a new instance if no Horde_Form_Action instance with the same parameters currently exists.

This should be used if multiple types of form renderers (and, thus, multiple Horde_Form_Action instances) are required.

This method must be invoked as: $var = &Horde_Form_Action::singleton()

Parameters

mixed $action

The type of concrete Horde_Form_Action subclass to return. The code is dynamically included. If $action is an array, then we will look in $action[0]/lib/Form/Action/ for the subclass implementation named $action[1].php.

array $params

A hash containing any additional configuration a form might need.

Returns

\Horde_Form_Action

The concrete Horde_Form_Action reference, or false on an error.