/libraries/legacy/access/rules.php

https://bitbucket.org/eternaware/joomus · PHP · 38 lines · 10 code · 2 blank · 26 comment · 0 complexity · 58123e9a43c7a574f434258108f5e259 MD5 · raw file

  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. defined('JPATH_PLATFORM') or die;
  10. /**
  11. * Deprecated class placeholder. You should use JAccessRules instead.
  12. *
  13. * @package Joomla.Legacy
  14. * @subpackage Access
  15. * @since 11.1
  16. * @deprecated 12.3
  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 11.1
  29. * @deprecated 12.3
  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. }