PHP 클래스 mdm\admin\models\AuthItem

부터: 1.0
저자: Misbahul D Munir ([email protected])
상속: extends yii\base\Model
파일 보기 프로젝트 열기: mdmsoft/yii2-admin 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$data
$description
$name
$ruleName
$type

공개 메소드들

메소드 설명
__construct ( Item $item = null, array $config = [] ) Initialize object
addChildren ( array $items ) : integer Adds an item as a child of another item.
attributeLabels ( )
checkRule ( ) Check for rule
find ( string $id ) : null | self Find role
getIsNewRecord ( ) : boolean Check if is new record.
getItem ( ) : Item Get item
getItems ( ) : array Get items
getTypeName ( mixed $type = null ) : string | array Get type name
removeChildren ( array $items ) : integer Remove an item as a child of another item.
rules ( )
save ( ) : boolean Save role to [[\yii\rbac\authManager]]
unique ( ) Check role is unique

메소드 상세

__construct() 공개 메소드

Initialize object
public __construct ( Item $item = null, array $config = [] )
$item yii\rbac\Item
$config array

addChildren() 공개 메소드

Adds an item as a child of another item.
public addChildren ( array $items ) : integer
$items array
리턴 integer

attributeLabels() 공개 메소드

public attributeLabels ( )

checkRule() 공개 메소드

Check for rule
public checkRule ( )

find() 공개 정적인 메소드

Find role
public static find ( string $id ) : null | self
$id string
리턴 null | self

getIsNewRecord() 공개 메소드

Check if is new record.
public getIsNewRecord ( ) : boolean
리턴 boolean

getItem() 공개 메소드

Get item
public getItem ( ) : Item
리턴 yii\rbac\Item

getItems() 공개 메소드

Get items
public getItems ( ) : array
리턴 array

getTypeName() 공개 정적인 메소드

Get type name
public static getTypeName ( mixed $type = null ) : string | array
$type mixed
리턴 string | array

removeChildren() 공개 메소드

Remove an item as a child of another item.
public removeChildren ( array $items ) : integer
$items array
리턴 integer

rules() 공개 메소드

public rules ( )

save() 공개 메소드

Save role to [[\yii\rbac\authManager]]
public save ( ) : boolean
리턴 boolean

unique() 공개 메소드

Check role is unique
public unique ( )

프로퍼티 상세

$data 공개적으로 프로퍼티

public $data

$description 공개적으로 프로퍼티

public $description

$name 공개적으로 프로퍼티

public $name

$ruleName 공개적으로 프로퍼티

public $ruleName

$type 공개적으로 프로퍼티

public $type