Issues

ZF-7895: Add methods to get defined ressources

Issue Type: New Feature Created: 2009-09-19T04:40:27.000+0000 Last Updated: 2009-12-08T13:33:59.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Sudheer Satyanarayana (bonaparte) Assignee: Dolf Schimmel (Freeaqingme) (freak) Tags: - Zend_Acl

Related issues: Attachments: - zf7895.tar.gz

Description

Add a method to get registered resources.

Note: Three enhancements were requested in ZF-5638. A method now exists to get defined roles. ZF-5638 is now closed.

Comments

Posted by Sudheer Satyanarayana (bonaparte) on 2009-09-19T06:56:50.000+0000

Patch adds method to retrieve registered resources

Posted by Dolf Schimmel (Freeaqingme) (freak) on 2009-09-22T10:25:19.000+0000

As said earlier:

I would personally expect a getRegisteredRoles() or getRegisteredResources() (ZF-7895) to return a single dimensional-array containing the name of all roles/resources. The methods as implemented by this patch however return a multidimensional array with all the roles&resources objects, which I kinda feel is unworkable. To check if a certain resource has been registered already someone would now have to flatten the tree himself first and then call something like in_array(); or array_key_exists(). I can think of no usecase in which it's useful to have the entire resources tree as a multidimensional array. That is handy only to Zend_Acl itself.

Posted by Dolf Schimmel (Freeaqingme) (freak) on 2009-12-08T13:33:59.000+0000

Closed with the resolving of #ZF-8468.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts