PHP 인터페이스 Prado\Security\IUser

This interface must be implemented by user objects.
부터: 3.0
저자: Qiang Xue ([email protected])
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
getIsGuest ( ) : boolean
getName ( ) : string
getRoles ( ) : array
isInRole ( $role ) : boolean
loadFromString ( $string ) : Prado\Security\IUser
saveToString ( ) : string
setIsGuest ( $value )
setName ( $value )
setRoles ( $value ) : array | string

메소드 상세

getIsGuest() 공개 메소드

public getIsGuest ( ) : boolean
리턴 boolean if the user is a guest

getName() 공개 메소드

public getName ( ) : string
리턴 string username

getRoles() 공개 메소드

public getRoles ( ) : array
리턴 array list of roles that the user is of

isInRole() 공개 메소드

public isInRole ( $role ) : boolean
리턴 boolean whether the user is of this role

loadFromString() 공개 메소드

public loadFromString ( $string ) : Prado\Security\IUser
리턴 Prado\Security\IUser the user object

saveToString() 공개 메소드

public saveToString ( ) : string
리턴 string user data that is serialized and will be stored in session

setIsGuest() 공개 메소드

public setIsGuest ( $value )

setName() 공개 메소드

public setName ( $value )

setRoles() 공개 메소드

public setRoles ( $value ) : array | string
리턴 array | string list of roles that the user is of. If it is a string, roles are assumed by separated by comma