Class Horde_Form_Action_ConditionalEnable

Description

Horde_Form_Action_ConditionalEnable is a Horde_Form_Action that enables or disables an element based on the value of another element

Format of the $params passed to the constructor:

  $params = array(
      'target'  => '[name of element this is conditional on]',
      'enabled' => 'true' | 'false',
      'values'  => array([target values to check])
  );

So $params = array('foo', 'true', array(1, 2)) will enable the field this action is attached to if the value of 'foo' is 1 or 2, and disable it otherwise.

$Horde: framework/Form/Form/Action/ConditionalEnable.php,v 1.3.2.3 2009/01/06 15:23:07 jan Exp $

Copyright 2002-2009 The Horde Project (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

Located in /Form/Form/Action/ConditionalEnable.php (line 29)

Horde_Form_Action
   |
   --Horde_Form_Action_ConditionalEnable
Variable Summary
 mixed $_trigger
Method Summary
 void getActionScript ( &$form,  $renderer,  $varname)
Variables
mixed $_trigger = array('onload') (line 31)

Redefinition of:
Horde_Form_Action::$_trigger

Inherited Variables

Inherited from Horde_Form_Action

Horde_Form_Action::$_id
Horde_Form_Action::$_params
Methods

Documentation generated on Sun, 30 Jan 2011 05:15:56 +0000 by phpDocumentor 1.4.3