Source for file jFormsControlSwitch.class.php
Documentation is available at jFormsControlSwitch.class.php
- <?php
- /**
- * @package jelix
- * @subpackage forms
- * @author Laurent Jouanneau
- * @contributor
- * @copyright 2006-2008 Laurent Jouanneau
- * @link http://www.jelix.org
- * @licence http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file
- */
-
- /**
- * switch
- * @package jelix
- * @subpackage forms
- * @experimental
- */
- class jFormsControlSwitch extends jFormsControlChoice {
- public $type="switch";
-
-
- function setValueFromRequest($request) {
- //$this->setData($request->getParam($this->ref,''));
- if(isset($this->items[$this->container->data[$this->ref]])){
- foreach($this->items[$this->container->data[$this->ref]] as $name=>$ctrl) {
- $ctrl->setValueFromRequest($request);
- }
- }
- }
- }
Documentation generated on Thu, 22 Mar 2012 22:16:03 +0100 by phpDocumentor 1.4.3