@@ -18,6 +18,9 @@ discard block |
||
18 | 18 | public $nCachelistId = 0; |
19 | 19 | public $reCachelist; |
20 | 20 | |
21 | + /** |
|
22 | + * @param integer $nNewCacheListId |
|
23 | + */ |
|
21 | 24 | public function __construct($nNewCacheListId = ID_NEW, $nUserId = 0) |
22 | 25 | { |
23 | 26 | $this->reCachelist = new rowEditor('cache_lists'); |
@@ -145,6 +148,9 @@ discard block |
||
145 | 148 | return $this->reCachelist->setValue('description', $desc); |
146 | 149 | } |
147 | 150 | |
151 | + /** |
|
152 | + * @param string $pw |
|
153 | + */ |
|
148 | 154 | public function setPassword($pw): void |
149 | 155 | { |
150 | 156 | $this->reCachelist->setValue('password', $pw); |
@@ -225,6 +231,9 @@ discard block |
||
225 | 231 | return sql_fetch_assoc_table($rs); |
226 | 232 | } |
227 | 233 | |
234 | + /** |
|
235 | + * @param string $wp |
|
236 | + */ |
|
228 | 237 | public function addCacheByWP($wp) |
229 | 238 | { |
230 | 239 | $cache = cache::fromWP($wp); |
@@ -273,6 +282,9 @@ discard block |
||
273 | 282 | return $this->addCache(new cache($cache_id)); |
274 | 283 | } |
275 | 284 | |
285 | + /** |
|
286 | + * @param cache $cache |
|
287 | + */ |
|
276 | 288 | public function addCache($cache) |
277 | 289 | { |
278 | 290 | if (!$cache->exist() || !$cache->allowView()) { |
@@ -508,6 +520,10 @@ discard block |
||
508 | 520 | return false; |
509 | 521 | } |
510 | 522 | |
523 | + /** |
|
524 | + * @param string $condition |
|
525 | + * @param integer $maxitems |
|
526 | + */ |
|
511 | 527 | private static function getLists( |
512 | 528 | $condition, |
513 | 529 | $prio = 0, |