Свойство | Type | Description | |
---|---|---|---|
$Aco | string | Aco object | |
$Aro | string | Aro object. |
Свойство | Type | Description | |
---|---|---|---|
$_Instance | Acl\AclInterface | Instance of an ACL class |
Méthode | Description | |
---|---|---|
__construct ( Cake\Controller\ComponentRegistry $collection, array $config = [] ) | Constructor. Will return an instance of the correct ACL class as defined in Configure::read('Acl.classname') | |
adapter ( Acl\AclInterface | string $adapter = null ) : Acl\AclInterface | void | Sets or gets the Adapter object currently in the AclComponent. | |
allow ( array | string | Model $aro, array | string | Model $aco, string $action = "*" ) : boolean | Pass-thru function for ACL allow instance. Allow methods are used to grant an ARO access to an ACO. | |
check ( array | string | Model $aro, array | string | Model $aco, string $action = "*" ) : boolean | Pass-thru function for ACL check instance. Check methods are used to check whether or not an ARO can access an ACO | |
deny ( array | string | Model $aro, array | string | Model $aco, string $action = "*" ) : boolean | Pass-thru function for ACL deny instance. Deny methods are used to remove permission from an ARO to access an ACO. | |
inherit ( array | string | Model $aro, array | string | Model $aco, string $action = "*" ) : boolean | Pass-thru function for ACL inherit instance. Inherit methods modify the permission for an ARO to be that of its parent object. |
public __construct ( Cake\Controller\ComponentRegistry $collection, array $config = [] ) | ||
$collection | Cake\Controller\ComponentRegistry | A ComponentRegistry |
$config | array | Array of configuration settings |
public allow ( array | string | Model $aro, array | string | Model $aco, string $action = "*" ) : boolean | ||
$aro | array | string | Model | ARO The requesting object identifier. See `AclNode::node()` for possible formats |
$aco | array | string | Model | ACO The controlled object identifier. See `AclNode::node()` for possible formats |
$action | string | Action (defaults to *) |
Résultat | boolean | Success |
public check ( array | string | Model $aro, array | string | Model $aco, string $action = "*" ) : boolean | ||
$aro | array | string | Model | ARO The requesting object identifier. See `AclNode::node()` for possible formats |
$aco | array | string | Model | ACO The controlled object identifier. See `AclNode::node()` for possible formats |
$action | string | Action (defaults to *) |
Résultat | boolean | Success |
public deny ( array | string | Model $aro, array | string | Model $aco, string $action = "*" ) : boolean | ||
$aro | array | string | Model | ARO The requesting object identifier. See `AclNode::node()` for possible formats |
$aco | array | string | Model | ACO The controlled object identifier. See `AclNode::node()` for possible formats |
$action | string | Action (defaults to *) |
Résultat | boolean | Success |
public inherit ( array | string | Model $aro, array | string | Model $aco, string $action = "*" ) : boolean | ||
$aro | array | string | Model | ARO The requesting object identifier. See `AclNode::node()` for possible formats |
$aco | array | string | Model | ACO The controlled object identifier. See `AclNode::node()` for possible formats |
$action | string | Action (defaults to *) |
Résultat | boolean | Success |