39 private $namespaceInfo;
53 parent::__construct(
'Withoutinterwiki' );
54 $this->namespaceInfo = $namespaceInfo;
61 $prefix = $this->
getRequest()->getVal(
'prefix', $par );
62 $this->prefix = $prefix !==
null ? Title::capitalize( $prefix,
NS_MAIN ) :
'';
63 parent::execute( $par );
67 # Do not show useless input form if special page is cached
74 'label-message' =>
'allpagesprefix',
79 'default' => $this->prefix
83 HTMLForm::factory(
'ooui', $formDescriptor, $this->
getContext() )
84 ->setWrapperLegend(
'' )
85 ->setSubmitTextMsg(
'withoutinterwiki-submit' )
88 ->displayForm(
false );
97 return [
'page_namespace',
'page_title' ];
110 'tables' => [
'page',
'langlinks' ],
112 'namespace' =>
'page_namespace',
113 'title' =>
'page_title',
117 'page_namespace' => $this->namespaceInfo->getContentNamespaces(),
118 'page_is_redirect' => 0
120 'join_conds' => [
'langlinks' => [
'LEFT JOIN',
'll_from = page_id' ] ]
122 if ( $this->prefix ) {
124 $query[
'conds'][] =
'page_title ' .
$dbr->buildLike( $this->prefix,
$dbr->anyString() );
131 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.