55 parent::__construct(
'Ancientpages' );
56 $this->namespaceInfo = $namespaceInfo;
71 $tables = [
'page',
'revision' ];
73 'page_namespace' => $this->namespaceInfo->getContentNamespaces(),
74 'page_is_redirect' => 0
79 'page_latest = rev_id'
85 $this->
getHookRunner()->onAncientPagesQuery( $tables, $conds, $joinConds );
90 'namespace' =>
'page_namespace',
91 'title' =>
'page_title',
92 'value' =>
'rev_timestamp'
95 'join_conds' => $joinConds
117 $d = $this->
getLanguage()->userTimeAndDate( $result->value, $this->getUser() );
118 $title = Title::makeTitle( $result->namespace, $result->title );
121 $link = $linkRenderer->makeKnownLink(
123 new HtmlArmor( $this->languageConverter->convertHtml( $title->getPrefixedText() ) )
126 return $this->
getLanguage()->specialList( $link, htmlspecialchars( $d ) );
130 return 'maintenance';
135class_alias( SpecialAncientPages::class,
'SpecialAncientPages' );
Marks HTML that shouldn't be escaped.
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.
sortDescending()
Override to sort by increasing values.
__construct(NamespaceInfo $namespaceInfo, IConnectionProvider $dbProvider, LinkBatchFactory $linkBatchFactory, LanguageConverterFactory $languageConverterFactory)
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.
isExpensive()
Should this query page only be updated offline on large wikis?
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
The base class for all skins.