56 parent::__construct(
'Withoutinterwiki' );
57 $this->namespaceInfo = $namespaceInfo;
64 $prefix = $this->
getRequest()->getVal(
'prefix', $par );
65 $this->prefix = $prefix !==
null ? Title::capitalize( $prefix,
NS_MAIN ) :
'';
66 parent::execute( $par );
70 # Do not show useless input form if special page is cached
77 'label-message' =>
'allpagesprefix',
82 'default' => $this->prefix
86 HTMLForm::factory(
'ooui', $formDescriptor, $this->
getContext() )
87 ->setWrapperLegend(
'' )
88 ->setSubmitTextMsg(
'withoutinterwiki-submit' )
91 ->displayForm(
false );
100 return [
'page_namespace',
'page_title' ];
113 'tables' => [
'page',
'langlinks' ],
115 'namespace' =>
'page_namespace',
116 'title' =>
'page_title',
120 'page_namespace' => $this->namespaceInfo->getContentNamespaces(),
121 'page_is_redirect' => 0
123 'join_conds' => [
'langlinks' => [
'LEFT JOIN',
'll_from = page_id' ] ]
125 if ( $this->prefix ) {
127 $query[
'conds'][] = $dbr->expr(
130 new LikeValue( $this->prefix, $dbr->anyString() )
138 return 'maintenance';
146class_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.