1 | <?php |
||
20 | class Cache |
||
21 | { |
||
22 | |||
23 | /** |
||
24 | * Name of the cache |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $name; |
||
29 | |||
30 | /** |
||
31 | * Frontend |
||
32 | * |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $frontend; |
||
36 | |||
37 | /** |
||
38 | * Backend |
||
39 | * |
||
40 | * @var string |
||
41 | */ |
||
42 | protected $backend; |
||
43 | |||
44 | /** |
||
45 | * Original backend. If set, than the cache is in analysed mode |
||
46 | * |
||
47 | * @var string |
||
48 | */ |
||
49 | protected $originalBackend; |
||
50 | |||
51 | /** |
||
52 | * Groups |
||
53 | * |
||
54 | * @var array |
||
55 | */ |
||
56 | protected $groups; |
||
57 | |||
58 | /** |
||
59 | * Options |
||
60 | * |
||
61 | * @var array |
||
62 | */ |
||
63 | protected $options; |
||
64 | |||
65 | /** |
||
66 | * String representation |
||
67 | * |
||
68 | * @return string |
||
69 | */ |
||
70 | public function __toString() |
||
74 | |||
75 | /** |
||
76 | * Get name |
||
77 | * |
||
78 | * @return string |
||
79 | */ |
||
80 | public function getName() |
||
84 | |||
85 | /** |
||
86 | * Set name |
||
87 | * |
||
88 | * @param string $name |
||
89 | */ |
||
90 | public function setName($name) |
||
94 | |||
95 | /** |
||
96 | * Get frontend |
||
97 | * |
||
98 | * @return string |
||
99 | */ |
||
100 | public function getFrontend() |
||
104 | |||
105 | /** |
||
106 | * Set frontend |
||
107 | * |
||
108 | * @param string $frontend |
||
109 | */ |
||
110 | public function setFrontend($frontend) |
||
114 | |||
115 | /** |
||
116 | * Get backend |
||
117 | * |
||
118 | * @return string |
||
119 | */ |
||
120 | public function getBackend() |
||
124 | |||
125 | /** |
||
126 | * Set backend |
||
127 | * |
||
128 | * @param string $backend |
||
129 | */ |
||
130 | public function setBackend($backend) |
||
134 | |||
135 | /** |
||
136 | * get original backend |
||
137 | * |
||
138 | * @return string |
||
139 | */ |
||
140 | public function getOriginalBackend() |
||
144 | |||
145 | /** |
||
146 | * set original backend |
||
147 | * |
||
148 | * @param string $originalBackend |
||
149 | */ |
||
150 | public function setOriginalBackend($originalBackend) |
||
154 | |||
155 | /** |
||
156 | * get groups |
||
157 | * |
||
158 | * @return array |
||
159 | */ |
||
160 | public function getGroups() |
||
164 | |||
165 | /** |
||
166 | * set groups |
||
167 | * |
||
168 | * @param array $groups |
||
169 | */ |
||
170 | public function setGroups($groups) |
||
174 | |||
175 | /** |
||
176 | * get options |
||
177 | * |
||
178 | * @return array |
||
179 | */ |
||
180 | public function getOptions() |
||
184 | |||
185 | /** |
||
186 | * set options |
||
187 | * |
||
188 | * @param array $options |
||
189 | */ |
||
190 | public function setOptions($options) |
||
194 | |||
195 | /** |
||
196 | * Check if the current cache is in analyse mode |
||
197 | * |
||
198 | * @return bool |
||
199 | */ |
||
200 | public function getIsInAnalyseMode() |
||
204 | |||
205 | /** |
||
206 | * get static KPI |
||
207 | * |
||
208 | * @return array |
||
209 | */ |
||
210 | public function getStaticKpi() |
||
215 | |||
216 | /** |
||
217 | * get dynamic KPI and cache the output in a runtime cache to speed |
||
218 | * up the sorting of the caches in the SortService |
||
219 | * |
||
220 | * @return array |
||
221 | */ |
||
222 | public function getDynamicKpi() |
||
232 | |||
233 | /** |
||
234 | * Get the real backend information |
||
235 | * |
||
236 | * @return string |
||
237 | */ |
||
238 | public function getRealBackend() |
||
245 | |||
246 | /** |
||
247 | * Checks if this cache is changeable |
||
248 | * |
||
249 | * @return bool |
||
250 | */ |
||
251 | public function getIsChangeable() |
||
256 | } |
||
257 |