34 parent::__construct(
'Ancientpages' );
52 $tables = [
'page',
'revision' ];
54 'page_namespace' => $this->namespaceInfo->getContentNamespaces(),
55 'page_is_redirect' => 0
60 'page_latest = rev_id'
66 $this->
getHookRunner()->onAncientPagesQuery( $tables, $conds, $joinConds );
71 'namespace' =>
'page_namespace',
72 'title' =>
'page_title',
73 'value' =>
'rev_timestamp'
76 'join_conds' => $joinConds
101 $d = $this->
getLanguage()->userTimeAndDate( $result->value, $this->getUser() );
105 $link = $linkRenderer->makeKnownLink(
107 new HtmlArmor( $this->languageConverter->convertHtml( $title->getPrefixedText() ) )
110 return $this->
getLanguage()->specialList( $link, htmlspecialchars( $d ) );
115 return 'maintenance';
120class_alias( SpecialAncientPages::class,
'SpecialAncientPages' );
Factory for LinkBatch objects to batch query page metadata.
This is a class for doing query pages; since they're almost all the same, we factor out some of the f...
setDatabaseProvider(IConnectionProvider $databaseProvider)
executeLBFromResultWrapper(IResultWrapper $res, $ns=null)
Creates a new LinkBatch object, adds all pages from the passed result wrapper (MUST include title and...
setLinkBatchFactory(LinkBatchFactory $linkBatchFactory)
getContentLanguage()
Shortcut to get content language.
getLanguage()
Shortcut to get user's language.
Implements Special:Ancientpages.
formatResult( $skin, $result)
usesTimestamps()
Does this query return timestamps rather than integers in its 'value' field? If true,...
isSyndicated()
Sometimes we don't want to build rss / atom feeds.to override bool
sortDescending()
Override to sort by increasing values.to override bool
getQueryInfo()
Subclasses return an SQL query here, formatted as an array with the following keys: tables => Table(s...
preprocessResults( $db, $res)
Do any necessary preprocessing of the result object.to override
isExpensive()
Should this query page only be updated offline on large wikis?If the query for this page is considere...
__construct(private readonly NamespaceInfo $namespaceInfo, IConnectionProvider $dbProvider, LinkBatchFactory $linkBatchFactory, LanguageConverterFactory $languageConverterFactory,)
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...