@@ -145,6 +145,9 @@ discard block |
||
145 | 145 | return $this->reCachelist->setValue('description', $desc); |
146 | 146 | } |
147 | 147 | |
148 | + /** |
|
149 | + * @param string $pw |
|
150 | + */ |
|
148 | 151 | public function setPassword($pw) |
149 | 152 | { |
150 | 153 | $this->reCachelist->setValue('password', $pw); |
@@ -225,6 +228,9 @@ discard block |
||
225 | 228 | return sql_fetch_assoc_table($rs); |
226 | 229 | } |
227 | 230 | |
231 | + /** |
|
232 | + * @param string $wp |
|
233 | + */ |
|
228 | 234 | public function addCacheByWP($wp) |
229 | 235 | { |
230 | 236 | $cache = cache::fromWP($wp); |
@@ -261,6 +267,9 @@ discard block |
||
261 | 267 | return $this->addCache(new cache($cache_id)); |
262 | 268 | } |
263 | 269 | |
270 | + /** |
|
271 | + * @param cache $cache |
|
272 | + */ |
|
264 | 273 | public function addCache($cache) |
265 | 274 | { |
266 | 275 | if (!$cache->exist() || !$cache->allowView()) { |
@@ -496,6 +505,10 @@ discard block |
||
496 | 505 | return false; |
497 | 506 | } |
498 | 507 | |
508 | + /** |
|
509 | + * @param string $condition |
|
510 | + * @param integer $maxitems |
|
511 | + */ |
|
499 | 512 | private static function getLists( |
500 | 513 | $condition, |
501 | 514 | $prio = 0, |
@@ -435,8 +435,8 @@ discard block |
||
435 | 435 | . ($namelike ? " AND `name` LIKE '%" . sql_escape($namelike) . "%'" : '') |
436 | 436 | . ($userlike ? " AND `username` LIKE '%" . sql_escape($userlike) . "%'" : ''), |
437 | 437 | 0, |
438 | - (int) $startat, |
|
439 | - (int) $maxitems, |
|
438 | + (int)$startat, |
|
439 | + (int)$maxitems, |
|
440 | 440 | true |
441 | 441 | ); |
442 | 442 | } |
@@ -526,8 +526,8 @@ discard block |
||
526 | 526 | ORDER BY `prio`, $nameField |
527 | 527 | LIMIT &2,&3", |
528 | 528 | $login->userid, |
529 | - (int) $startat, |
|
530 | - (int) $maxitems |
|
529 | + (int)$startat, |
|
530 | + (int)$maxitems |
|
531 | 531 | ); |
532 | 532 | |
533 | 533 | $lists = sql_fetch_assoc_table($rs); |