* articles are in one or all of a given subset of categories.
*
* Example use :
- * <code>
+ * @code
* # Determines whether the article with the page_id 12345 is in both
* # "Category 1" and "Category 2" or their subcategories, respectively
*
* );
* $a = $cf->run();
* print implode( ',' , $a );
- * </code>
+ * @endcode
*
*/
class CategoryFinder {
return $ret;
}
+ /**
+ * Get the parents. Only really useful if run() has been called already
+ * @return array
+ */
+ public function getParents() {
+ return $this->parents;
+ }
+
/**
* This functions recurses through the parent representation, trying to match the conditions
* @param int $id The article/category to check
* Scans a "parent layer" of the articles/categories in $this->next
*/
private function scanNextLayer() {
- $profiler = new ProfileSection( __METHOD__ );
# Find all parents of the article currently in $this->next
$layer = array();