Completed
Pull Request — development (#782)
by
unknown
04:26
created
htdocs/lib2/logic/cachelist.class.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -18,6 +18,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.