@@ -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 | { |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | // sanitize array |
| 17 | 17 | if (!function_exists('modx_sanitize_gpc')) { |
| 18 | 18 | /** |
| 19 | - * @param array|string $values |
|
| 19 | + * @param string $values |
|
| 20 | 20 | * @param int $depth |
| 21 | 21 | * @return array|string |
| 22 | 22 | */ |
@@ -163,7 +163,7 @@ |
||
| 163 | 163 | * |
| 164 | 164 | * @param string $param |
| 165 | 165 | * @param array $tvsArray |
| 166 | - * @return mixed |
|
| 166 | + * @return string |
|
| 167 | 167 | */ |
| 168 | 168 | function parseTvValues($param, $tvsArray) |
| 169 | 169 | { |
@@ -349,7 +349,7 @@ |
||
| 349 | 349 | /** |
| 350 | 350 | * returns an array if a delimiter is present. returns array is a recordset is present |
| 351 | 351 | * |
| 352 | - * @param $src |
|
| 352 | + * @param string $src |
|
| 353 | 353 | * @param string $delim |
| 354 | 354 | * @param string $type |
| 355 | 355 | * @param bool $columns |
@@ -381,7 +381,7 @@ |
||
| 381 | 381 | } // end renderFormElement function |
| 382 | 382 | |
| 383 | 383 | /** |
| 384 | - * @param string|array|mysqli_result $v |
|
| 384 | + * @param string $v |
|
| 385 | 385 | * @return array |
| 386 | 386 | */ |
| 387 | 387 | 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 | { |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | * MODX_MANAGER_PATH."includes/extenders/ex_{$extname}.inc.php" |
| 278 | 278 | * $extname - extension name in lowercase |
| 279 | 279 | * |
| 280 | - * @param $extname |
|
| 280 | + * @param string $extname |
|
| 281 | 281 | * @param bool $reload |
| 282 | 282 | * @return bool |
| 283 | 283 | */ |
@@ -320,7 +320,7 @@ discard block |
||
| 320 | 320 | * @param int $count_attempts |
| 321 | 321 | * @param string $type $type |
| 322 | 322 | * @param string $responseCode |
| 323 | - * @return bool|null |
|
| 323 | + * @return false|null |
|
| 324 | 324 | * @global string $base_url |
| 325 | 325 | * @global string $site_url |
| 326 | 326 | */ |
@@ -1021,7 +1021,7 @@ discard block |
||
| 1021 | 1021 | } |
| 1022 | 1022 | |
| 1023 | 1023 | /** |
| 1024 | - * @param $contents |
|
| 1024 | + * @param string $contents |
|
| 1025 | 1025 | * @return mixed |
| 1026 | 1026 | */ |
| 1027 | 1027 | public function RecoveryEscapedTags($contents) |
@@ -1045,7 +1045,7 @@ discard block |
||
| 1045 | 1045 | } |
| 1046 | 1046 | |
| 1047 | 1047 | /** |
| 1048 | - * @param $tstart |
|
| 1048 | + * @param double $tstart |
|
| 1049 | 1049 | * @return array |
| 1050 | 1050 | */ |
| 1051 | 1051 | public function getTimerStats($tstart) |
@@ -1797,7 +1797,7 @@ discard block |
||
| 1797 | 1797 | |
| 1798 | 1798 | /** |
| 1799 | 1799 | * Remove Comment-Tags from output like <!--@- Comment -@--> |
| 1800 | - * @param $content |
|
| 1800 | + * @param string $content |
|
| 1801 | 1801 | * @param string $left |
| 1802 | 1802 | * @param string $right |
| 1803 | 1803 | * @return mixed |
@@ -1970,7 +1970,7 @@ discard block |
||
| 1970 | 1970 | /** |
| 1971 | 1971 | * Run snippets as per the tags in $documentSource and replace the tags with the returned values. |
| 1972 | 1972 | * |
| 1973 | - * @param $content |
|
| 1973 | + * @param string $content |
|
| 1974 | 1974 | * @return string |
| 1975 | 1975 | * @internal param string $documentSource |
| 1976 | 1976 | */ |
@@ -3002,7 +3002,7 @@ discard block |
||
| 3002 | 3002 | |
| 3003 | 3003 | /** |
| 3004 | 3004 | * @param $templateID |
| 3005 | - * @return mixed |
|
| 3005 | + * @return string |
|
| 3006 | 3006 | */ |
| 3007 | 3007 | public function _getTemplateCodeFromDB($templateID) |
| 3008 | 3008 | { |
@@ -3043,9 +3043,9 @@ discard block |
||
| 3043 | 3043 | } |
| 3044 | 3044 | |
| 3045 | 3045 | /** |
| 3046 | - * @param $id |
|
| 3046 | + * @param integer $id |
|
| 3047 | 3047 | * @param int $top |
| 3048 | - * @return mixed |
|
| 3048 | + * @return string |
|
| 3049 | 3049 | */ |
| 3050 | 3050 | public function getUltimateParentId($id, $top = 0) |
| 3051 | 3051 | { |
@@ -3376,7 +3376,7 @@ discard block |
||
| 3376 | 3376 | * |
| 3377 | 3377 | * @param int $type Types: 1=template, 2=tv, 3=chunk, 4=snippet, 5=plugin, 6=module, 7=resource, 8=role |
| 3378 | 3378 | * @param int $id Element- / Resource-id |
| 3379 | - * @return bool |
|
| 3379 | + * @return false|null |
|
| 3380 | 3380 | */ |
| 3381 | 3381 | public function lockElement($type, $id) |
| 3382 | 3382 | { |
@@ -3398,7 +3398,7 @@ discard block |
||
| 3398 | 3398 | * @param int $type Types: 1=template, 2=tv, 3=chunk, 4=snippet, 5=plugin, 6=module, 7=resource, 8=role |
| 3399 | 3399 | * @param int $id Element- / Resource-id |
| 3400 | 3400 | * @param bool $includeAllUsers true = Deletes not only own user-locks |
| 3401 | - * @return bool |
|
| 3401 | + * @return false|null |
|
| 3402 | 3402 | */ |
| 3403 | 3403 | public function unlockElement($type, $id, $includeAllUsers = false) |
| 3404 | 3404 | { |
@@ -3506,7 +3506,7 @@ discard block |
||
| 3506 | 3506 | * @param array $params |
| 3507 | 3507 | * @param string $msg |
| 3508 | 3508 | * @param array $files |
| 3509 | - * @return mixed |
|
| 3509 | + * @return boolean |
|
| 3510 | 3510 | */ |
| 3511 | 3511 | public function sendmail($params = array(), $msg = '', $files = array()) |
| 3512 | 3512 | { |
@@ -3910,7 +3910,7 @@ discard block |
||
| 3910 | 3910 | * Default: 1 |
| 3911 | 3911 | * @param string $fields List of fields |
| 3912 | 3912 | * Default: id, pagetitle, description, alias |
| 3913 | - * @return boolean|array |
|
| 3913 | + * @return string |
|
| 3914 | 3914 | */ |
| 3915 | 3915 | public function getPageInfo($pageid = -1, $active = 1, $fields = 'id, pagetitle, description, alias') |
| 3916 | 3916 | { |
@@ -4002,7 +4002,7 @@ discard block |
||
| 4002 | 4002 | * |
| 4003 | 4003 | * @param string $type |
| 4004 | 4004 | * @param bool $report |
| 4005 | - * @return bool |
|
| 4005 | + * @return boolean|null |
|
| 4006 | 4006 | */ |
| 4007 | 4007 | public function clearCache($type = '', $report = false) |
| 4008 | 4008 | { |
@@ -4369,7 +4369,7 @@ discard block |
||
| 4369 | 4369 | * - Placeholders prefix. Default: '{'. |
| 4370 | 4370 | * @param string $suffix {string} |
| 4371 | 4371 | * - Placeholders suffix. Default: '}'. |
| 4372 | - * @return bool|mixed|string {string; false} - Parsed chunk or false if $chunkArr is not array. |
|
| 4372 | + * @return false|string {string; false} - Parsed chunk or false if $chunkArr is not array. |
|
| 4373 | 4373 | * - Parsed chunk or false if $chunkArr is not array. |
| 4374 | 4374 | */ |
| 4375 | 4375 | public function parseChunk($chunkName, $chunkArr, $prefix = '{', $suffix = '}') |
@@ -5345,7 +5345,7 @@ discard block |
||
| 5345 | 5345 | * Remove event listener - only for use within the current execution cycle |
| 5346 | 5346 | * |
| 5347 | 5347 | * @param string $evtName |
| 5348 | - * @return boolean |
|
| 5348 | + * @return false|null |
|
| 5349 | 5349 | */ |
| 5350 | 5350 | public function removeEventListener($evtName) |
| 5351 | 5351 | { |
@@ -5369,7 +5369,7 @@ discard block |
||
| 5369 | 5369 | * |
| 5370 | 5370 | * @param string $evtName |
| 5371 | 5371 | * @param array $extParams Parameters available to plugins. Each array key will be the PHP variable name, and the array value will be the variable value. |
| 5372 | - * @return boolean|array |
|
| 5372 | + * @return false|null |
|
| 5373 | 5373 | */ |
| 5374 | 5374 | public function invokeEvent($evtName, $extParams = array()) |
| 5375 | 5375 | { |
@@ -5968,7 +5968,7 @@ discard block |
||
| 5968 | 5968 | |
| 5969 | 5969 | /** |
| 5970 | 5970 | * @param string $str |
| 5971 | - * @return bool|mixed|string |
|
| 5971 | + * @return string |
|
| 5972 | 5972 | */ |
| 5973 | 5973 | public function atBindFileContent($str = '') |
| 5974 | 5974 | { |
@@ -6019,8 +6019,8 @@ discard block |
||
| 6019 | 6019 | } |
| 6020 | 6020 | |
| 6021 | 6021 | /** |
| 6022 | - * @param $str |
|
| 6023 | - * @return bool|string |
|
| 6022 | + * @param string $str |
|
| 6023 | + * @return false|string |
|
| 6024 | 6024 | */ |
| 6025 | 6025 | public function getExtFromFilename($str) |
| 6026 | 6026 | { |
@@ -6048,7 +6048,7 @@ discard block |
||
| 6048 | 6048 | * @param string $text Error message |
| 6049 | 6049 | * @param string $file File where the error was detected |
| 6050 | 6050 | * @param string $line Line number within $file |
| 6051 | - * @return boolean |
|
| 6051 | + * @return boolean|null |
|
| 6052 | 6052 | */ |
| 6053 | 6053 | public function phpError($nr, $text, $file, $line) |
| 6054 | 6054 | { |
@@ -6100,7 +6100,7 @@ discard block |
||
| 6100 | 6100 | * @param string $text |
| 6101 | 6101 | * @param string $line |
| 6102 | 6102 | * @param string $output |
| 6103 | - * @return bool |
|
| 6103 | + * @return null|boolean |
|
| 6104 | 6104 | */ |
| 6105 | 6105 | public function messageQuit($msg = 'unspecified error', $query = '', $is_error = true, $nr = '', $file = '', $source = '', $text = '', $line = '', $output = '') |
| 6106 | 6106 | { |
@@ -6522,7 +6522,7 @@ discard block |
||
| 6522 | 6522 | |
| 6523 | 6523 | /** |
| 6524 | 6524 | * @param string $str |
| 6525 | - * @return bool|mixed|string |
|
| 6525 | + * @return string |
|
| 6526 | 6526 | */ |
| 6527 | 6527 | public function atBindInclude($str = '') |
| 6528 | 6528 | { |
@@ -6573,7 +6573,7 @@ discard block |
||
| 6573 | 6573 | * @param $str |
| 6574 | 6574 | * @param int $flags |
| 6575 | 6575 | * @param string $encode |
| 6576 | - * @return mixed |
|
| 6576 | + * @return string |
|
| 6577 | 6577 | */ |
| 6578 | 6578 | public function htmlspecialchars($str, $flags = ENT_COMPAT, $encode = '') |
| 6579 | 6579 | { |
@@ -6582,7 +6582,7 @@ discard block |
||
| 6582 | 6582 | } |
| 6583 | 6583 | |
| 6584 | 6584 | /** |
| 6585 | - * @param $string |
|
| 6585 | + * @param string $string |
|
| 6586 | 6586 | * @param bool $returnData |
| 6587 | 6587 | * @return bool|mixed |
| 6588 | 6588 | */ |
@@ -414,6 +414,9 @@ discard block |
||
| 414 | 414 | } |
| 415 | 415 | } |
| 416 | 416 | |
| 417 | + /** |
|
| 418 | + * @param string $table |
|
| 419 | + */ |
|
| 417 | 420 | public function save($fields, $table, $where = '') |
| 418 | 421 | { |
| 419 | 422 | |
@@ -444,6 +447,7 @@ discard block |
||
| 444 | 447 | /** |
| 445 | 448 | * @name: freeResult |
| 446 | 449 | * |
| 450 | + * @param mysqli_result $rs |
|
| 447 | 451 | */ |
| 448 | 452 | public function freeResult($rs) |
| 449 | 453 | { |
@@ -554,6 +558,7 @@ discard block |
||
| 554 | 558 | * @name: getColumn |
| 555 | 559 | * @desc: returns an array of the values found on colun $name |
| 556 | 560 | * @param: $dsq - dataset or query string |
| 561 | + * @param string $name |
|
| 557 | 562 | */ |
| 558 | 563 | public function getColumn($name, $dsq) |
| 559 | 564 | { |
@@ -720,6 +725,9 @@ discard block |
||
| 720 | 725 | return $result; |
| 721 | 726 | } |
| 722 | 727 | |
| 728 | + /** |
|
| 729 | + * @param string $table_name |
|
| 730 | + */ |
|
| 723 | 731 | public function optimize($table_name) |
| 724 | 732 | { |
| 725 | 733 | $rs = $this->query("OPTIMIZE TABLE {$table_name}"); |
@@ -730,6 +738,9 @@ discard block |
||
| 730 | 738 | return $rs; |
| 731 | 739 | } |
| 732 | 740 | |
| 741 | + /** |
|
| 742 | + * @param string $table_name |
|
| 743 | + */ |
|
| 733 | 744 | public function truncate($table_name) |
| 734 | 745 | { |
| 735 | 746 | $rs = $this->query("TRUNCATE {$table_name}"); |