37 if ( parent::hasViewableContent() ) {
40 $cat = Category::newFromTitle( $this->mTitle );
42 if ( $cat->getMemberCount()
43 || $cat->getSubcatCount()
44 || $cat->getFileCount()
59 $pageId = $this->
getTitle()->getArticleID();
60 $pageProps = MediaWikiServices::getInstance()
62 ->getProperties( $this->
getTitle(),
'hiddencat' );
64 return isset( $pageProps[$pageId] );
74 $pageId = $this->
getTitle()->getArticleID();
75 $pageProps = MediaWikiServices::getInstance()
77 ->getProperties( $this->
getTitle(),
'expectunusedcategory' );
79 return isset( $pageProps[$pageId] );
88 if ( !parent::doPurge() ) {
95 static function () use ( $title ) {
96 $cat = Category::newFromTitle( $title );
99 $cat->refreshCountsIfSmall( 5000 );
104 DeferredUpdates::PRESEND
static addCallableUpdate( $callable, $stage=self::POSTSEND, $dbw=null)
Add an update to the pending update queue that invokes the specified callback when run.
Special handling for representing category pages.
isHidden()
Checks if a category is hidden.
isExpectedUnusedCategory()
Checks if a category is expected to be an unused category.
doPurge()
Update category counts on purge (T85696)
hasViewableContent()
Don't return a 404 for categories in use.
Base representation for an editable wiki page.
getTitle()
Get the title object of the article.