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


PHP UserModule::getAdmins方法代码示例

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


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

示例1: accessRules

 /**
  * Specifies the access control rules.
  * This method is used by the 'accessControl' filter.
  * @return array access control rules
  */
 public function accessRules()
 {
     return array(array('allow', 'actions' => array('admin', 'delete', 'create', 'update', 'view'), 'users' => UserModule::getAdmins()), array('deny', 'users' => array('*')));
 }
开发者ID:akilraj1255,项目名称:rajeshwari,代码行数:9,代码来源:AdminController.php

示例2: getAdminsAndRoot

 public static function getAdminsAndRoot()
 {
     $arr = UserModule::getAdmins();
     array_push($arr, 'root');
     return $arr;
 }
开发者ID:akoch-ov,项目名称:dipstart-development,代码行数:6,代码来源:UserModule.php

示例3: accessRules

 /**
  * Specifies the access control rules.
  * This method is used by the 'accessControl' filter.
  * @return array access control rules
  */
 public function accessRules()
 {
     return array(array('allow', 'actions' => array('pages', 'createpage', 'updatepage', 'blocks', 'createblock', 'updateblock', 'delete', 'deleteblock'), 'users' => UserModule::getAdmins()), array('deny', 'users' => array('*')));
 }
开发者ID:kksshp,项目名称:cms,代码行数:9,代码来源:AdminController.php

示例4: accessRules

 /**
  * Specifies the access control rules.
  * This method is used by the 'accessControl' filter.
  * @return array access control rules
  */
 public function accessRules()
 {
     return array(array('allow', 'actions' => array('admin', 'view', 'customerAdmin', 'viewCustomer', 'editableSaver'), 'users' => UserModule::getAdmins()), array('allow', 'actions' => array('admin', 'delete', 'create', 'update', 'view', 'genCodeCard', 'emailInvitation', 'customerAdmin', 'viewCustomer', 'editableSaver', 'customerAjaxCompanyAdd', 'deleteCustomer'), 'expression' => "Yii::app()->user->checkAccess('UserAdmin')"), array('deny', 'users' => array('*')));
 }
开发者ID:uldisn,项目名称:yii-user,代码行数:9,代码来源:AdminController.php

示例5: accessRules

 /**
  * Specifies the access control rules.
  * This method is used by the 'accessControl' filter.
  * @return array access control rules
  */
 public function accessRules()
 {
     return array(array('allow', 'actions' => array('admin', 'delete', 'create', 'update', 'view'), 'users' => UserModule::getAdmins()), array('allow', 'actions' => array('admin', 'create', 'update', 'view'), 'expression' => "Yii::app()->user->checkAccess('UserAdmin')"), array('deny', 'users' => array('*')));
 }
开发者ID:ivarsju,项目名称:yii-user,代码行数:9,代码来源:AdminController.php

示例6: accessRules

 /**
  * Specifies the access control rules.
  * This method is used by the 'accessControl' filter.
  * @return array access control rules
  */
 public function accessRules()
 {
     return array(array('allow', 'users' => UserModule::getAdmins()), array('deny', 'users' => array('*')));
 }
开发者ID:kosenka,项目名称:yboard,代码行数:9,代码来源:BackendController.php


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