本文整理汇总了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('*')));
}
示例2: getAdminsAndRoot
public static function getAdminsAndRoot()
{
$arr = UserModule::getAdmins();
array_push($arr, 'root');
return $arr;
}
示例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('*')));
}
示例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('*')));
}
示例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('*')));
}
示例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('*')));
}