@@ -4,8 +4,14 @@ discard block |
||
4 | 4 | |
5 | 5 | interface ControllerInterface |
6 | 6 | { |
7 | + /** |
|
8 | + * @return void |
|
9 | + */ |
|
7 | 10 | public function __construct(ManagerThemeInterface $managerTheme, array $data = []); |
8 | 11 | |
12 | + /** |
|
13 | + * @return string |
|
14 | + */ |
|
9 | 15 | public function getView() : ?string; |
10 | 16 | |
11 | 17 | public function setView($view) : bool; |
@@ -24,6 +30,9 @@ discard block |
||
24 | 30 | |
25 | 31 | public function render(array $params = []) : string; |
26 | 32 | |
33 | + /** |
|
34 | + * @return void |
|
35 | + */ |
|
27 | 36 | public function setIndex($index) : void; |
28 | 37 | |
29 | 38 | public function getElementId() : int; |
@@ -6,11 +6,15 @@ |
||
6 | 6 | |
7 | 7 | public function getLang() : string; |
8 | 8 | |
9 | + /** |
|
10 | + * @param string $key |
|
11 | + */ |
|
9 | 12 | public function getStyle($key = null); |
10 | 13 | |
11 | 14 | /** |
12 | 15 | * @param string $message |
13 | 16 | * @param bool $lexicon |
17 | + * @return void |
|
14 | 18 | */ |
15 | 19 | public function alertAndQuit(string $message, $lexicon = true) : void; |
16 | 20 | } |
@@ -252,7 +252,7 @@ |
||
252 | 252 | /** |
253 | 253 | * build siteCache file |
254 | 254 | * @param Interfaces\CoreInterface $modx |
255 | - * @return boolean success |
|
255 | + * @return null|boolean success |
|
256 | 256 | */ |
257 | 257 | public function buildCache($modx) |
258 | 258 | { |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | /** |
102 | 102 | * @param string $mode |
103 | 103 | * @param string $modifiers |
104 | - * @return bool|string |
|
104 | + * @return false|string |
|
105 | 105 | */ |
106 | 106 | public function _getDelim($mode, $modifiers) |
107 | 107 | { |
@@ -151,6 +151,13 @@ discard block |
||
151 | 151 | } |
152 | 152 | } |
153 | 153 | |
154 | + /** |
|
155 | + * @param string $mode |
|
156 | + * @param false|string $delim |
|
157 | + * @param string $modifiers |
|
158 | + * |
|
159 | + * @return string |
|
160 | + */ |
|
154 | 161 | public function _getRemainModifiers($mode, $delim, $modifiers) |
155 | 162 | { |
156 | 163 | if ($delim) { |
@@ -187,6 +194,9 @@ discard block |
||
187 | 194 | return substr($string, strpos($string, $delim) + $len); |
188 | 195 | } |
189 | 196 | |
197 | + /** |
|
198 | + * @param string $modifiers |
|
199 | + */ |
|
190 | 200 | public function splitEachModifiers($modifiers) |
191 | 201 | { |
192 | 202 | $modx = evolutionCMS(); |
@@ -259,6 +269,10 @@ discard block |
||
259 | 269 | return $result; |
260 | 270 | } |
261 | 271 | |
272 | + /** |
|
273 | + * @param string $key |
|
274 | + * @param string $value |
|
275 | + */ |
|
262 | 276 | public function parsePhx($key, $value, $modifiers) |
263 | 277 | { |
264 | 278 | $modx = evolutionCMS(); |
@@ -340,6 +354,10 @@ discard block |
||
340 | 354 | } |
341 | 355 | } |
342 | 356 | |
357 | + /** |
|
358 | + * @param string $cmd |
|
359 | + * @param string $opt |
|
360 | + */ |
|
343 | 361 | public function getValueFromPreset($key, $value, $cmd, $opt) |
344 | 362 | { |
345 | 363 | $modx = evolutionCMS(); |
@@ -1285,6 +1303,9 @@ discard block |
||
1285 | 1303 | return $value; |
1286 | 1304 | } |
1287 | 1305 | |
1306 | + /** |
|
1307 | + * @param string $cmd |
|
1308 | + */ |
|
1288 | 1309 | public function includeMdfFile($cmd) |
1289 | 1310 | { |
1290 | 1311 | $modx = evolutionCMS(); |
@@ -1477,6 +1498,10 @@ discard block |
||
1477 | 1498 | } |
1478 | 1499 | |
1479 | 1500 | // Sets a placeholder variable which can only be access by Modifiers |
1501 | + |
|
1502 | + /** |
|
1503 | + * @param string $value |
|
1504 | + */ |
|
1480 | 1505 | public function setModifiersVariable($key, $value) |
1481 | 1506 | { |
1482 | 1507 | if ($key != 'phx' && $key != 'dummy') { |
@@ -270,6 +270,9 @@ discard block |
||
270 | 270 | return $this->langName; |
271 | 271 | } |
272 | 272 | |
273 | + /** |
|
274 | + * @return string |
|
275 | + */ |
|
273 | 276 | public function getTextDir($notEmpty = null) |
274 | 277 | { |
275 | 278 | return ($notEmpty === null) ? $this->textDir : (empty($this->textDir) ? '' : $notEmpty); |
@@ -280,6 +283,9 @@ discard block |
||
280 | 283 | $this->textDir = $textDir === 'rtl' ? 'rtl' : 'ltr'; |
281 | 284 | } |
282 | 285 | |
286 | + /** |
|
287 | + * @param string $key |
|
288 | + */ |
|
283 | 289 | public function getLexicon($key = null, $default = '') |
284 | 290 | { |
285 | 291 | return $key === null ? $this->lexicon : get_by_key($this->lexicon, $key, $default); |
@@ -290,6 +296,9 @@ discard block |
||
290 | 296 | return $this->charset; |
291 | 297 | } |
292 | 298 | |
299 | + /** |
|
300 | + * @param string $charset |
|
301 | + */ |
|
293 | 302 | public function setCharset($charset) |
294 | 303 | { |
295 | 304 | $this->charset = $charset; |
@@ -334,6 +343,9 @@ discard block |
||
334 | 343 | return $key === null ? $this->style : get_by_key($this->style, $key, ''); |
335 | 344 | } |
336 | 345 | |
346 | + /** |
|
347 | + * @param string $name |
|
348 | + */ |
|
337 | 349 | public function view($name, array $params = []) |
338 | 350 | { |
339 | 351 | return View::make( |
@@ -570,6 +582,10 @@ discard block |
||
570 | 582 | return $content; |
571 | 583 | } |
572 | 584 | |
585 | + /** |
|
586 | + * @param string $name |
|
587 | + * @param string $config |
|
588 | + */ |
|
573 | 589 | public function makeTemplate($name, $config = null, array $placeholders = [], $clean = true) : string |
574 | 590 | { |
575 | 591 | $content = $this->getTemplate($name, $config); |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | * |
382 | 382 | * @param string $name |
383 | 383 | * @param string $tpl |
384 | - * @return null |
|
384 | + * @return string |
|
385 | 385 | */ |
386 | 386 | protected function getTwig($name, $tpl) |
387 | 387 | { |
@@ -448,7 +448,7 @@ discard block |
||
448 | 448 | /** |
449 | 449 | * @param $out |
450 | 450 | * @param Core|null $modx |
451 | - * @return mixed|string |
|
451 | + * @return string |
|
452 | 452 | */ |
453 | 453 | public function parseDocumentSource($out, $modx = null) |
454 | 454 | { |
@@ -46,7 +46,7 @@ |
||
46 | 46 | /** |
47 | 47 | * Get the services provided by the provider. |
48 | 48 | * |
49 | - * @return array |
|
49 | + * @return string[] |
|
50 | 50 | */ |
51 | 51 | public function provides() |
52 | 52 | { |
@@ -75,6 +75,10 @@ discard block |
||
75 | 75 | |
76 | 76 | public static $dataGridCnt; |
77 | 77 | |
78 | + /** |
|
79 | + * @param null|string $id |
|
80 | + * @param string $ds |
|
81 | + */ |
|
78 | 82 | public function __construct($id, $ds, $pageSize = 20, $pageNumber = -1) { |
79 | 83 | // set id |
80 | 84 | self::$dataGridCnt++; |
@@ -207,6 +211,9 @@ discard block |
||
207 | 211 | |
208 | 212 | // format column values |
209 | 213 | |
214 | + /** |
|
215 | + * @param integer $n |
|
216 | + */ |
|
210 | 217 | public function RenderRowFnc($n, $row) { |
211 | 218 | if($this->_alt == 0) { |
212 | 219 | $Style = $this->_itemStyle; |
@@ -33,6 +33,9 @@ discard block |
||
33 | 33 | public $renderPagerFncArgs; |
34 | 34 | public static $dataSetPagerCnt; |
35 | 35 | |
36 | + /** |
|
37 | + * @param boolean|string $id |
|
38 | + */ |
|
36 | 39 | public function __construct($id, $ds, $pageSize = 10, $pageNumber = -1) { |
37 | 40 | global $_PAGE; // use view state object |
38 | 41 | |
@@ -77,6 +80,9 @@ discard block |
||
77 | 80 | $this->pageSize = $ps; |
78 | 81 | } |
79 | 82 | |
83 | + /** |
|
84 | + * @param DataGrid $fncName |
|
85 | + */ |
|
80 | 86 | public function setRenderRowFnc($fncName, $args = "") { |
81 | 87 | $this->renderRowFnc = &$fncName; |
82 | 88 | $this->renderRowFncArgs = $args; // extra agruments |