PHP 클래스 Accessmap

A Simple Access Control Mapping Library
저자: Roni Kumar Saha ([email protected])
파일 보기 프로젝트 열기: xiidea/ezrbac

공개 메소드들

메소드 설명
__call ( $method, $arguments ) : boolean Magic function to handle the access mode dynamically
__construct ( array $param = [] )
can ( $action )
getAccessDetails ( ) : array Get all access mode array
get_access_map ( ) : array return the access_map array
get_access_str ( ) : integer return the _access_val
initialize ( $controller, boolean $access_role = FALSE ) Initialize the access checking variables
isGuest ( ) : boolean check if the access is from any loged in user or not by checking the existance of session data
validate ( $access_str ) : String. Return Binary string in a acceptable format

비공개 메소드들

메소드 설명
get_permission ( $controller, boolean | integer $access_role = FALSE ) : Integer. Return User permission value

메소드 상세

__call() 공개 메소드

Magic function to handle the access mode dynamically
public __call ( $method, $arguments ) : boolean
리턴 boolean

Return access mode or false on any undefined function call

__construct() 공개 메소드

public __construct ( array $param = [] )
$param array array get the controller name

can() 공개 메소드

public can ( $action )

getAccessDetails() 공개 메소드

Get all access mode array
public getAccessDetails ( ) : array
리턴 array of access mode.

get_access_map() 공개 메소드

return the access_map array
public get_access_map ( ) : array
리턴 array

get_access_str() 공개 메소드

return the _access_val
public get_access_str ( ) : integer
리턴 integer

initialize() 공개 메소드

Initialize the access checking variables
public initialize ( $controller, boolean $access_role = FALSE )
$controller
$access_role boolean

isGuest() 공개 메소드

check if the access is from any loged in user or not by checking the existance of session data
public isGuest ( ) : boolean
리턴 boolean

validate() 공개 메소드

Return Binary string in a acceptable format
public validate ( $access_str ) : String.
리턴 String.