1 | <?php |
||
38 | class Control extends Application\UI\Control |
||
39 | { |
||
40 | /** |
||
41 | * @var string |
||
42 | */ |
||
43 | private $templateFile; |
||
44 | |||
45 | /** |
||
46 | * @var Storage\IStorage |
||
47 | */ |
||
48 | private $storage; |
||
49 | |||
50 | /** |
||
51 | * @var Localization\ITranslator|NULL |
||
52 | */ |
||
53 | private $translator; |
||
54 | |||
55 | /** |
||
56 | * @var bool |
||
57 | */ |
||
58 | private $useTitle = FALSE; |
||
59 | |||
60 | /** |
||
61 | * @var bool |
||
62 | */ |
||
63 | private $useOverlay = FALSE; |
||
64 | |||
65 | /** |
||
66 | * @param Localization\ITranslator|NULL $translator |
||
67 | * |
||
68 | * @return void |
||
69 | */ |
||
70 | public function injectTranslator(?Localization\ITranslator $translator = NULL) : void |
||
74 | |||
75 | /** |
||
76 | * @param string|NULL $templateFile |
||
77 | * @param Storage\IStorage $storage |
||
78 | * |
||
79 | * @throws Exceptions\FileNotFoundException |
||
80 | */ |
||
81 | public function __construct( |
||
91 | |||
92 | /** |
||
93 | * @param ComponentModel\IComponent |
||
94 | * |
||
95 | * @return void |
||
96 | */ |
||
97 | public function attached($presenter) : void |
||
103 | |||
104 | /** |
||
105 | * @return void |
||
106 | */ |
||
107 | public function enableTitle() : void |
||
111 | |||
112 | /** |
||
113 | * @return void |
||
114 | */ |
||
115 | public function disableTitle() : void |
||
119 | |||
120 | /** |
||
121 | * @return void |
||
122 | */ |
||
123 | public function enableOverlay() : void |
||
127 | |||
128 | /** |
||
129 | * @return void |
||
130 | */ |
||
131 | public function disableOverlay() : void |
||
135 | |||
136 | /** |
||
137 | * Prepare component for rendering |
||
138 | * |
||
139 | * @return void |
||
140 | */ |
||
141 | public function beforeRender() : void |
||
167 | |||
168 | /** |
||
169 | * Render control |
||
170 | * |
||
171 | * @return void |
||
172 | */ |
||
173 | public function render() : void |
||
186 | |||
187 | /** |
||
188 | * Change default control template path |
||
189 | * |
||
190 | * @param string $templateFile |
||
191 | * |
||
192 | * @return void |
||
193 | * |
||
194 | * @throws Exceptions\FileNotFoundException |
||
195 | */ |
||
196 | public function setTemplateFile(string $templateFile) : void |
||
217 | |||
218 | /** |
||
219 | * @param Localization\ITranslator $translator |
||
220 | * |
||
221 | * @return void |
||
222 | */ |
||
223 | public function setTranslator(Localization\ITranslator $translator) : void |
||
227 | |||
228 | /** |
||
229 | * @return Localization\ITranslator|NULL |
||
230 | */ |
||
231 | public function getTranslator() : ?Localization\ITranslator |
||
239 | } |
||
240 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.