Interface AclInterface
Access Control List interface. Implementing classes are used by AclComponent to perform ACL checks in Cake.
Package: Cake\Controller\Component
Copyright: Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Location: Cake/Controller/Component/AclComponent.php
Copyright: Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Location: Cake/Controller/Component/AclComponent.php
Method Summary
-
allow() public
Allow methods are used to grant an ARO access to an ACO. -
check() public
Empty method to be overridden in subclasses -
deny() public
Deny methods are used to remove permission from an ARO to access an ACO. -
inherit() public
Inherit methods modify the permission for an ARO to be that of its parent object. -
initialize() public
Initialization method for the Acl implementation
Method Detail
allow() public ¶
allow( string $aro , string $aco , string $action = "*" )
Allow methods are used to grant an ARO access to an ACO.
Parameters
- string $aro
- ARO The requesting object identifier.
- string $aco
- ACO The controlled object identifier.
- string $action optional "*"
- Action (defaults to *)
Returns
boolean
Success
Success
check() public ¶
check( string $aro , string $aco , string $action = "*" )
Empty method to be overridden in subclasses
Parameters
- string $aro
- ARO The requesting object identifier.
- string $aco
- ACO The controlled object identifier.
- string $action optional "*"
- Action (defaults to *)
deny() public ¶
deny( string $aro , string $aco , string $action = "*" )
Deny methods are used to remove permission from an ARO to access an ACO.
Parameters
- string $aro
- ARO The requesting object identifier.
- string $aco
- ACO The controlled object identifier.
- string $action optional "*"
- Action (defaults to *)
Returns
boolean
Success
Success
inherit() public ¶
inherit( string $aro , string $aco , string $action = "*" )
Inherit methods modify the permission for an ARO to be that of its parent object.
Parameters
- string $aro
- ARO The requesting object identifier.
- string $aco
- ACO The controlled object identifier.
- string $action optional "*"
- Action (defaults to *)
Returns
boolean
Success
Success