1 <?php
2 /**
3 * @package Joomla.Legacy
4 * @subpackage Access
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.txt
8 */
9
10 defined('JPATH_PLATFORM') or die;
11
12 /**
13 * Deprecated class placeholder. You should use JAccessRules instead.
14 *
15 * @since 1.6
16 * @deprecated 2.5
17 */
18 class JRules extends JAccessRules
19 {
20 /**
21 * Constructor.
22 *
23 * The input array must be in the form: array('action' => array(-42 => true, 3 => true, 4 => false))
24 * or an equivalent JSON encoded string, or an object where properties are arrays.
25 *
26 * @param mixed $input A JSON format string (probably from the database) or a nested array.
27 *
28 * @since 1.6
29 * @deprecated 2.5
30 */
31 public function __construct($input = '')
32 {
33 JLog::add('JRules is deprecated. Use JAccessRules instead.', JLog::WARNING, 'deprecated');
34 parent::__construct($input);
35 }
36 }
37