Source for file jFormsControlRadiobuttons.class.php
Documentation is available at jFormsControlRadiobuttons.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
- */
-
- /**
- * control which contains several radio buttons
- * @package jelix
- * @subpackage forms
- */
- class jFormsControlRadiobuttons extends jFormsControlDatasource {
- public $type="radiobuttons";
- public $defaultValue='';
- function check(){
- if($this->container->data[$this->ref] == '' && $this->required) {
- return $this->container->errors[$this->ref] = jForms::ERRDATA_REQUIRED;
- }
- return null;
- }
- }
Documentation generated on Thu, 22 Mar 2012 22:16:01 +0100 by phpDocumentor 1.4.3