Source for file boolean.php

Documentation is available at boolean.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Platform
  4.  * @subpackage  Form
  5.  *
  6.  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
  7.  * @license     GNU General Public License version 2 or later; see LICENSE
  8.  */
  9.  
  10. defined('JPATH_PLATFORM'or die;
  11.  
  12. /**
  13.  * Form Rule class for the Joomla Platform.
  14.  *
  15.  * @package     Joomla.Platform
  16.  * @subpackage  Form
  17.  * @since       11.1
  18.  */
  19. class JFormRuleBoolean extends JFormRule
  20. {
  21.     /**
  22.      * The regular expression to use in testing a form field value.
  23.      *
  24.      * @var    string 
  25.      * @since  11.1
  26.      */
  27.     protected $regex = '^(?:[01]|true|false)$';
  28.  
  29.     /**
  30.      * The regular expression modifiers to use when testing a form field value.
  31.      *
  32.      * @var    string 
  33.      * @since  11.1
  34.      */
  35.     protected $modifiers = 'i';
  36. }

Documentation generated on Tue, 19 Nov 2013 14:54:41 +0100 by phpDocumentor 1.4.3