59 parent::__construct(
'Withoutinterwiki' );
60 $this->namespaceInfo = $namespaceInfo;
67 $prefix = $this->
getRequest()->getVal(
'prefix', $par );
68 $this->prefix = $prefix !==
null ? Title::capitalize( $prefix,
NS_MAIN ) :
'';
69 parent::execute( $par );
73 # Do not show useless input form if special page is cached
80 'label-message' =>
'allpagesprefix',
85 'default' => $this->prefix
89 HTMLForm::factory(
'ooui', $formDescriptor, $this->
getContext() )
90 ->setWrapperLegend(
'' )
91 ->setSubmitTextMsg(
'withoutinterwiki-submit' )
94 ->displayForm(
false );
103 return [
'page_namespace',
'page_title' ];
116 'tables' => [
'page',
'langlinks' ],
118 'namespace' =>
'page_namespace',
119 'title' =>
'page_title',
123 'page_namespace' => $this->namespaceInfo->getContentNamespaces(),
124 'page_is_redirect' => 0
126 'join_conds' => [
'langlinks' => [
'LEFT JOIN',
'll_from = page_id' ] ]
128 if ( $this->prefix ) {
130 $query[
'conds'][] = $dbr->expr(
133 new LikeValue( $this->prefix, $dbr->anyString() )
141 return 'maintenance';
149class_alias( SpecialWithoutInterwiki::class,
'SpecialWithoutInterwiki' );
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.