57 parent::__construct(
'Withoutinterwiki' );
58 $this->namespaceInfo = $namespaceInfo;
65 $prefix = $this->
getRequest()->getVal(
'prefix', $par );
66 $this->prefix = $prefix !==
null ? Title::capitalize( $prefix,
NS_MAIN ) :
'';
67 parent::execute( $par );
71 # Do not show useless input form if special page is cached
78 'label-message' =>
'allpagesprefix',
83 'default' => $this->prefix
87 HTMLForm::factory(
'ooui', $formDescriptor, $this->
getContext() )
88 ->setWrapperLegend(
'' )
89 ->setSubmitTextMsg(
'withoutinterwiki-submit' )
92 ->displayForm(
false );
101 return [
'page_namespace',
'page_title' ];
114 'tables' => [
'page',
'langlinks' ],
116 'namespace' =>
'page_namespace',
117 'title' =>
'page_title',
121 'page_namespace' => $this->namespaceInfo->getContentNamespaces(),
122 'page_is_redirect' => 0
124 'join_conds' => [
'langlinks' => [
'LEFT JOIN',
'll_from = page_id' ] ]
126 if ( $this->prefix ) {
128 $query[
'conds'][] = $dbr->expr(
131 new LikeValue( $this->prefix, $dbr->anyString() )
139 return 'maintenance';
147class_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.