@@ -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(); |
@@ -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) |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * @param integer $inline Nesting level where you switch to inline YAML |
45 | 45 | * @param integer $indent Number of spaces to indent for nested nodes |
46 | 46 | * |
47 | - * @return string|bool YAML string or false on error |
|
47 | + * @return string|false YAML string or false on error |
|
48 | 48 | */ |
49 | 49 | public static function dump($var, $inline = 4, $indent = 4) |
50 | 50 | { |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * @param integer $inline Nesting level where you switch to inline YAML |
103 | 103 | * @param integer $indent Number of spaces to indent for nested nodes |
104 | 104 | * |
105 | - * @return integer|boolean number of bytes written, or false on error |
|
105 | + * @return null|false number of bytes written, or false on error |
|
106 | 106 | */ |
107 | 107 | public static function save($var, $yamlFile, $inline = 4, $indent = 4) |
108 | 108 | { |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | * @param integer $inline Nesting level where you switch to inline YAML |
129 | 129 | * @param integer $indent Number of spaces to indent for nested nodes |
130 | 130 | * |
131 | - * @return string|boolean YAML string or false on error |
|
131 | + * @return string|false YAML string or false on error |
|
132 | 132 | */ |
133 | 133 | public static function dumpWrapped($var, $inline = 4, $indent = 4) |
134 | 134 | { |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | * @param integer $inline Nesting level where you switch to inline YAML |
219 | 219 | * @param integer $indent Number of spaces to indent for nested nodes |
220 | 220 | * |
221 | - * @return integer|boolean number of bytes written, or false on error |
|
221 | + * @return null|false number of bytes written, or false on error |
|
222 | 222 | */ |
223 | 223 | public static function saveWrapped($var, $yamlFile, $inline = 4, $indent = 4) |
224 | 224 | { |
@@ -141,7 +141,7 @@ |
||
141 | 141 | /** |
142 | 142 | * Garbage collection - remove all expired and deleted data |
143 | 143 | * |
144 | - * @return void |
|
144 | + * @return boolean |
|
145 | 145 | */ |
146 | 146 | public function garbageCollect() |
147 | 147 | { |