1 | <?php |
||
35 | class Control extends Application\UI\Control |
||
36 | 1 | { |
|
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $templateFile; |
||
41 | |||
42 | /** |
||
43 | * @var FlashMessages\SessionStorage |
||
44 | */ |
||
45 | protected $sessionStorage; |
||
46 | |||
47 | /** |
||
48 | * @var Localization\ITranslator |
||
49 | */ |
||
50 | protected $translator; |
||
51 | |||
52 | /** |
||
53 | * @var bool |
||
54 | */ |
||
55 | protected $useTitle = FALSE; |
||
56 | |||
57 | /** |
||
58 | * @var bool |
||
59 | */ |
||
60 | protected $useOverlay = FALSE; |
||
61 | |||
62 | /** |
||
63 | * @param Localization\ITranslator $translator |
||
64 | */ |
||
65 | public function injectTranslator(Localization\ITranslator $translator = NULL) |
||
69 | |||
70 | /** |
||
71 | * @param \Nette\ComponentModel\IComponent |
||
72 | */ |
||
73 | public function attached($presenter) |
||
79 | |||
80 | /** |
||
81 | * @param NULL|string $templateFile |
||
82 | * @param FlashMessages\SessionStorage $sessionStorage |
||
83 | * @param Nette\ComponentModel\IContainer $parent |
||
84 | * @param null $name |
||
85 | * |
||
86 | * @throws Exceptions\FileNotFoundException |
||
87 | */ |
||
88 | public function __construct( |
||
103 | |||
104 | /** |
||
105 | * @return $this |
||
106 | */ |
||
107 | public function enableTitle() |
||
113 | |||
114 | /** |
||
115 | * @return $this |
||
116 | */ |
||
117 | public function disableTitle() |
||
118 | { |
||
119 | 1 | $this->useTitle = FALSE; |
|
120 | |||
121 | 1 | return $this; |
|
122 | } |
||
123 | |||
124 | /** |
||
125 | * @return $this |
||
126 | */ |
||
127 | public function enableOverlay() |
||
128 | { |
||
129 | 1 | $this->useOverlay = TRUE; |
|
130 | |||
131 | 1 | return $this; |
|
132 | } |
||
133 | |||
134 | /** |
||
135 | * @return $this |
||
136 | */ |
||
137 | public function disableOverlay() |
||
143 | |||
144 | /** |
||
145 | * Render control |
||
146 | */ |
||
147 | public function render() |
||
179 | |||
180 | /** |
||
181 | * Change default control template path |
||
182 | * |
||
183 | * @param string $templateFile |
||
184 | * |
||
185 | * @return $this |
||
186 | * |
||
187 | * @throws Exceptions\FileNotFoundException |
||
188 | */ |
||
189 | public function setTemplateFile($templateFile) |
||
210 | |||
211 | /** |
||
212 | * @param Localization\ITranslator $translator |
||
213 | * |
||
214 | * @return $this |
||
215 | */ |
||
216 | public function setTranslator(Localization\ITranslator $translator) |
||
222 | |||
223 | /** |
||
224 | * @return Localization\ITranslator|null |
||
225 | */ |
||
226 | public function getTranslator() |
||
234 | } |
||
235 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.