Class Xyster_Acl

Description

An access control list that can dynamically build its own rules

  • copyright: Copyright (c) 2007-2008 Irrational Logic (http://irrationallogic.net)
  • license: New BSD License

Located in /Acl.php (line 28)

Zend_Acl
   |
   --Xyster_Acl
Variable Summary
Xyster_Acl_Authorizer_Interface[] $_authorizers
Method Summary
void assertAllowed ([Zend_Acl_Role_Interface|string $role = null], [Zend_Acl_Resource_Interface|string $resource = null], [string $privilege = null])
Xyster_Acl_Authorizer_Interface getAuthorizer ([Zend_Acl_Resource_Interface|string $resource = null])
boolean isAllowed ([Zend_Acl_Role_Interface|string $role = null], [Zend_Acl_Resource_Interface|string $resource = null], [string $privilege = null])
Variables
Xyster_Acl_Authorizer_Interface[] $_authorizers = array() (line 35)

The authorizers

  • access: protected
Methods
addAuthorizer (line 43)

Adds an authorizer to the ACL

  • return: provides a fluent interface
  • access: public
Xyster_Acl addAuthorizer (Xyster_Acl_Authorizer_Interface $authorizer)
assertAllowed (line 59)

Throws an exception if the Role is denied access to the Resource

  • throws: Zend_Acl_Exception
  • access: public
void assertAllowed ([Zend_Acl_Role_Interface|string $role = null], [Zend_Acl_Resource_Interface|string $resource = null], [string $privilege = null])
  • Zend_Acl_Role_Interface|string $role
  • Zend_Acl_Resource_Interface|string $resource
  • string $privilege
getAuthorizer (line 90)

Gets the authorizer for a resource

If more than one authorizer applies to a resource, only the first is returned (in the order in which they were added. First in, first out).

If none apply, null is returned.

  • access: public
Xyster_Acl_Authorizer_Interface getAuthorizer ([Zend_Acl_Resource_Interface|string $resource = null])
  • Zend_Acl_Resource_Interface|string $resource
isAllowed (line 117)

Returns true if and only if the Role has access to the Resource

{@inherit}

  • access: public
boolean isAllowed ([Zend_Acl_Role_Interface|string $role = null], [Zend_Acl_Resource_Interface|string $resource = null], [string $privilege = null])
  • Zend_Acl_Role_Interface|string $role
  • Zend_Acl_Resource_Interface|string $resource
  • string $privilege

Documentation generated on Mon, 19 May 2008 17:06:56 -0400 by phpDocumentor 1.4.2