CoreFiles by mySites.guru
BooleanRule.php37 lines, 750 bytes, from Joomla_3.9.1-Stable-Full_Package.zip
Raw History Compare with 3.9.0
md5
75127301ec546cd6dccd616aff8ce1e9
sha1
9b37e25d4bd386bcf8bd221f029e5a23c7d3bd86
sha256
9b6e2ea4eb5ecf81976c0021c6479f93ff0b5146ba74b041dfba78ec82a59b17
<?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  1.7.0
 */
class BooleanRule extends FormRule
{
	/**
	 * The regular expression to use in testing a form field value.
	 *
	 * @var    string
	 * @since  1.7.0
	 */
	protected $regex = '^(?:[01]|true|false)$';

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

The same content is in 6 releases, Joomla 3.9.0-rc2 to 4.0.0-alpha6. See them all, or every version of this file.