From: Chad Horohoe Date: Fri, 5 Sep 2014 18:56:41 +0000 (-0700) Subject: CategoryFinder: give parent category tree an accessor X-Git-Tag: 1.31.0-rc.0~14112^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=34306ee108977419e841895fb1500b50575b4592;p=lhc%2Fweb%2Fwiklou.git CategoryFinder: give parent category tree an accessor Change-Id: Iab8589877cef12943c428ff43ff730ba4f87acb3 --- diff --git a/includes/CategoryFinder.php b/includes/CategoryFinder.php index 9fd388352a..cf537e15e5 100644 --- a/includes/CategoryFinder.php +++ b/includes/CategoryFinder.php @@ -114,6 +114,14 @@ 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