1 <?php
2 /**
3 * @package Joomla.Platform
4 * @subpackage Form
5 *
6 * @copyright Copyright (C) 2005 - 2017 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 * @since 11.1
16 */
17 class JFormRuleBoolean extends JFormRule
18 {
19 /**
20 * The regular expression to use in testing a form field value.
21 *
22 * @var string
23 * @since 11.1
24 */
25 protected $regex = '^(?:[01]|true|false)$';
26
27 /**
28 * The regular expression modifiers to use when testing a form field value.
29 *
30 * @var string
31 * @since 11.1
32 */
33 protected $modifiers = 'i';
34 }
35