/libraries/legacy/access/rules.php
PHP | 38 lines | 10 code | 2 blank | 26 comment | 0 complexity | 58123e9a43c7a574f434258108f5e259 MD5 | raw file
Possible License(s): LGPL-2.1
1<?php 2/** 3 * @package Joomla.Legacy 4 * @subpackage Access 5 * 6 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. 7 * @license GNU General Public License version 2 or later; see LICENSE 8 */ 9 10defined('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 19 */ 20class JRules extends JAccessRules 21{ 22 /** 23 * Constructor. 24 * 25 * The input array must be in the form: array('action' => array(-42 => true, 3 => true, 4 => false)) 26 * or an equivalent JSON encoded string, or an object where properties are arrays. 27 * 28 * @param mixed $input A JSON format string (probably from the database) or a nested array. 29 * 30 * @since 11.1 31 * @deprecated 12.3 32 */ 33 public function __construct($input = '') 34 { 35 JLog::add('JRules is deprecated. Use JAccessRules instead.', JLog::WARNING, 'deprecated'); 36 parent::__construct($input); 37 } 38}