/libraries/legacy/access/rules.php
https://bitbucket.org/eternaware/joomus · PHP · 38 lines · 10 code · 2 blank · 26 comment · 0 complexity · 58123e9a43c7a574f434258108f5e259 MD5 · raw file
- <?php
- /**
- * @package Joomla.Legacy
- * @subpackage Access
- *
- * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
- * @license GNU General Public License version 2 or later; see LICENSE
- */
- defined('JPATH_PLATFORM') or die;
- /**
- * Deprecated class placeholder. You should use JAccessRules instead.
- *
- * @package Joomla.Legacy
- * @subpackage Access
- * @since 11.1
- * @deprecated 12.3
- */
- class JRules extends JAccessRules
- {
- /**
- * Constructor.
- *
- * The input array must be in the form: array('action' => array(-42 => true, 3 => true, 4 => false))
- * or an equivalent JSON encoded string, or an object where properties are arrays.
- *
- * @param mixed $input A JSON format string (probably from the database) or a nested array.
- *
- * @since 11.1
- * @deprecated 12.3
- */
- public function __construct($input = '')
- {
- JLog::add('JRules is deprecated. Use JAccessRules instead.', JLog::WARNING, 'deprecated');
- parent::__construct($input);
- }
- }