40 if ( parent::hasViewableContent() ) {
43 $cat = Category::newFromTitle( $this->mTitle );
45 if ( $cat->getMemberCount()
46 || $cat->getSubcatCount()
47 || $cat->getFileCount()
62 $pageId = $this->
getTitle()->getArticleID();
65 ->getProperties( $this->
getTitle(),
'hiddencat' );
67 return isset( $pageProps[$pageId] );
77 $pageId = $this->
getTitle()->getArticleID();
80 ->getProperties( $this->
getTitle(),
'expectunusedcategory' );
82 return isset( $pageProps[$pageId] );
91 if ( !parent::doPurge() ) {
97 DeferredUpdates::addCallableUpdate(
98 static function () use ( $title ) {
99 $cat = Category::newFromTitle( $title );
102 $cat->refreshCountsIfSmall( 5000 );
107 DeferredUpdates::PRESEND
115class_alias( WikiCategoryPage::class,
'WikiCategoryPage' );
Special handling for representing category pages.
hasViewableContent()
Don't return a 404 for categories in use.
doPurge()
Update category counts on purge (T85696)
isHidden()
Checks if a category is hidden.
isExpectedUnusedCategory()
Checks if a category is expected to be an unused category.
Base representation for an editable wiki page.
getTitle()
Get the title object of the article.