PHP Class Acl\Adapter\IniAcl

Inheritance: implements Acl\AclInterface
Afficher le fichier Open project: cakephp/acl Class Usage Examples

Méthodes publiques

Свойство Type Description
$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.

Protected Properties

Свойство Type Description
$_defaultConfig array Default config for this class

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

Sets a few default settings up.
public __construct ( )

allow() public méthode

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 *)
Résultat void

arrayTrim() public méthode

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

check() public méthode

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
Résultat boolean Success

deny() public méthode

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 *)
Résultat void

inherit() public méthode

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 *)
Résultat void

initialize() public méthode

Initialize method
public initialize ( Component $component ) : void
$component Cake\Controller\Component Component instance.
Résultat void

readConfigFile() public méthode

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
Résultat array INI section structure

Property Details

$_defaultConfig protected_oe property

Default config for this class
protected array $_defaultConfig
Résultat array

$userPath public_oe property

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
Résultat string