-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBaseControllerDummy.php
More file actions
108 lines (96 loc) · 2.14 KB
/
BaseControllerDummy.php
File metadata and controls
108 lines (96 loc) · 2.14 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
103
104
105
106
107
108
<?php
/**
* @copyright Copyright (c) 2015 Hanibal
* @package BaseModuleTest\Dummy
* @author Felix Buchheim -> hanibal4nothing@gmail.com
* @author Hanibal
* @version $Id: $
*/
namespace BaseModuleTest\Dummy;
use BaseModule\Controller\AbstractBaseController;
use Zend\Stdlib\Parameters;
/**
* Dummy to test AbstractBaseController (to public protected functions)
*
* @copyright Copyright (c) 2015 Hanibal
* @package BaseModuleTest\Dummy
* @author Felix Buchheim -> hanibal4nothing@gmail.com
* @author Hanibal
* @version $Id: $
*/
class BaseControllerDummy extends AbstractBaseController
{
/**
* @return bool
*/
public function publicIsPost()
{
return $this->isPost();
}
/**
* @param null|string|numeric $sKey
*
* @return string|Parameters
*/
public function publicGetPost($sKey = null)
{
return $this->getPost($sKey);
}
/**
* @param null|string|numeric $sKey
*
* @return mixed
*/
public function publicGetFiles($sKey = null)
{
return $this->getFiles($sKey);
}
/**
* @param array $aParams
*
* @return \Zend\View\Model\JsonModel
*/
public function publicReturnAsJson(array $aParams)
{
return $this->returnAsJson($aParams);
}
/**
* @return \BaseModule\Controller\Doctrine\ORM\EntityManager
*/
public function publicGetEm()
{
return $this->getEm();
}
/**
* @param string $sRepoName
*
* @return \Doctrine\ORM\EntityRepository
*/
public function publicGetRepo($sRepoName)
{
return $this->getRepo($sRepoName);
}
/**
* @return \BaseModule\Logger\ErrorHandler
*/
public function publicGetErrorHandler()
{
return $this->getErrorHandler();
}
/**
* @param string $sKey
*
* @return array|string
*/
public function publicGetRouteParam($sKey = null)
{
return $this->getRouteParam($sKey);
}
/**
* @return \BaseModule\Helper\AppConfig
*/
public function publicGetAppConfig()
{
return $this->getAppConfig();
}
}