1 | <?php |
||
5 | class WidgetFactory extends AbstractWidgetFactory |
||
6 | { |
||
7 | /** |
||
8 | * Run widget without magic method. |
||
9 | * |
||
10 | * @return mixed |
||
11 | */ |
||
12 | public function run() |
||
26 | |||
27 | /** |
||
28 | * Get widget reload timeout or false if it's not reloadable. |
||
29 | * |
||
30 | * @return bool|float|int |
||
31 | */ |
||
32 | protected function getReloadTimeout() |
||
36 | |||
37 | /** |
||
38 | * Get widget cache time or false if it's not meant to be cached. |
||
39 | * |
||
40 | * @return bool|float|int |
||
41 | */ |
||
42 | protected function getCacheTime() |
||
46 | |||
47 | /** |
||
48 | * Make call and get return widget content. |
||
49 | * |
||
50 | * @return mixed |
||
51 | */ |
||
52 | protected function getContent() |
||
58 | |||
59 | /** |
||
60 | * Gets content from cache if it's turned on. |
||
61 | * Runs widget class otherwise. |
||
62 | * |
||
63 | * @param $args |
||
64 | * |
||
65 | * @return mixed |
||
66 | */ |
||
67 | protected function getContentFromCache($args) |
||
77 | } |
||
78 |