Source for file jFormsControlSwitch.class.php
Documentation is available at jFormsControlSwitch.class.php
- <?php
- /**
- * @package jelix
- * @subpackage forms
- * @author Laurent Jouanneau
- * @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 Wed, 24 Sep 2014 21:59:48 +0200 by phpDocumentor 1.4.3