From 6e6f6f71c9f410d4fd326559b581f91c7645a37d Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sat, 7 Nov 2009 16:38:22 -0500 Subject: [PATCH] documentation --- classes/ComicPress.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/classes/ComicPress.inc b/classes/ComicPress.inc index 28aef09..9bcf02e 100644 --- a/classes/ComicPress.inc +++ b/classes/ComicPress.inc @@ -126,6 +126,12 @@ class ComicPress { return false; } + /** + * Search a path for directories named after the slugs provided. + * @param array $categories A list of category slugs going from child -> parent -> root. + * @param string $path The path to search. + * @return array All matching paths. + */ function category_search($categories, $path) { $path = trailingslashit($path); $all_categories = array_reverse($categories);