Joomla Platform  13.1
Documentation des API du framework Joomla Platform
 Tout Classes Espaces de nommage Fichiers Fonctions Variables Pages
rule.php
Aller à la documentation de ce fichier.
1 <?php
2 /**
3  * @package Joomla.Legacy
4  * @subpackage Access
5  *
6  * @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
7  * @license GNU General Public License version 2 or later; see LICENSE
8  */
9 
10 defined('JPATH_PLATFORM') or die;
11 
12 /**
13  * Deprecated class placeholder. You should use JAccessRule instead.
14  *
15  * @package Joomla.Legacy
16  * @subpackage Access
17  * @since 11.1
18  * @deprecated 12.3 (Platform) & 4.0 (CMS)
19  * @codeCoverageIgnore
20  */
21 class JRule extends JAccessRule
22 {
23  /**
24  * Constructor.
25  *
26  * The input array must be in the form: array(-42 => true, 3 => true, 4 => false)
27  * or an equivalent JSON encoded string.
28  *
29  * @param mixed $identities A JSON format string (probably from the database) or a named array.
30  *
31  * @since 11.1
32  * @deprecated 12.3
33  */
34  public function __construct($identities)
35  {
36  JLog::add('JRule is deprecated. Use JAccessRule instead.', JLog::WARNING, 'deprecated');
37  parent::__construct($identities);
38  }
39 }