Doctrine, but I will check out the code you referenced.
thanks!!
Chris Martin wrote:
>
>
>
> maxarbos wrote:
>>
>> Hello,
>>
>> I am working on an administrative ACL management function set.
>>
>> Is there a function or way to extract actions or methods that I have
>> declared or written myself in a controller?
>>
>> I can use get_class_methods but then it grabs all inherited methods as
>> well.
>>
>> If:
>>
>> class User_ShopController
>> {
>>
>> public function viewAction()
>> {
>> /// this does something
>> }
>>
>> public function mycartAction()
>> {
>> /// this does something else
>> }
>>
>> public function thisworksforsomethignelse()
>> {
>> // this does something behind the scenes
>> }
>>
>> }
>>
>>
>> I want to be able to get a list of 'viewAction' and 'mycartAction' and
>> 'thisworksforsomethingelse'
>>
>> Any suggestions?
>>
>> Thanks.
>>
>>
>
> I needed something similar for my project, and ran into an interesting
> module by Jason Eisen called zfsecurity (BSD License):
>
> http://oss.jasoneisen.com/2008/10/14/security-module-screencast/
> http://code.google.com/p/zfsecurity/
>
> I had most of my ACL coded into my project already and didn't want the ORM
> overhead of Doctrine, so I didn't use this module directly - But, it is an
> excellent example for ACL management of controller actions, and it can
> generate the resources/privs from the Controller classes automatically.
>
> Take a look in the zfsecurity project, specifically, at:
> ./module/security/library/Security/Acl/Generator.php
> ./module/security/controllers/UpdateController.php
>
>
>
--
View this message in context: http://www.nabble.com/Funciton-to-get-Actions-and-created-methods-actions-tp20192963p20195468.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论