Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version. Compare with Current  |   View Page History

<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[

Zend Framework: Zend_Acl MVC Integration Component Proposal

Proposed Component Name Zend_Acl MVC Integration
Developer Notes http://framework.zend.com/wiki/display/ZFDEV/Zend_Acl MVC Integration
Proposers Aldemar Bernal
Revision 1.0 - 14 November 2007: Proposal created.
1.1 - 15 November 2007: Use cases created.
1.2 - 17 November 2007: First working prototype implemented. (wiki revision: 42)

Table of Contents

1. Overview

Zend_Acl - MVC Integration is a combination between a front controller plug in and a action helper that allows to grant or deny access to certain pages in MVC structured applications, this component helps the developer to allow users the access only to the pages they are meant to access in a easy way by just defining once which parts of the application can be accessed, this can be configured either in the bootstrap where you can define the guest privileges, or, at login time loading from your db users table the correct privileges.

2. References

3. Component Requirements, Constraints, and Acceptance Criteria

  • This component will allow developers to stop validating if an user has access to certain page by just setting up the component in the bootstrap or when a user login.
  • This component will help applications to be more secure.
  • This component will work with both module/controller/action and controller/action configurations.
  • This component will be able available via an action helper.

4. Dependencies on Other Framework Components

  • Zend_Acl
  • Zend_Config
  • Zend_Controller_Front
  • Zend_Acl_Exception

5. Theory of Operation

This component can be instantiated using an ACL object, a Zend Config object or a XML string, this object (that will be converted to a Zend_Acl) must have a role (which name can be set up on the plugin) and the allowed/denied operations (module/controller/action combination). After created, it must be registered as a Front Controller Plugin, optionally, if you want to access ACL inside the controller you will have to register the Action Helper.

6. Milestones / Tasks

  • Milestone 1: [DONE]Create ZF Wiki info.
  • Milestone 2: [DONE]Working prototype and some examples. UC01 implemented click here to download.
  • Milestone 3: Working prototype checked into the incubator supporting use cases.
  • Milestone 4: Unit tests exist, work, and are checked into SVN.
  • Milestone 5: Initial documentation exists.

7. Class Index

  • Zend_Controller_Plugin_Acl
  • Zend_Controller_Action_Helper_Acl

8. Use Cases

9. Class Skeletons

]]></ac:plain-text-body></ac:macro>

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.