* Call Linker methods statically
[lhc/web/wiklou.git] / includes / Categoryfinder.php
index 1f08b7f..4a8ed70 100644 (file)
@@ -29,6 +29,10 @@ class Categoryfinder {
        var $targets = array(); # Array of DBKEY category names
        var $name2id = array();
        var $mode; # "AND" or "OR"
+
+       /**
+        * @var DatabaseBase
+        */
        var $dbr; # Read-DB slave
 
        /**
@@ -42,6 +46,7 @@ class Categoryfinder {
         * @param $article_ids Array of article IDs
         * @param $categories FIXME
         * @param $mode String: FIXME, default 'AND'.
+        * @todo FIXME: $categories/$mode
         */
        function seed( $article_ids, $categories, $mode = 'AND' ) {
                $this->articles = $article_ids;
@@ -85,9 +90,9 @@ class Categoryfinder {
 
        /**
         * This functions recurses through the parent representation, trying to match the conditions
-        * @param $id The article/category to check
-        * @param $conds The array of categories to match
-        * @param $path used to check for recursion loops
+        * @param $id int The article/category to check
+        * @param $conds array The array of categories to match
+        * @param $path array used to check for recursion loops
         * @return bool Does this match the conditions?
         */
        function check( $id, &$conds, $path = array() ) {