dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec16060
)
CategoryFinder: give parent category tree an accessor
author
Chad Horohoe
<chadh@wikimedia.org>
Fri, 5 Sep 2014 18:56:41 +0000
(11:56 -0700)
committer
Chad Horohoe
<chadh@wikimedia.org>
Fri, 5 Sep 2014 18:57:42 +0000
(11:57 -0700)
Change-Id: Iab8589877cef12943c428ff43ff730ba4f87acb3
includes/CategoryFinder.php
patch
|
blob
|
history
diff --git
a/includes/CategoryFinder.php
b/includes/CategoryFinder.php
index
9fd3883
..
cf537e1
100644
(file)
--- 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