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
Inherited from Horde_Form_Action
Horde_Form_Action::$_id
Horde_Form_Action::$_params
Inherited From Horde_Form_Action
Horde_Form_Action::Horde_Form_Action()
Horde_Form_Action::factory()
Horde_Form_Action::getActionScript()
Horde_Form_Action::getTarget()
Horde_Form_Action::getTrigger()
Horde_Form_Action::id()
Horde_Form_Action::printJavaScript()
Horde_Form_Action::setValues()
Horde_Form_Action::singleton()
Horde_Form_Action::_printJavaScriptEnd()
Horde_Form_Action::_printJavaScriptStart()
Documentation generated on Sun, 30 Jan 2011 05:15:56 +0000 by phpDocumentor 1.4.3