當前位置: 首頁>>代碼示例>>PHP>>正文


PHP JFactory::acl方法代碼示例

本文整理匯總了PHP中JFactory::acl方法的典型用法代碼示例。如果您正苦於以下問題:PHP JFactory::acl方法的具體用法?PHP JFactory::acl怎麽用?PHP JFactory::acl使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在JFactory的用法示例。


在下文中一共展示了JFactory::acl方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: restoreFactoryState

 /**
  * 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'];
 }
開發者ID:Joal01,項目名稱:fof,代碼行數:17,代碼來源:FOFTestCase.php

示例2: getACL

 /**
  * 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;
 }
開發者ID:renzhewk,項目名稱:joomla-platform,代碼行數:15,代碼來源:factory.php

示例3: getACL

 /**
  * 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;
 }
開發者ID:houzhenggang,項目名稱:cobalt,代碼行數:18,代碼來源:factory.php

示例4: getACL

 /**
  * 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;
 }
開發者ID:Joomla-on-NoSQL,項目名稱:LaMojo,代碼行數:16,代碼來源:factory.php

示例5: getACL

 /**
  * 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;
 }
開發者ID:joebushi,項目名稱:joomla,代碼行數:16,代碼來源:factory.php


注:本文中的JFactory::acl方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。