PHP 클래스 Acl\Adapter\IniAcl

상속: implements Acl\AclInterface
파일 보기 프로젝트 열기: cakephp/acl 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$userPath string The Hash::extract() path to the user/aro identifier in the acl.ini file. This path will be used to extract the string representation of a user used in the ini file.

보호된 프로퍼티들

프로퍼티 타입 설명
$_defaultConfig array Default config for this class

공개 메소드들

메소드 설명
__construct ( ) Constructor
allow ( string $aro, string $aco, string $action = "*" ) : void No op method, allow cannot be done with IniAcl
arrayTrim ( array $array ) : array Removes trailing spaces on all array elements (to prepare for searching)
check ( string $aro, string $aco, string $action = null ) : boolean Main ACL check function. Checks to see if the ARO (access request object) has access to the ACO (access control object).Looks at the acl.ini file for permissions (see instructions in /config/acl.ini).
deny ( string $aro, string $aco, string $action = "*" ) : void No op method, deny cannot be done with IniAcl
inherit ( string $aro, string $aco, string $action = "*" ) : void No op method, inherit cannot be done with IniAcl
initialize ( Component $component ) : void Initialize method
readConfigFile ( string $filename ) : array Parses an INI file and returns an array that reflects the INI file's section structure. Double-quote friendly.

메소드 상세

__construct() 공개 메소드

Sets a few default settings up.
public __construct ( )

allow() 공개 메소드

No op method, allow cannot be done with IniAcl
public allow ( string $aro, string $aco, string $action = "*" ) : void
$aro string ARO The requesting object identifier.
$aco string ACO The controlled object identifier.
$action string Action (defaults to *)
리턴 void

arrayTrim() 공개 메소드

Removes trailing spaces on all array elements (to prepare for searching)
public arrayTrim ( array $array ) : array
$array array Array to trim
리턴 array Trimmed array

check() 공개 메소드

Main ACL check function. Checks to see if the ARO (access request object) has access to the ACO (access control object).Looks at the acl.ini file for permissions (see instructions in /config/acl.ini).
public check ( string $aro, string $aco, string $action = null ) : boolean
$aro string ARO
$aco string ACO
$action string Action
리턴 boolean Success

deny() 공개 메소드

No op method, deny cannot be done with IniAcl
public deny ( string $aro, string $aco, string $action = "*" ) : void
$aro string ARO The requesting object identifier.
$aco string ACO The controlled object identifier.
$action string Action (defaults to *)
리턴 void

inherit() 공개 메소드

No op method, inherit cannot be done with IniAcl
public inherit ( string $aro, string $aco, string $action = "*" ) : void
$aro string ARO The requesting object identifier.
$aco string ACO The controlled object identifier.
$action string Action (defaults to *)
리턴 void

initialize() 공개 메소드

Initialize method
public initialize ( Component $component ) : void
$component Cake\Controller\Component Component instance.
리턴 void

readConfigFile() 공개 메소드

Parses an INI file and returns an array that reflects the INI file's section structure. Double-quote friendly.
public readConfigFile ( string $filename ) : array
$filename string File
리턴 array INI section structure

프로퍼티 상세

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

Default config for this class
protected array $_defaultConfig
리턴 array

$userPath 공개적으로 프로퍼티

The Hash::extract() path to the user/aro identifier in the acl.ini file. This path will be used to extract the string representation of a user used in the ini file.
public string $userPath
리턴 string