33 global $wgCategoryTreeCategoryPageOptions;
35 if ( !isset( $this->categorytree ) ) {
40 $this->categorytree =
new CategoryTree( $wgCategoryTreeCategoryPageOptions );
55 if ( $this->
getRequest()->getCheck(
'notree' ) ) {
56 parent::addSubcategoryObject(
$cat, $sortkey, $pageLength );
62 $this->children[] = $tree->renderNodeInfo(
$title,
$cat );
71 $this->child_cats = [];
72 parent::clearCategoryState();
80 $this->child_cats = array_reverse( $this->child_cats );
82 parent::finaliseCategoryState();
addSubcategoryObject(Category $cat, $sortkey, $pageLength)
Add a subcategory to the internal lists.
CategoryTree $categorytree
static shouldForceHeaders()
Core functions for the CategoryTree extension, an AJAX based gadget to display the category structure...
static setHeaders(OutputPage $outputPage)
Add ResourceLoader modules to the OutputPage object.
Category $cat
Category object for this page.
getSubcategorySortChar( $title, $sortkey)
Get the character to be used for sorting subcategories.
Category objects are immutable, strictly speaking.