$_id
$_id :
Horde_Form_Action_sum_fields is a Horde_Form_Action that sets the target field to the sum of one or more other numeric fields.
The params array should contain the names of the fields which will be summed.
factory(mixed $action, array $params = null) : \Horde_Form_Action
Attempts to return a concrete Horde_Form_Action instance based on $form.
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. |
The concrete Horde_Form_Action reference, or false on an error.
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()
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. |
The concrete Horde_Form_Action reference, or false on an error.