fix args for messages mergehistory-no-source/-destination
[lhc/web/wiklou.git] / includes / Categoryfinder.php
index 6ef224b..b9cbc9a 100644 (file)
  *
  */
 class Categoryfinder {
-       var $articles = array(); # The original article IDs passed to the seed function
-       var $deadend = array(); # Array of DBKEY category names for categories that don't have a page
-       var $parents = array(); # Array of [ID => array()]
-       var $next = array(); # Array of article/category IDs
-       var $targets = array(); # Array of DBKEY category names
-       var $name2id = array();
-       var $mode; # "AND" or "OR"
+       /** @var int[] The original article IDs passed to the seed function */
+       protected $articles = array();
 
-       /**
-        * @var DatabaseBase
-        */
-       var $dbr; # Read-DB slave
+       /** @var array Array of DBKEY category names for categories that don't have a page */
+       protected $deadend = array();
+
+       /** @var array Array of [ID => array()] */
+       protected $parents = array();
+
+       /** @var array Array of article/category IDs */
+       protected $next = array();
+
+       /** @var array Array of DBKEY category names */
+       protected $targets = array();
+
+       /** @var array */
+       protected $name2id = array();
+
+       /** @var  "AND" or "OR" */
+       protected $mode;
+
+       /** @var DatabaseBase Read-DB slave */
+       protected $dbr;
 
-       /**
-        * Constructor (currently empty).
-        */
        function __construct() {
        }
 
        /**
         * Initializes the instance. Do this prior to calling run().
-        * @param $article_ids Array of article IDs
-        * @param $categories FIXME
+        * @param array $article_ids Array of article IDs
+        * @param array $categories FIXME
         * @param string $mode FIXME, default 'AND'.
         * @todo FIXME: $categories/$mode
         */
@@ -113,7 +121,7 @@ class Categoryfinder {
         * This functions recurses through the parent representation, trying to match the conditions
         * @param int $id The article/category to check
         * @param array $conds The array of categories to match
-        * @param array $path used to check for recursion loops
+        * @param array $path Used to check for recursion loops
         * @return bool Does this match the conditions?
         */
        function check( $id, &$conds, $path = array() ) {