YSMWValidateRandomKeyAction.class.php
1.42 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
<?php
require_once dirname(__FILE__).'/../facade/YSMFValidateRandomKeyFacade.class.php';
require_once dirname(__FILE__).'/common/YSMWBaseAction.class.php';
class YSMWValidateRandomKeyAction extends YSMWBaseAction
{
private $mValidateRandomKeyFacade = null;
/**
* 初始化函数
*
*/
public function __construct()
{
$this->mValidateRandomKeyFacade = new YSMFValidateRandomKeyFacade();
}
/**
* 验证函数
*
* @param array $request
* @return object
*/
public function validateRandomKey($request)
{
$result = $this->mValidateRandomKeyFacade->validate($request);
return $result;
}
/**
* 设置访问规则函数
*
* @return array
*/
public function accessRule()
{
return array(
array(
'allow',
'actions' => array(
'validateRandomKey'
),
'users' => array('*'),
),
);
}
/**
* (non-PHPdoc)
* @see YSMWBaseAction::optLoggerRule()
*/
public function optLoggerRule()
{
return array(
'validateRandomKey' => 'PS000909001',
);
}
}
?>