38 private $namespaceInfo;
52 parent::__construct(
'Withoutinterwiki' );
53 $this->namespaceInfo = $namespaceInfo;
60 $prefix = $this->
getRequest()->getVal(
'prefix', $par );
61 $this->prefix = $prefix !==
null ? Title::capitalize( $prefix,
NS_MAIN ) :
'';
62 parent::execute( $par );
66 # Do not show useless input form if special page is cached
73 'label-message' =>
'allpagesprefix',
78 'default' => $this->prefix
82 HTMLForm::factory(
'ooui', $formDescriptor, $this->
getContext() )
83 ->setWrapperLegend(
'' )
84 ->setSubmitTextMsg(
'withoutinterwiki-submit' )
87 ->displayForm(
false );
96 return [
'page_namespace',
'page_title' ];
109 'tables' => [
'page',
'langlinks' ],
111 'namespace' =>
'page_namespace',
112 'title' =>
'page_title',
116 'page_namespace' => $this->namespaceInfo->getContentNamespaces(),
117 'page_is_redirect' => 0
119 'join_conds' => [
'langlinks' => [
'LEFT JOIN',
'll_from = page_id' ] ]
121 if ( $this->prefix ) {
123 $query[
'conds'][] =
'page_title ' .
$dbr->buildLike( $this->prefix,
$dbr->anyString() );
130 return 'maintenance';
This is a utility class for dealing with namespaces that encodes all the "magic" behaviors of them ba...
Variant of QueryPage which formats the result as a simple link to the page.
setLanguageConverter(ILanguageConverter $languageConverter)
setDBLoadBalancer(ILoadBalancer $loadBalancer)
isCached()
Whether or not the output of the page in question is retrieved from the database cache.
setLinkBatchFactory(LinkBatchFactory $linkBatchFactory)
getContext()
Gets the context this SpecialPage is executed in.
getRequest()
Get the WebRequest being used for this instance.
Special page lists pages without language links.
__construct(NamespaceInfo $namespaceInfo, ILoadBalancer $loadBalancer, LinkBatchFactory $linkBatchFactory, LanguageConverterFactory $languageConverterFactory)
sortDescending()
Override to sort by increasing values.
getOrderFields()
Subclasses return an array of fields to order by here.
getQueryInfo()
Subclasses return an SQL query here, formatted as an array with the following keys: tables => Table(s...
isExpensive()
Should this query page only be updated offline on large wikis?
getPageHeader()
The content returned by this function will be output before any result.
execute( $par)
This is the actual workhorse.
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
isSyndicated()
Sometimes we don't want to build rss / atom feeds.