36 private $namespaceInfo;
39 private $languageConverter;
53 parent::__construct(
'Ancientpages' );
54 $this->namespaceInfo = $namespaceInfo;
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 );
119 $link = $linkRenderer->makeKnownLink(
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)
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.