YSMWAppAction.class.php
2.58 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?php
require_once dirname(__FILE__).'/../facade/YSMFAppFacade.class.php';
require_once dirname(__FILE__).'/common/YSMWBaseAction.class.php';
class YSMWAppAction extends YSMWBaseAction
{
private $mAppFacade = null;
/**
* 初始化
*/
public function __construct()
{
$this->mAppFacade = new YSMFAppFacade();
}
/**
* 其它应用
*
* @param array $request
* @return html
*/
public function getOtherClassPage($request)
{
$userID = $this->getUserID();
$result = $this->mAppFacade->getOtherClassPage($userID, $request);
return $result;
}
/**
* 我的应用
*
* @param array $request
* @return html
*/
public function getMyClassPage($request)
{
$userID = $this->getUserID();
$result = $this->mAppFacade->getMyClassPage($userID, $request);
return $result;
}
/**
* 添加应用
*
* @param $request
* @return html
*/
public function addApp($request)
{
$userID = $this->getUserID();
$result = $this->mAppFacade->addApp($userID, $request);
return $result;
}
/**
* 显示应用信息
*
* @param array $request
* @return html
*/
public function getAppInfo($request)
{
$userID = $this->getUserID();
$result = $this->mAppFacade->getAppInfo($userID, $request);
return $result;
}
/**
* (non-PHPdoc)
* @see mobile/BASE/web/common/YMWBaseAction#accessRule()
*/
public function accessRule()
{
return array(
array(
'allow',
'actions' => array(
'getOtherClassPage',
'getMyClassPage',
'addApp',
'getAppInfo',
),
'users' => array('@'),
),
);
}
/**
* (non-PHPdoc)
* @see YSMWBaseAction::optLoggerRule()
*/
public function optLoggerRule()
{
return array(
'getOtherClassPage' => 'PS000101001',
'getMyClassPage' => 'PS000101002',
'addApp' => 'PS000101003',
'getAppInfo' => 'PS000101004',
);
}
}
?>