1 | <?php |
||
18 | abstract class AbstractDashboardBlock implements ContainerAwareInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var TwigEngine |
||
22 | */ |
||
23 | private $templating; |
||
24 | |||
25 | /** |
||
26 | * @var ContainerInterface |
||
27 | */ |
||
28 | private $container; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $template; |
||
34 | |||
35 | /** |
||
36 | * @var array |
||
37 | */ |
||
38 | protected $templateParameters = []; |
||
39 | |||
40 | /** |
||
41 | * handleParameters should handle $templateParameters. It will be called when |
||
42 | * the block template will be rendered. Please override this method to set |
||
43 | * the view parameters of your block. |
||
44 | */ |
||
45 | public function handleParameters() |
||
49 | |||
50 | /** |
||
51 | * @param string $template |
||
52 | */ |
||
53 | public function __construct($template = null) |
||
57 | |||
58 | /** |
||
59 | * @return string The content of rendered template |
||
60 | */ |
||
61 | public function render() |
||
67 | |||
68 | /** |
||
69 | * @return TwigEngine |
||
70 | */ |
||
71 | public function getTemplating() |
||
75 | |||
76 | /** |
||
77 | * @param TwigEngine templating |
||
78 | * |
||
79 | * @return self |
||
80 | */ |
||
81 | public function setTemplating(TwigEngine $templating) |
||
87 | |||
88 | /** |
||
89 | * @return ContainerInterface |
||
90 | */ |
||
91 | public function getContainer() |
||
95 | |||
96 | /** |
||
97 | * @param ContainerInterface container |
||
98 | * |
||
99 | * @return self |
||
100 | */ |
||
101 | public function setContainer(ContainerInterface $container = null) |
||
107 | |||
108 | /** |
||
109 | * @return string |
||
110 | */ |
||
111 | public function getTemplate() |
||
115 | |||
116 | /** |
||
117 | * @param string template |
||
118 | * |
||
119 | * @return self |
||
120 | */ |
||
121 | public function setTemplate($template) |
||
127 | |||
128 | /** |
||
129 | * @return string |
||
130 | */ |
||
131 | public function getTemplateParameters() |
||
135 | |||
136 | /** |
||
137 | * @param string templateParameters |
||
138 | * |
||
139 | * @return self |
||
140 | */ |
||
141 | public function setTemplateParameters($templateParameters) |
||
147 | } |
||
148 |