return $this->parentCategory;
}
+ /**
+ * @see \wcf\data\category\Category::isParentCategory()
+ */
+ public function isParentCategory(AbstractDecoratedCategory $category) {
+ return $this->getDecoratedObject()->isParentCategory($category->getDecoratedObject());
+ }
+
/**
* Returns the decorated category with the given id or null if no such
* category exists.
return $this->parentCategories;
}
+ /**
+ * Returns true if given category is a parent category of this category.
+ *
+ * @param \wcf\data\category\Category $category
+ * @return boolean
+ */
+ public function isParentCategory(Category $category) {
+ return in_array($category, $this->getParentCategories());
+ }
+
/**
* @see \wcf\data\IPermissionObject::getPermission()
*/
}
.sidebarNestedCategoryList {
- > li {
- > ol {
- margin-left: @wcfGapMedium;
- }
+ ol {
+ margin-left: @wcfGapMedium;
}
li {