2008年10月27日星期一

[fw-mvc] Funciton to get Actions and created methods/actions

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.

--
View this message in context: http://www.nabble.com/Funciton-to-get-Actions-and-created-methods-actions-tp20192963p20192963.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: