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 Mon, 26 Oct 2015 21:54:15 +0100 by phpDocumentor 1.4.3