[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/Horde/Form/Action/ -> conditional_enable.php (sommaire)

(pas de description)

Poids: 52 lignes (2 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Horde_Form_Action_conditional_enable:: (1 méthode):
  getActionScript()


Classe: Horde_Form_Action_conditional_enable  - X-Ref

Horde_Form_Action_conditional_enable 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:
<pre>
$params = array(
'target'  => '[name of element this is conditional on]',
'enabled' => 'true' | 'false',
'values'  => array([target values to check])
);
</pre>

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/conditional_enable.php,v 1.4.10.3 2006/01/01 21:28:17 jan Exp $

Copyright 2002-2006 Matt Kynaston <matt@kynx.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.

getActionScript(&$form, $renderer, $varname)   X-Ref
Pas de description



Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7