Source for file rules.php

Documentation is available at rules.php

  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 JAccessRules 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 JRules extends JAccessRules
  22. {
  23.     /**
  24.      * Constructor.
  25.      *
  26.      * The input array must be in the form: array('action' => array(-42 => true, 3 => true, 4 => false))
  27.      * or an equivalent JSON encoded string, or an object where properties are arrays.
  28.      *
  29.      * @param   mixed  $input  A JSON format string (probably from the database) or a nested array.
  30.      *
  31.      * @since   11.1
  32.      * @deprecated  12.3
  33.      */
  34.     public function __construct($input '')
  35.     {
  36.         JLog::add('JRules is deprecated. Use JAccessRules instead.'JLog::WARNING'deprecated');
  37.         parent::__construct($input);
  38.     }
  39. }

Documentation generated on Tue, 19 Nov 2013 15:12:34 +0100 by phpDocumentor 1.4.3