36 parent::__construct(
'Withoutinterwiki' );
44 $prefix = $this->
getRequest()->getVal(
'prefix', $par );
45 $this->prefix = $prefix !==
null ? Title::capitalize( $prefix,
NS_MAIN ) :
'';
46 parent::execute( $par );
51 # Do not show useless input form if special page is cached
58 'label-message' =>
'allpagesprefix',
63 'default' => $this->prefix
67 HTMLForm::factory(
'ooui', $formDescriptor, $this->
getContext() )
68 ->setWrapperLegend(
'' )
69 ->setSubmitTextMsg(
'withoutinterwiki-submit' )
72 ->displayForm(
false );
83 return [
'page_namespace',
'page_title' ];
99 'tables' => [
'page',
'langlinks' ],
101 'namespace' =>
'page_namespace',
102 'title' =>
'page_title',
106 'page_namespace' => $this->namespaceInfo->getContentNamespaces(),
107 'page_is_redirect' => 0
109 'join_conds' => [
'langlinks' => [
'LEFT JOIN',
'll_from = page_id' ] ]
112 if ( $this->prefix ) {
114 $query[
'conds'][] = $dbr->expr(
117 new LikeValue( $this->prefix, $dbr->anyString() )
127 LangLinksTable::VIRTUAL_DOMAIN,
134 return 'maintenance';
142class_alias( SpecialWithoutInterwiki::class,
'SpecialWithoutInterwiki' );
Factory for LinkBatch objects to batch query page metadata.
Variant of QueryPage which formats the result as a simple link to the page.
setLanguageConverter(ILanguageConverter $languageConverter)
setDatabaseProvider(IConnectionProvider $databaseProvider)
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.