@@ -68,9 +68,9 @@ discard block |
||
| 68 | 68 | /** |
| 69 | 69 | * str = single word |
| 70 | 70 | * @param $str |
| 71 | - * @param $simple |
|
| 71 | + * @param boolean $simple |
|
| 72 | 72 | * |
| 73 | - * @return array |
|
| 73 | + * @return string |
|
| 74 | 74 | */ |
| 75 | 75 | function ftsearch_split(&$str, $simple) |
| 76 | 76 | { |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | * str = single word |
| 142 | 142 | * @param $str |
| 143 | 143 | * |
| 144 | - * @return mixed|string |
|
| 144 | + * @return string |
|
| 145 | 145 | */ |
| 146 | 146 | function ftsearch_text2simple($str) |
| 147 | 147 | { |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | * str = single word |
| 172 | 172 | * @param $str |
| 173 | 173 | * |
| 174 | - * @return mixed|string |
|
| 174 | + * @return string |
|
| 175 | 175 | */ |
| 176 | 176 | function ftsearch_text2sort($str) |
| 177 | 177 | { |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | /** |
| 315 | 315 | * @param $text |
| 316 | 316 | * |
| 317 | - * @return mixed|string |
|
| 317 | + * @return string |
|
| 318 | 318 | */ |
| 319 | 319 | function ftsearch_strip_html($text) |
| 320 | 320 | { |
@@ -422,7 +422,7 @@ discard block |
||
| 422 | 422 | /** |
| 423 | 423 | * @deprecated use DBAL Conenction instead. See adminreports.php for an example implementation |
| 424 | 424 | * @param $value |
| 425 | - * @return false|string |
|
| 425 | + * @return string |
|
| 426 | 426 | */ |
| 427 | 427 | function sql_escape($value) |
| 428 | 428 | { |
@@ -436,7 +436,7 @@ discard block |
||
| 436 | 436 | /** |
| 437 | 437 | * @deprecated use DBAL Conenction instead. See adminreports.php for an example implementation |
| 438 | 438 | * @param $value |
| 439 | - * @return false|mixed|string |
|
| 439 | + * @return string |
|
| 440 | 440 | */ |
| 441 | 441 | function sql_escape_backtick($value) |
| 442 | 442 | { |
@@ -547,7 +547,7 @@ discard block |
||
| 547 | 547 | |
| 548 | 548 | /** |
| 549 | 549 | * @deprecated use DBAL Conenction instead. See adminreports.php for an example implementation |
| 550 | - * @param $rs |
|
| 550 | + * @param resource $rs |
|
| 551 | 551 | * @return array |
| 552 | 552 | */ |
| 553 | 553 | function sql_fetch_row($rs) |
@@ -1279,7 +1279,7 @@ |
||
| 1279 | 1279 | |
| 1280 | 1280 | /** |
| 1281 | 1281 | * @deprecated use DBAL Conenction instead. See adminreports.php for an example implementation |
| 1282 | - * @param $f |
|
| 1282 | + * @param resource $f |
|
| 1283 | 1283 | * @param resource $rs |
| 1284 | 1284 | * @param $table |
| 1285 | 1285 | * @param bool $truncate |
@@ -146,6 +146,9 @@ discard block |
||
| 146 | 146 | return $this->reCachelist->setValue('description', $desc); |
| 147 | 147 | } |
| 148 | 148 | |
| 149 | + /** |
|
| 150 | + * @param string $pw |
|
| 151 | + */ |
|
| 149 | 152 | public function setPassword($pw) |
| 150 | 153 | { |
| 151 | 154 | $this->reCachelist->setValue('password', $pw); |
@@ -226,6 +229,9 @@ discard block |
||
| 226 | 229 | return sql_fetch_assoc_table($rs); |
| 227 | 230 | } |
| 228 | 231 | |
| 232 | + /** |
|
| 233 | + * @param string $wp |
|
| 234 | + */ |
|
| 229 | 235 | public function addCacheByWP($wp) |
| 230 | 236 | { |
| 231 | 237 | $cache = cache::fromWP($wp); |
@@ -262,6 +268,9 @@ discard block |
||
| 262 | 268 | return $this->addCache(new cache($cache_id)); |
| 263 | 269 | } |
| 264 | 270 | |
| 271 | + /** |
|
| 272 | + * @param cache $cache |
|
| 273 | + */ |
|
| 265 | 274 | public function addCache($cache) |
| 266 | 275 | { |
| 267 | 276 | if (!$cache->exist() || !$cache->allowView()) { |
@@ -497,6 +506,9 @@ discard block |
||
| 497 | 506 | return false; |
| 498 | 507 | } |
| 499 | 508 | |
| 509 | + /** |
|
| 510 | + * @param string $condition |
|
| 511 | + */ |
|
| 500 | 512 | private static function getLists( |
| 501 | 513 | $condition, |
| 502 | 514 | $prio = 0, |
@@ -92,6 +92,9 @@ |
||
| 92 | 92 | return $returnValue; |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | + /** |
|
| 96 | + * @param boolean $showall |
|
| 97 | + */ |
|
| 95 | 98 | public function getRS($selectedId, $showall) |
| 96 | 99 | { |
| 97 | 100 | if ($showall != false) { |
@@ -164,6 +164,9 @@ discard block |
||
| 164 | 164 | self::$aLabels[$name] = unserialize($serialized); |
| 165 | 165 | } |
| 166 | 166 | |
| 167 | + /** |
|
| 168 | + * @param string $name |
|
| 169 | + */ |
|
| 167 | 170 | public static function getLabels($name) |
| 168 | 171 | { |
| 169 | 172 | if (isset(self::$aLabels[$name])) { |
@@ -173,6 +176,9 @@ discard block |
||
| 173 | 176 | return false; |
| 174 | 177 | } |
| 175 | 178 | |
| 179 | + /** |
|
| 180 | + * @param string $name |
|
| 181 | + */ |
|
| 176 | 182 | public static function getLabelValue($name, $id) |
| 177 | 183 | { |
| 178 | 184 | if (isset(self::$aLabels[$name])) { |
@@ -122,12 +122,19 @@ |
||
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | |
| 125 | +/** |
|
| 126 | + * @param integer $cache_id |
|
| 127 | + * @param integer $old_logtype |
|
| 128 | + */ |
|
| 125 | 129 | function logtype_ok($cache_id, $logtype_id, $old_logtype, $statusLogs = true) |
| 126 | 130 | { |
| 127 | 131 | return in_array($logtype_id, get_cache_log_types($cache_id, $old_logtype, $statusLogs)); |
| 128 | 132 | } |
| 129 | 133 | |
| 130 | 134 | |
| 135 | +/** |
|
| 136 | + * @param integer $cache_id |
|
| 137 | + */ |
|
| 131 | 138 | function teamcomment_allowed($cache_id, $logtype_id, $old_teamcomment = false) |
| 132 | 139 | { |
| 133 | 140 | global $login, $opt; |
@@ -9,6 +9,9 @@ |
||
| 9 | 9 | |
| 10 | 10 | public $reUser; |
| 11 | 11 | |
| 12 | + /** |
|
| 13 | + * @param integer $nNewUserId |
|
| 14 | + */ |
|
| 12 | 15 | public function __construct($nNewUserId) |
| 13 | 16 | { |
| 14 | 17 | $this->reUser = new rowEditor('user'); |
@@ -27,6 +27,10 @@ |
||
| 27 | 27 | return $aItems; |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | +/** |
|
| 31 | + * @param integer $parentId |
|
| 32 | + * @param integer $sublevel |
|
| 33 | + */ |
|
| 30 | 34 | function pAppendSites($parentId, $viewall, $sublevel, &$aItems) |
| 31 | 35 | { |
| 32 | 36 | global $opt; |