25use MediaWiki\Languages\LanguageConverterFactory;
49 LanguageConverterFactory $languageConverterFactory
51 parent::__construct(
'Withoutinterwiki' );
52 $this->namespaceInfo = $namespaceInfo;
55 $this->
setLanguageConverter( $languageConverterFactory->getLanguageConverter( $this->getContentLanguage() ) );
59 $prefix = $this->
getRequest()->getVal(
'prefix', $par );
60 $this->prefix = $prefix !==
null ? Title::capitalize( $prefix,
NS_MAIN ) :
'';
61 parent::execute( $par );
65 # Do not show useless input form if special page is cached
72 'label-message' =>
'allpagesprefix',
77 'default' => $this->prefix
81 HTMLForm::factory(
'ooui', $formDescriptor, $this->
getContext() )
82 ->setWrapperLegend(
'' )
83 ->setSubmitTextMsg(
'withoutinterwiki-submit' )
86 ->displayForm(
false );
95 return [
'page_namespace',
'page_title' ];
108 'tables' => [
'page',
'langlinks' ],
110 'namespace' =>
'page_namespace',
111 'title' =>
'page_title',
115 'page_namespace' => $this->namespaceInfo->getContentNamespaces(),
116 'page_is_redirect' => 0
118 'join_conds' => [
'langlinks' => [
'LEFT JOIN',
'll_from = page_id' ] ]
120 if ( $this->prefix ) {
122 $query[
'conds'][] = $dbr->expr(
125 new LikeValue( $this->prefix, $dbr->anyString() )
133 return 'maintenance';
141class_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.