CoreFiles by mySites.guru
BooleanRule.php37 lines, 747 bytes, from Joomla_3.8.13-Stable-Full_Package.zip
Raw History Compare with 3.8.12
md5
5e9b53e92ddb5748b5b08f583c65ffca
sha1
9c1160d7f4eda357c80734c3a9b6cccba346911c
sha256
6d02250fc584b6b3e094d93f2b647da6dbc8cfa5d3c14eaacd140cc6be9ea495
<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Form\Rule;

defined('JPATH_PLATFORM') or die;

use Joomla\CMS\Form\FormRule;

/**
 * Form Rule class for the Joomla Platform.
 *
 * @since  11.1
 */
class BooleanRule extends FormRule
{
	/**
	 * The regular expression to use in testing a form field value.
	 *
	 * @var    string
	 * @since  11.1
	 */
	protected $regex = '^(?:[01]|true|false)$';

	/**
	 * The regular expression modifiers to use when testing a form field value.
	 *
	 * @var    string
	 * @since  11.1
	 */
	protected $modifiers = 'i';
}

The same content is in 26 releases, Joomla 3.8.4-rc to 4.0.0-alpha3. See them all, or every version of this file.