37 private $namespaceInfo;
40 private $languageConverter;
54 parent::__construct(
'Ancientpages' );
55 $this->namespaceInfo = $namespaceInfo;
70 $tables = [
'page',
'revision' ];
72 'page_namespace' => $this->namespaceInfo->getContentNamespaces(),
73 'page_is_redirect' => 0
78 'page_latest = rev_id'
84 $this->
getHookRunner()->onAncientPagesQuery( $tables, $conds, $joinConds );
89 'namespace' =>
'page_namespace',
90 'title' =>
'page_title',
91 'value' =>
'rev_timestamp'
94 'join_conds' => $joinConds
116 $d = $this->
getLanguage()->userTimeAndDate( $result->value, $this->getUser() );
117 $title = Title::makeTitle( $result->namespace, $result->title );
120 $link = $linkRenderer->makeKnownLink(
122 new HtmlArmor( $this->languageConverter->convertHtml(
$title->getPrefixedText() ) )
125 return $this->
getLanguage()->specialList( $link, htmlspecialchars( $d ) );
129 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)
setLinkBatchFactory(LinkBatchFactory $linkBatchFactory)
Implements Special:Ancientpages.
isSyndicated()
Sometimes 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()
Should this query page only be updated offline on large wikis?
getQueryInfo()
Subclasses return an SQL query here, formatted as an array with the following keys: tables => Table(s...
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)
getLanguage()
Shortcut to get user's language.
getContentLanguage()
Shortcut to get content language.
The shared interface for all language converters.