AbstractController.class.php
891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* Opn/Abstract
* 对外接口 抽象类
* @author Deepseath
* @version $Id$
*/
namespace Open\Controller;
/**
* 对外开放接口基类(用于本地开发调试之用)
*/
abstract class AbstractController extends \Common\Controller\Open\AbstractController
{
/**
* 执行前置动作
* {@inheritDoc}
* @see \Common\Controller\Frontend\AbstractController::before_action()
*/
public function before_action($action = '')
{
if (!parent::before_action($action)) {
return false;
}
return true;
}
/**
* 执行后置动作
* {@inheritDoc}
* @see \Common\Controller\Frontend\AbstractController::after_action()
*/
public function after_action($action = '')
{
if (!parent::after_action($action)) {
return false;
}
return true;
}
}