PHP 클래스 EzRbacHook

A Simple Codeigniter Hook To handle all controller request
저자: Roni Kumar Saha ([email protected])
파일 보기 프로젝트 열기: xiidea/ezrbac

공개 메소드들

메소드 설명
__construct ( ) Constructor to initial all data and libraries
__destruct ( ) Doing all cleanup stuff We haven't forgot to remove the package path after finishing everything!.
accessCheck ( ) : boolean The access Checking function

비공개 메소드들

메소드 설명
end_now ( ) terminate the execution within the script! we will be stop here and further execution will be stopped I have not found anything to detect the exit , so doing it manually!! Hope the pice of code will not be necessary when i figure it out!!!
isPublicRequest ( ) : boolean Check if the request belongs to a public resource or not
loadConfiguration ( ) Load ezrbac configuration, the configuration can now put in application/config/ez_rbac.php also This way if user update this library the changed configuration can stay unchaged
load_libraries ( ) Load all system libraries and helpers needed by the library
manage_access ( ) : boolean This method will handle all library specific url like namege rbac or logout
restrict_access ( ) This method trigger when a restricted resource accessed

메소드 상세

__construct() 공개 메소드

Constructor to initial all data and libraries
public __construct ( )

__destruct() 공개 메소드

We do not need to load third party resources anymore!
public __destruct ( )

accessCheck() 공개 메소드

The access Checking function
public accessCheck ( ) : boolean
리턴 boolean