Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @controller=Test
- */
- class TestController extends Zend_Controller_Action {
- /**
- * @title Тестовое действие
- * @desc о_О
- */
- public function indexAction() {
- require_once(APPLICATION_PATH . '/controllers/ShopController.php');
- $r = new Zend_Reflection_File(APPLICATION_PATH . '/controllers/ShopController.php');
- $t = $r->getClasses();
- $class = $t[0]->name;
- foreach ($t as $v) {
- $methods = $v->getMethods();
- foreach ($methods as $m) {
- if (($m->class == $class) && (strpos($m->name, 'Action') !== false)) {
- $ann = $m->getDocblock()->getTags();
- foreach ($ann as $a) {
- echo $a->getName() . ': ' . $a->getDescription() . '<br>';
- }
- }
- }
- }
- exit;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement