当前位置: 首页>>代码示例>>PHP>>正文


PHP UsersHelper::actions方法代码示例

本文整理汇总了PHP中UsersHelper::actions方法的典型用法代码示例。如果您正苦于以下问题:PHP UsersHelper::actions方法的具体用法?PHP UsersHelper::actions怎么用?PHP UsersHelper::actions使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在UsersHelper的用法示例。


在下文中一共展示了UsersHelper::actions方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getActions

 /**
  * Gets a list of the actions that can be performed.
  *
  * @return  Object
  *
  * @since   1.6
  * @todo    Refactor to work with notes
  */
 public static function getActions()
 {
     if (empty(self::$actions)) {
         self::$actions = new \Hubzero\Base\Object();
         $actions = JAccess::getActions('com_users');
         foreach ($actions as $action) {
             self::$actions->set($action->name, User::authorise($action->name, 'com_users'));
         }
     }
     return self::$actions;
 }
开发者ID:kevinwojo,项目名称:hubzero-cms,代码行数:19,代码来源:users.php

示例2: getActions

 /**
  * Gets a list of the actions that can be performed.
  *
  * @return  JObject
  *
  * @since   1.6
  * @todo    Refactor to work with notes
  */
 public static function getActions()
 {
     if (empty(self::$actions)) {
         $user = JFactory::getUser();
         self::$actions = new JObject();
         $actions = JAccess::getActions('com_users');
         foreach ($actions as $action) {
             self::$actions->set($action->name, $user->authorise($action->name, 'com_users'));
         }
     }
     return self::$actions;
 }
开发者ID:RuDers,项目名称:JoomlaSQL,代码行数:20,代码来源:users.php

示例3: getActions

 /**
  * Gets a list of the actions that can be performed.
  *
  * @return  JObject
  *
  * @since   1.6
  * @todo    Refactor to work with notes
  */
 public static function getActions()
 {
     if (empty(self::$actions)) {
         $user = JFactory::getUser();
         self::$actions = new JObject();
         $actions = array('core.admin', 'core.manage', 'core.create', 'core.edit', 'core.edit.state', 'core.delete');
         foreach ($actions as $action) {
             self::$actions->set($action, $user->authorise($action, 'com_users'));
         }
     }
     return self::$actions;
 }
开发者ID:vuchannguyen,项目名称:hoctap,代码行数:20,代码来源:users.php


注:本文中的UsersHelper::actions方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。