1 | <?php |
||
32 | 1 | class Message extends Nette\Object implements IMessage |
|
33 | { |
||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $message; |
||
38 | |||
39 | /** |
||
40 | * @var string |
||
41 | */ |
||
42 | protected $level; |
||
43 | |||
44 | /** |
||
45 | * @var string |
||
46 | */ |
||
47 | protected $title; |
||
48 | |||
49 | /** |
||
50 | * @var bool |
||
51 | */ |
||
52 | protected $overlay = FALSE; |
||
53 | |||
54 | /** |
||
55 | * @var bool |
||
56 | */ |
||
57 | protected $displayed = FALSE; |
||
58 | |||
59 | /** |
||
60 | * @var Localization\ITranslator |
||
61 | */ |
||
62 | protected $translator; |
||
63 | |||
64 | /** |
||
65 | * @var Adapters\IPhraseAdapter |
||
66 | */ |
||
67 | protected $phraseAdapter; |
||
68 | |||
69 | /** |
||
70 | * @var Adapters\IPhraseAdapter |
||
71 | */ |
||
72 | protected $titlePhraseAdapter; |
||
73 | |||
74 | /** |
||
75 | * @param Localization\ITranslator $translator |
||
76 | * @param Adapters\IPhraseAdapter $phraseAdapter |
||
77 | * @param Adapters\IPhraseAdapter $titlePhraseAdapter |
||
78 | */ |
||
79 | public function __construct( |
||
88 | |||
89 | /** |
||
90 | * {@inheritdoc} |
||
91 | */ |
||
92 | public function setMessage($message) |
||
104 | |||
105 | /** |
||
106 | * {@inheritdoc} |
||
107 | */ |
||
108 | public function getMessage() |
||
116 | |||
117 | /** |
||
118 | * {@inheritdoc} |
||
119 | */ |
||
120 | public function setLevel($level) |
||
126 | |||
127 | /** |
||
128 | * {@inheritdoc} |
||
129 | */ |
||
130 | public function getLevel() |
||
134 | |||
135 | /** |
||
136 | * {@inheritdoc} |
||
137 | */ |
||
138 | public function info() |
||
144 | |||
145 | /** |
||
146 | * {@inheritdoc} |
||
147 | */ |
||
148 | public function success() |
||
154 | |||
155 | /** |
||
156 | * {@inheritdoc} |
||
157 | */ |
||
158 | public function warning() |
||
164 | |||
165 | /** |
||
166 | * {@inheritdoc} |
||
167 | */ |
||
168 | public function error() |
||
174 | |||
175 | /** |
||
176 | * {@inheritdoc} |
||
177 | */ |
||
178 | public function setTitle($title = NULL) |
||
192 | |||
193 | /** |
||
194 | * {@inheritdoc} |
||
195 | */ |
||
196 | public function getTitle() |
||
204 | |||
205 | /** |
||
206 | * {@inheritdoc} |
||
207 | */ |
||
208 | public function setOverlay($overlay) |
||
214 | |||
215 | /** |
||
216 | * {@inheritdoc} |
||
217 | */ |
||
218 | public function getOverlay() |
||
222 | |||
223 | /** |
||
224 | * {@inheritdoc} |
||
225 | */ |
||
226 | public function setParameters(array $parameter) |
||
234 | |||
235 | /** |
||
236 | * {@inheritdoc} |
||
237 | */ |
||
238 | public function setCount($count) |
||
246 | |||
247 | /** |
||
248 | * {@inheritdoc} |
||
249 | */ |
||
250 | public function setDisplayed($displayed = TRUE) |
||
256 | |||
257 | /** |
||
258 | * {@inheritdoc} |
||
259 | */ |
||
260 | public function isDisplayed() |
||
264 | |||
265 | /** |
||
266 | * @param string $method |
||
267 | * |
||
268 | * @throws Exceptions\InvalidStateException |
||
269 | */ |
||
270 | private function validateState($method) |
||
276 | |||
277 | /** |
||
278 | * @return bool |
||
279 | */ |
||
280 | private function isUnserialized() |
||
284 | |||
285 | /** |
||
286 | * @return string |
||
287 | */ |
||
288 | public function __toString() |
||
292 | |||
293 | /** |
||
294 | * @return array |
||
295 | */ |
||
296 | public function __sleep() |
||
302 | } |
||
303 |