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 JAccessRule instead.
14 *
15 * @since 1.6
16 * @deprecated 2.5
17 */
18 class JRule extends JAccessRule
19 {
20 /**
21 * Constructor.
22 *
23 * The input array must be in the form: array(-42 => true, 3 => true, 4 => false)
24 * or an equivalent JSON encoded string.
25 *
26 * @param mixed $identities A JSON format string (probably from the database) or a named array.
27 *
28 * @since 1.6
29 * @deprecated 2.5
30 */
31 public function __construct($identities)
32 {
33 JLog::add('JRule is deprecated. Use JAccessRule instead.', JLog::WARNING, 'deprecated');
34 parent::__construct($identities);
35 }
36 }
37