选择语言 :

Core_Permission

权限类

API - Core_Permission

author
呼吸二氧化碳 jonwang@myqee.com
category
MyQEE
package
System
subpackage
Core
copyright
Copyright © 2008-2013 myqee.com
license
http://www.myqee.com/license.html

$this->__construct( )


$this->is_own( $key1 , $key2 = null, $key3 = null)

判断是否拥有指定权限,支持复合权限

//检查单个权限 $this->is_own('perm2');

//检查复合权限 $this->is_own('perm2','perm2');

参数列表

参数 类型 描述 默认值
$key1 string $key
$key2 ... null
$key3 unknown null
返回值
  • boolean

$this->is_super_perm( )

是否超级管理权限

返回值
  • boolean

$this->get_setting( )

获取配置

返回值
  • array