PHP Класс Acl\Adapter\IniAcl

Наследование: implements Acl\AclInterface
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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)

Свойство Тип Описание
$_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