@@ -22,7 +22,7 @@ |
||
22 | 22 | * @deprecated |
23 | 23 | * @param string $name |
24 | 24 | * @param mixed $optional |
25 | - * @return XoopsObjectHandler|XoopsPersistableObjectHandler|null |
|
25 | + * @return Xoops\Core\Kernel\XoopsObjectHandler|null |
|
26 | 26 | */ |
27 | 27 | function xoops_getHandler($name, $optional = false) |
28 | 28 | { |
@@ -197,7 +197,7 @@ |
||
197 | 197 | } |
198 | 198 | |
199 | 199 | /** |
200 | - * @param $page |
|
200 | + * @param string $page |
|
201 | 201 | * |
202 | 202 | * @return string |
203 | 203 | */ |
@@ -12,7 +12,6 @@ |
||
12 | 12 | use Xoops\Core\Database\Connection; |
13 | 13 | use Xoops\Core\Kernel\Criteria; |
14 | 14 | use Xoops\Core\Kernel\CriteriaCompo; |
15 | -use Xoops\Core\Kernel\CriteriaElement; |
|
16 | 15 | use Xoops\Core\Kernel\XoopsObject; |
17 | 16 | use Xoops\Core\Kernel\XoopsPersistableObjectHandler; |
18 | 17 |
@@ -78,6 +78,10 @@ |
||
78 | 78 | } |
79 | 79 | |
80 | 80 | // return: false : execute default action |
81 | + |
|
82 | + /** |
|
83 | + * @param string $type |
|
84 | + */ |
|
81 | 85 | function execute($type) |
82 | 86 | { |
83 | 87 | $ret = 0; |
@@ -54,6 +54,9 @@ discard block |
||
54 | 54 | } |
55 | 55 | |
56 | 56 | |
57 | +/** |
|
58 | + * @param string $sql |
|
59 | + */ |
|
57 | 60 | function injectionFound( $sql ) |
58 | 61 | { |
59 | 62 | $protector = Protector::getInstance() ; |
@@ -65,6 +68,9 @@ discard block |
||
65 | 68 | } |
66 | 69 | |
67 | 70 | |
71 | +/** |
|
72 | + * @param string $sql |
|
73 | + */ |
|
68 | 74 | function separateStringsInSQL( $sql ) |
69 | 75 | { |
70 | 76 | $sql = trim( $sql ) ; |
@@ -251,7 +251,7 @@ |
||
251 | 251 | class PublisherFileHandler extends XoopsPersistableObjectHandler |
252 | 252 | { |
253 | 253 | /** |
254 | - * @param null|object $db |
|
254 | + * @param Connection $db |
|
255 | 255 | */ |
256 | 256 | public function __construct(Connection $db) |
257 | 257 | { |
@@ -11,7 +11,6 @@ |
||
11 | 11 | |
12 | 12 | use Xoops\Core\Database\Connection; |
13 | 13 | use Xoops\Core\Kernel\XoopsObject; |
14 | -use Xoops\Core\Kernel\XoopsObjectHandler; |
|
15 | 14 | use Xoops\Core\Kernel\XoopsPersistableObjectHandler; |
16 | 15 | use Xoops\Core\Kernel\Criteria; |
17 | 16 | use Xoops\Core\Kernel\CriteriaCompo; |
@@ -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 | */ |
@@ -1383,7 +1383,7 @@ discard block |
||
1383 | 1383 | * addNotNullFieldClause exclude rows where specified columns are empty or null |
1384 | 1384 | * |
1385 | 1385 | * @param QueryBuilder $qb QueryBuilder instance |
1386 | - * @param string|array $notNullFields fields that should not be empty |
|
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 | 1389 | * @return QueryBuilder instance |
@@ -35,6 +35,12 @@ |
||
35 | 35 | return self::searchAdvanced($queryarray, $andor, $limit, $offset, $userid, $categories, $sortby, $searchin, $extra); |
36 | 36 | } |
37 | 37 | |
38 | + /** |
|
39 | + * @param string[] $queryarray |
|
40 | + * @param string $andor |
|
41 | + * @param integer $limit |
|
42 | + * @param integer $offset |
|
43 | + */ |
|
38 | 44 | public function searchAdvanced($queryarray, $andor, $limit, $offset, $userid, $categories = array(), $sortby = 0, $searchin = "", $extra = "") |
39 | 45 | { |
40 | 46 | $publisher = Publisher::getInstance(); |
@@ -346,7 +346,7 @@ |
||
346 | 346 | /** |
347 | 347 | * Check is current user is author of a given article |
348 | 348 | * |
349 | - * @param object $itemObj |
|
349 | + * @param PublisherItem $itemObj |
|
350 | 350 | * |
351 | 351 | * @return bool |
352 | 352 | */ |