@@ -479,6 +479,11 @@ |
||
479 | 479 | trigger_error("Smarty error: $error_msg", $error_type); |
480 | 480 | } |
481 | 481 | |
482 | + /** |
|
483 | + * @param string $function |
|
484 | + * @param string $file |
|
485 | + * @param integer $line |
|
486 | + */ |
|
482 | 487 | protected function deprecated($function, $file, $line) |
483 | 488 | { |
484 | 489 | $xoops = \Xoops::getInstance(); |
@@ -103,8 +103,8 @@ |
||
103 | 103 | * XoopsTpl::setCompileId() |
104 | 104 | * |
105 | 105 | * @param mixed $module_dirname module directory |
106 | - * @param mixed $theme_set theme set |
|
107 | - * @param mixed $template_set template set |
|
106 | + * @param string $theme_set theme set |
|
107 | + * @param string $template_set template set |
|
108 | 108 | * |
109 | 109 | * @return void |
110 | 110 | */ |
@@ -61,7 +61,7 @@ |
||
61 | 61 | * @deprecated |
62 | 62 | * @param string $name handler name |
63 | 63 | * @param bool $optional is this optional, causes error if false and no handler is available |
64 | - * @return XoopsObjectHandler|XoopsPersistableObjectHandler|null |
|
64 | + * @return Xoops\Core\Kernel\XoopsObjectHandler|null |
|
65 | 65 | */ |
66 | 66 | function xoops_getHandler($name, $optional = false) |
67 | 67 | { |
@@ -46,7 +46,7 @@ |
||
46 | 46 | } |
47 | 47 | |
48 | 48 | /** |
49 | - * @return string |
|
49 | + * @return Xoops\Module\Helper\HelperAbstract |
|
50 | 50 | */ |
51 | 51 | public static function getInstance() |
52 | 52 | { |
@@ -34,6 +34,9 @@ |
||
34 | 34 | return (bool)($value); |
35 | 35 | } |
36 | 36 | |
37 | + /** |
|
38 | + * @param string $sql |
|
39 | + */ |
|
37 | 40 | function query($sql) |
38 | 41 | { |
39 | 42 | $xoops = Xoops::getInstance(); |
@@ -320,7 +320,7 @@ |
||
320 | 320 | * that are not necessarily wrong. |
321 | 321 | * |
322 | 322 | * @param string $message message |
323 | - * @param array $context array of context data for this log entry |
|
323 | + * @param string[] $context array of context data for this log entry |
|
324 | 324 | * |
325 | 325 | * @return void |
326 | 326 | */ |
@@ -50,7 +50,7 @@ |
||
50 | 50 | /** |
51 | 51 | * Get the error code from the last operation |
52 | 52 | * @link http://php.net/manual/en/messageformatter.geterrorcode.php |
53 | - * @return string Code of the last error. |
|
53 | + * @return integer Code of the last error. |
|
54 | 54 | */ |
55 | 55 | public function getErrorCode() |
56 | 56 | { |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | * @param string $format |
141 | 141 | * @param string $stripTags |
142 | 142 | * |
143 | - * @return mixed|string |
|
143 | + * @return string |
|
144 | 144 | */ |
145 | 145 | public function summary($maxLength = 0, $format = "S", $stripTags = '') |
146 | 146 | { |
@@ -621,7 +621,7 @@ discard block |
||
621 | 621 | * @param int $max_char_summary |
622 | 622 | * @param bool $full_summary |
623 | 623 | * |
624 | - * @return array |
|
624 | + * @return integer |
|
625 | 625 | */ |
626 | 626 | public function toArray($display = 'default', $max_char_title = 0, $max_char_summary = 0, $full_summary = false) |
627 | 627 | { |
@@ -758,7 +758,7 @@ discard block |
||
758 | 758 | |
759 | 759 | /** |
760 | 760 | * @param string $content |
761 | - * @param string|array $keywords |
|
761 | + * @param string $keywords |
|
762 | 762 | * |
763 | 763 | * @return string Text |
764 | 764 | */ |
@@ -1382,11 +1382,11 @@ discard block |
||
1382 | 1382 | /** |
1383 | 1383 | * addNotNullFieldClause exclude rows where specified columns are empty or null |
1384 | 1384 | * |
1385 | - * @param QueryBuilder $qb QueryBuilder instance |
|
1386 | - * @param string|array $notNullFields fields that should not be empty |
|
1385 | + * @param Xoops\Core\Database\QueryBuilder $qb QueryBuilder instance |
|
1386 | + * @param string $notNullFields fields that should not be empty |
|
1387 | 1387 | * @param string $whereMode Initial where method, 'AND' andWhere(), otherwise where() |
1388 | 1388 | * |
1389 | - * @return QueryBuilder instance |
|
1389 | + * @return Xoops\Core\Database\QueryBuilder instance |
|
1390 | 1390 | */ |
1391 | 1391 | protected function addNotNullFieldClause(\Xoops\Core\Database\QueryBuilder $qb, $notNullFields = array(), $whereMode = '') |
1392 | 1392 | { |
@@ -712,7 +712,7 @@ discard block |
||
712 | 712 | * @param string $table table |
713 | 713 | * @param bool $prefixed true to return with table name prefixed |
714 | 714 | * |
715 | - * @return string|false string SQL to create table, or false if errors encountered |
|
715 | + * @return string|boolean string SQL to create table, or false if errors encountered |
|
716 | 716 | */ |
717 | 717 | protected function renderTableCreate($table, $prefixed = false) |
718 | 718 | { |
@@ -749,7 +749,7 @@ discard block |
||
749 | 749 | * @param string $sql SQL statement to execute |
750 | 750 | * @param bool $force true to use force updates even in safe requests |
751 | 751 | * |
752 | - * @return mixed result Statement, or false on error |
|
752 | + * @return Statement result Statement, or false on error |
|
753 | 753 | * Any error message is in $this->lastError; |
754 | 754 | */ |
755 | 755 | protected function execSql($sql, $force = false) |