@@ 211-220 (lines=10) @@ | ||
208 | /** |
|
209 | * Renders spoiled items. Uses [[$this->mode]] value to run proper renderer. |
|
210 | */ |
|
211 | private function renderSpoiled() |
|
212 | { |
|
213 | if (count($this->getSpoiledItems()) === 0) { |
|
214 | $this->parts['{button}'] = ''; |
|
215 | ||
216 | return; |
|
217 | } |
|
218 | ||
219 | $method = 'renderButton' . Inflector::id2camel($this->mode); |
|
220 | call_user_func([$this, $method]); |
|
221 | } |
|
222 | ||
223 | /** |
|
@@ 226-235 (lines=10) @@ | ||
223 | /** |
|
224 | * Renders spoiled items. Uses [[$this->mode]] value to run proper renderer. |
|
225 | */ |
|
226 | private function renderHidden() |
|
227 | { |
|
228 | if (count($this->getSpoiledItems()) === 0) { |
|
229 | $this->parts['{hidden}'] = ''; |
|
230 | ||
231 | return; |
|
232 | } |
|
233 | ||
234 | $method = 'renderHidden' . Inflector::id2camel($this->mode); |
|
235 | call_user_func([$this, $method]); |
|
236 | } |
|
237 | ||
238 | /** |