1 | <?php |
||
25 | class Steverobbins_Redismanager_Adminhtml_RedismanagerController |
||
26 | extends Mage_Adminhtml_Controller_Action |
||
27 | { |
||
28 | /** |
||
29 | * Cached helper |
||
30 | * |
||
31 | * @var Steverobbins_Redismanager_Helper_Data |
||
32 | */ |
||
33 | protected $_helper; |
||
34 | |||
35 | /** |
||
36 | * Set title |
||
37 | * |
||
38 | * @return void |
||
39 | */ |
||
40 | protected function _construct() |
||
46 | |||
47 | /** |
||
48 | * Manager page |
||
49 | * |
||
50 | * @return void |
||
51 | */ |
||
52 | public function indexAction() |
||
58 | |||
59 | /** |
||
60 | * Bring in grid HTML with ajax |
||
61 | * |
||
62 | * @return void |
||
63 | */ |
||
64 | public function gridAction() |
||
69 | |||
70 | /** |
||
71 | * Flush a Redis DB |
||
72 | * |
||
73 | * @return void |
||
74 | */ |
||
75 | public function flushDbAction() |
||
86 | |||
87 | /** |
||
88 | * Process multiple services |
||
89 | * |
||
90 | * @return void |
||
91 | */ |
||
92 | public function massAction() |
||
103 | |||
104 | /** |
||
105 | * Flush matching keys |
||
106 | * |
||
107 | * @return void |
||
108 | */ |
||
109 | public function flushByKeyAction() |
||
142 | |||
143 | /** |
||
144 | * Flushes all services |
||
145 | * |
||
146 | * @return void |
||
147 | */ |
||
148 | public function flushAllAction() |
||
155 | |||
156 | /** |
||
157 | * Prepare keys for search |
||
158 | * |
||
159 | * @param string $key |
||
160 | * @return boolean|string |
||
161 | */ |
||
162 | protected function _prepareKey($key) |
||
170 | |||
171 | /** |
||
172 | * ACL check |
||
173 | * |
||
174 | * @return bool |
||
175 | */ |
||
176 | protected function _isAllowed() |
||
181 | |||
182 | /** |
||
183 | * Flush a db |
||
184 | * |
||
185 | * @param array $service |
||
186 | * @return void |
||
187 | */ |
||
188 | protected function _flushDb(array $service) |
||
203 | |||
204 | /** |
||
205 | * Get helper |
||
206 | * |
||
207 | * @return Steverobbins_Redismanager_Helper_Data |
||
208 | */ |
||
209 | protected function _getHelper() |
||
216 | } |
||
217 |