PHP 클래스 Redaxscript\Auth

부터: 3.0.0
저자: Henry Ruhs
파일 보기 프로젝트 열기: redaxmedia/redaxscript 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_callArray array array of the call
$_permissionArray array array of the permission
$_request object instance of the request class
$_typeArray array array of the type
$_userArray array array of the user

공개 메소드들

메소드 설명
__call ( string $method = null, array $argumentArray = [] ) : mixed call method as needed
__construct ( Request $request ) constructor of the class
getPermission ( string $key = null ) : mixed get the permission
getStatus ( ) : boolean get the auth status
getUser ( string $key = null ) : mixed get the user
init ( ) init the class
login ( integer $userId = null ) : boolean login the user
logout ( ) : boolean logout the user
save ( ) : boolean save user and permission
setPermission ( string $key = null, integer $value = null ) set the permission
setUser ( string $key = null, string $value = null ) set the user

메소드 상세

__call() 공개 메소드

call method as needed
부터: 3.0.0
public __call ( string $method = null, array $argumentArray = [] ) : mixed
$method string name of the method
$argumentArray array arguments of the method
리턴 mixed

__construct() 공개 메소드

constructor of the class
부터: 3.0.0
public __construct ( Request $request )
$request Request instance of the request class

getPermission() 공개 메소드

get the permission
부터: 3.0.0
public getPermission ( string $key = null ) : mixed
$key string key of the permission
리턴 mixed

getStatus() 공개 메소드

get the auth status
부터: 3.0.0
public getStatus ( ) : boolean
리턴 boolean

getUser() 공개 메소드

get the user
부터: 3.0.0
public getUser ( string $key = null ) : mixed
$key string key of the user
리턴 mixed

init() 공개 메소드

init the class
부터: 3.0.0
public init ( )

login() 공개 메소드

login the user
부터: 3.0.0
public login ( integer $userId = null ) : boolean
$userId integer identifier of the user
리턴 boolean

logout() 공개 메소드

logout the user
부터: 3.0.0
public logout ( ) : boolean
리턴 boolean

save() 공개 메소드

save user and permission
부터: 3.0.0
public save ( ) : boolean
리턴 boolean

setPermission() 공개 메소드

set the permission
부터: 3.0.0
public setPermission ( string $key = null, integer $value = null )
$key string key of the permission
$value integer value of the permission

setUser() 공개 메소드

set the user
부터: 3.0.0
public setUser ( string $key = null, string $value = null )
$key string key of the user
$value string value of the user

프로퍼티 상세

$_callArray 보호되어 있는 프로퍼티

array of the call
protected array $_callArray
리턴 array

$_permissionArray 보호되어 있는 프로퍼티

array of the permission
protected array $_permissionArray
리턴 array

$_request 보호되어 있는 프로퍼티

instance of the request class
protected object $_request
리턴 object

$_typeArray 보호되어 있는 프로퍼티

array of the type
protected array $_typeArray
리턴 array

$_userArray 보호되어 있는 프로퍼티

array of the user
protected array $_userArray
리턴 array