53 parent::__construct(
'Ancientpages' );
69 $tables = [
'page',
'revision' ];
71 'page_namespace' => $this->namespaceInfo->getContentNamespaces(),
72 'page_is_redirect' => 0
77 'page_latest = rev_id'
83 $this->
getHookRunner()->onAncientPagesQuery( $tables, $conds, $joinConds );
88 'namespace' =>
'page_namespace',
89 'title' =>
'page_title',
90 'value' =>
'rev_timestamp'
93 'join_conds' => $joinConds
115 $d = $this->
getLanguage()->userTimeAndDate( $result->value, $this->getUser() );
116 $title = Title::makeTitle( $result->namespace, $result->title );
121 new HtmlArmor( $this->languageConverter->convertHtml(
$title->getPrefixedText() ) )
124 return $this->
getLanguage()->specialList( $link, htmlspecialchars( $d ) );
128 return 'maintenance';
Marks HTML that shouldn't be escaped.
This is a utility class for dealing with namespaces that encodes all the "magic" behaviors of them ba...
This is a class for doing query pages; since they're almost all the same, we factor out some of the f...
executeLBFromResultWrapper(IResultWrapper $res, $ns=null)
Creates a new LinkBatch object, adds all pages from the passed result wrapper (MUST include title and...
setDBLoadBalancer(ILoadBalancer $loadBalancer)
LinkBatchFactory null $linkBatchFactory
setLinkBatchFactory(LinkBatchFactory $linkBatchFactory)
ILoadBalancer null $loadBalancer
Implements Special:Ancientpages.
isSyndicated()
Sometime we don't want to build rss / atom feeds.
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
isExpensive()
Is this query expensive (for some definition of expensive)? Then we don't let it run in miser mode.
ILanguageConverter $languageConverter
getQueryInfo()
Subclasses return an SQL query here, formatted as an array with the following keys: tables => Table(s...
NamespaceInfo $namespaceInfo
usesTimestamps()
Does this query return timestamps rather than integers in its 'value' field? If true,...
preprocessResults( $db, $res)
Do any necessary preprocessing of the result object.
sortDescending()
Override to sort by increasing values.
formatResult( $skin, $result)
__construct(NamespaceInfo $namespaceInfo, ILoadBalancer $loadBalancer, LinkBatchFactory $linkBatchFactory, LanguageConverterFactory $languageConverterFactory)
LinkRenderer null $linkRenderer
getLanguage()
Shortcut to get user's language.
getContentLanguage()
Shortcut to get content language.
The shared interface for all language converters.