From 34306ee108977419e841895fb1500b50575b4592 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Fri, 5 Sep 2014 11:56:41 -0700 Subject: [PATCH] CategoryFinder: give parent category tree an accessor Change-Id: Iab8589877cef12943c428ff43ff730ba4f87acb3 --- includes/CategoryFinder.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.20.1