Example #1
0
 /**
  * Sets the Factory pointers
  *
  * @return  void
  */
 protected function restoreFactoryState()
 {
     \JFactory::$application = $this->savedFactoryState['application'];
     \JFactory::$config = $this->savedFactoryState['config'];
     \JFactory::$dates = $this->savedFactoryState['dates'];
     \JFactory::$session = $this->savedFactoryState['session'];
     \JFactory::$language = $this->savedFactoryState['language'];
     \JFactory::$document = $this->savedFactoryState['document'];
     \JFactory::$acl = $this->savedFactoryState['acl'];
     \JFactory::$database = $this->savedFactoryState['database'];
     \JFactory::$mailer = $this->savedFactoryState['mailer'];
 }
Example #2
0
 /**
  * Get an authorization object
  *
  * Returns the global {@link JAccess} object, only creating it
  * if it doesn't already exist.
  *
  * @return  JAccess object
  */
 public static function getACL()
 {
     if (!self::$acl) {
         self::$acl = new JAccess();
     }
     return self::$acl;
 }
Example #3
0
 /**
  * Get an authorization object
  *
  * Returns the global {@link JAccess} object, only creating it
  * if it doesn't already exist.
  *
  * @return JAccess object
  *
  * @deprecated  13.3  Use JAccess directly.
  */
 public static function getACL()
 {
     JLog::add(__METHOD__ . ' is deprecated. Use JAccess directly.', JLog::WARNING, 'deprecated');
     if (!self::$acl) {
         self::$acl = new JAccess();
     }
     return self::$acl;
 }
Example #4
0
 /**
  * Get an authorization object
  *
  * Returns the global {@link JACL} object, only creating it
  * if it doesn't already exist.
  *
  * @return JACL object
  */
 public static function getACL()
 {
     if (!self::$acl) {
         jimport('joomla.access.access');
         self::$acl = new JAccess();
     }
     return self::$acl;
 }
Example #5
0
 /**
  * Get an authorization object
  *
  * Returns the global {@link JACL} object, only creating it
  * if it doesn't already exist.
  *
  * @return object JACL
  */
 public static function getACL()
 {
     if (!is_object(JFactory::$acl)) {
         jimport('joomla.access.access');
         JFactory::$acl = new JAccess();
     }
     return JFactory::$acl;
 }