@@ -72,7 +72,7 @@ |
||
72 | 72 | * @deprecated |
73 | 73 | * |
74 | 74 | * @param $rs |
75 | - * @return int|mixed |
|
75 | + * @return integer |
|
76 | 76 | */ |
77 | 77 | public function insertId($rs) |
78 | 78 | { |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | /** |
95 | 95 | * @param string $mode |
96 | 96 | * @param string $modifiers |
97 | - * @return bool|string |
|
97 | + * @return false|string |
|
98 | 98 | */ |
99 | 99 | public function _getDelim($mode,$modifiers) { |
100 | 100 | $c = substr($modifiers,0,1); |
@@ -131,6 +131,14 @@ discard block |
||
131 | 131 | return $opt; |
132 | 132 | } |
133 | 133 | } |
134 | + |
|
135 | + /** |
|
136 | + * @param string $mode |
|
137 | + * @param false|string $delim |
|
138 | + * @param string $modifiers |
|
139 | + * |
|
140 | + * @return string |
|
141 | + */ |
|
134 | 142 | public function _getRemainModifiers($mode,$delim,$modifiers) { |
135 | 143 | if($delim) { |
136 | 144 | if($mode=='(') |
@@ -158,6 +166,9 @@ discard block |
||
158 | 166 | return substr($string,strpos($string, $delim)+$len); |
159 | 167 | } |
160 | 168 | |
169 | + /** |
|
170 | + * @param string $modifiers |
|
171 | + */ |
|
161 | 172 | public function splitEachModifiers($modifiers) { |
162 | 173 | $modx = evolutionCMS(); |
163 | 174 | |
@@ -227,6 +238,10 @@ discard block |
||
227 | 238 | return $result; |
228 | 239 | } |
229 | 240 | |
241 | + /** |
|
242 | + * @param string $key |
|
243 | + * @param string $value |
|
244 | + */ |
|
230 | 245 | public function parsePhx($key,$value,$modifiers) |
231 | 246 | { |
232 | 247 | $modx = evolutionCMS(); |
@@ -293,6 +308,10 @@ discard block |
||
293 | 308 | else return true; |
294 | 309 | } |
295 | 310 | |
311 | + /** |
|
312 | + * @param string $cmd |
|
313 | + * @param string $opt |
|
314 | + */ |
|
296 | 315 | public function getValueFromPreset($key, $value, $cmd, $opt) |
297 | 316 | { |
298 | 317 | $modx = evolutionCMS(); |
@@ -978,6 +997,9 @@ discard block |
||
978 | 997 | return $value; |
979 | 998 | } |
980 | 999 | |
1000 | + /** |
|
1001 | + * @param string $cmd |
|
1002 | + */ |
|
981 | 1003 | public function includeMdfFile($cmd) { |
982 | 1004 | $modx = evolutionCMS(); |
983 | 1005 | $key = $this->key; |
@@ -1133,6 +1155,10 @@ discard block |
||
1133 | 1155 | } |
1134 | 1156 | |
1135 | 1157 | // Sets a placeholder variable which can only be access by Modifiers |
1158 | + |
|
1159 | + /** |
|
1160 | + * @param string $value |
|
1161 | + */ |
|
1136 | 1162 | public function setModifiersVariable($key, $value) { |
1137 | 1163 | if ($key != 'phx' && $key != 'dummy') $this->placeholders[$key] = $value; |
1138 | 1164 | } |
@@ -130,7 +130,7 @@ |
||
130 | 130 | * duplicate of method in documentParser class |
131 | 131 | * |
132 | 132 | * @param string $propertyString |
133 | - * @return array |
|
133 | + * @return string |
|
134 | 134 | */ |
135 | 135 | function parseProperties($propertyString) { |
136 | 136 | $parameter= array (); |
@@ -268,6 +268,7 @@ discard block |
||
268 | 268 | /** |
269 | 269 | * @name: delete |
270 | 270 | * |
271 | + * @param string $from |
|
271 | 272 | */ |
272 | 273 | public function delete($from, $where = '', $orderby = '', $limit = '') |
273 | 274 | { |
@@ -414,6 +415,9 @@ discard block |
||
414 | 415 | } |
415 | 416 | } |
416 | 417 | |
418 | + /** |
|
419 | + * @param string $table |
|
420 | + */ |
|
417 | 421 | public function save($fields, $table, $where = '') |
418 | 422 | { |
419 | 423 | |
@@ -444,6 +448,7 @@ discard block |
||
444 | 448 | /** |
445 | 449 | * @name: freeResult |
446 | 450 | * |
451 | + * @param mysqli_result $rs |
|
447 | 452 | */ |
448 | 453 | public function freeResult($rs) |
449 | 454 | { |
@@ -554,6 +559,7 @@ discard block |
||
554 | 559 | * @name: getColumn |
555 | 560 | * @desc: returns an array of the values found on colun $name |
556 | 561 | * @param: $dsq - dataset or query string |
562 | + * @param string $name |
|
557 | 563 | */ |
558 | 564 | public function getColumn($name, $dsq) |
559 | 565 | { |
@@ -720,6 +726,9 @@ discard block |
||
720 | 726 | return $result; |
721 | 727 | } |
722 | 728 | |
729 | + /** |
|
730 | + * @param string $table_name |
|
731 | + */ |
|
723 | 732 | public function optimize($table_name) |
724 | 733 | { |
725 | 734 | $rs = $this->query("OPTIMIZE TABLE {$table_name}"); |
@@ -730,6 +739,9 @@ discard block |
||
730 | 739 | return $rs; |
731 | 740 | } |
732 | 741 | |
742 | + /** |
|
743 | + * @param string $table_name |
|
744 | + */ |
|
733 | 745 | public function truncate($table_name) |
734 | 746 | { |
735 | 747 | $rs = $this->query("TRUNCATE {$table_name}"); |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | * |
173 | 173 | * @param string $param |
174 | 174 | * @param array $tvsArray |
175 | - * @return mixed |
|
175 | + * @return string |
|
176 | 176 | */ |
177 | 177 | function parseTvValues($param, $tvsArray) |
178 | 178 | { |
@@ -566,7 +566,7 @@ discard block |
||
566 | 566 | /** |
567 | 567 | * returns an array if a delimiter is present. returns array is a recordset is present |
568 | 568 | * |
569 | - * @param $src |
|
569 | + * @param string $src |
|
570 | 570 | * @param string $delim |
571 | 571 | * @param string $type |
572 | 572 | * @param bool $columns |
@@ -1022,7 +1022,7 @@ discard block |
||
1022 | 1022 | |
1023 | 1023 | if (! function_exists('ParseIntputOptions')) { |
1024 | 1024 | /** |
1025 | - * @param string|array|mysqli_result $v |
|
1025 | + * @param string $v |
|
1026 | 1026 | * @return array |
1027 | 1027 | */ |
1028 | 1028 | function ParseIntputOptions($v) |
@@ -237,7 +237,7 @@ |
||
237 | 237 | /** |
238 | 238 | * build siteCache file |
239 | 239 | * @param DocumentParser $modx |
240 | - * @return boolean success |
|
240 | + * @return null|boolean success |
|
241 | 241 | */ |
242 | 242 | public function buildCache($modx) |
243 | 243 | { |
@@ -63,7 +63,7 @@ |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
66 | - * @return mixed |
|
66 | + * @return string |
|
67 | 67 | */ |
68 | 68 | public function getOutput() |
69 | 69 | { |
@@ -278,8 +278,7 @@ discard block |
||
278 | 278 | /** |
279 | 279 | * Sets the width attribute of each column in the array. |
280 | 280 | * |
281 | - * @param array $value An Array of column widths in the order of the keys in the |
|
282 | - * source table array. |
|
281 | + * @param string[] $widthArray |
|
283 | 282 | */ |
284 | 283 | public function setColumnWidths($widthArray) |
285 | 284 | { |
@@ -289,7 +288,6 @@ discard block |
||
289 | 288 | /** |
290 | 289 | * An optional array of values that can be preselected when using |
291 | 290 | * |
292 | - * @param array $value Indicates the INPUT form element type attribute. |
|
293 | 291 | */ |
294 | 292 | public function setSelectedValues($valueArray) |
295 | 293 | { |
@@ -326,7 +324,7 @@ discard block |
||
326 | 324 | /** |
327 | 325 | * Determines what class the current row should have applied. |
328 | 326 | * |
329 | - * @param int $value The position of the current row being rendered. |
|
327 | + * @param integer $position |
|
330 | 328 | * @return string |
331 | 329 | */ |
332 | 330 | public function determineRowClass($position) |
@@ -353,7 +351,6 @@ discard block |
||
353 | 351 | * Generates an onclick action applied to the current cell, to execute |
354 | 352 | * any specified cell actions. |
355 | 353 | * |
356 | - * @param string $value Indicates the INPUT form element type attribute. |
|
357 | 354 | * @return string |
358 | 355 | */ |
359 | 356 | public function getCellAction($currentActionFieldValue) |
@@ -395,7 +392,7 @@ discard block |
||
395 | 392 | /** |
396 | 393 | * Function to prepare a link generated in the table cell/link actions. |
397 | 394 | * |
398 | - * @param string $value Indicates the INPUT form element type attribute. |
|
395 | + * @param string $link |
|
399 | 396 | * @return string |
400 | 397 | */ |
401 | 398 | public function prepareLink($link) |
@@ -414,7 +411,7 @@ discard block |
||
414 | 411 | * |
415 | 412 | * @param array $fieldsArray The associative array representing the table rows |
416 | 413 | * and columns. |
417 | - * @param array $fieldHeadersArray An optional array of values for providing |
|
414 | + * @param string[] $fieldHeadersArray An optional array of values for providing |
|
418 | 415 | * alternative field headers; this is an associative arrays of keys from |
419 | 416 | * the $fieldsArray where the values represent the alt heading content |
420 | 417 | * for each column. |
@@ -149,7 +149,7 @@ |
||
149 | 149 | /** |
150 | 150 | * This function returns the current page number. |
151 | 151 | * |
152 | - * @return int |
|
152 | + * @return string |
|
153 | 153 | */ |
154 | 154 | public function getCurrentPage() |
155 | 155 | { |