Source for file jFormsControlSwitch.class.php

Documentation is available at jFormsControlSwitch.class.php

  1. <?php
  2. /**
  3. @package     jelix
  4. @subpackage  forms
  5. @author      Laurent Jouanneau
  6. @copyright   2006-2008 Laurent Jouanneau
  7. @link        http://www.jelix.org
  8. @licence     http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file
  9. */
  10.  
  11. /**
  12.  * switch
  13.  * @package     jelix
  14.  * @subpackage  forms
  15.  * @experimental
  16.  */
  17. class jFormsControlSwitch extends jFormsControlChoice {
  18.     public $type="switch";
  19.  
  20.  
  21.     function setValueFromRequest($request{
  22.         //$this->setData($request->getParam($this->ref,''));
  23.         if(isset($this->items[$this->container->data[$this->ref]])){
  24.             foreach($this->items[$this->container->data[$this->ref]] as $name=>$ctrl{
  25.                 $ctrl->setValueFromRequest($request);
  26.             }
  27.         }
  28.     }
  29. }

Documentation generated on Mon, 26 Oct 2015 21:54:15 +0100 by phpDocumentor 1.4.3