34 parent::__construct(
$name );
38 $this->prefix = Title::capitalize(
40 parent::execute( $par );
44 # Do not show useless input form if special page is cached
51 'label-message' =>
'allpagesprefix',
61 $htmlForm->setWrapperLegend(
'' )
62 ->setSubmitTextMsg(
'withoutinterwiki-submit' )
65 ->displayForm(
false );
73 return [
'page_namespace',
'page_title' ];
86 'tables' => [
'page',
'langlinks' ],
88 'namespace' =>
'page_namespace',
89 'title' =>
'page_title',
93 'page_namespace' => MWNamespace::getContentNamespaces(),
94 'page_is_redirect' => 0
96 'join_conds' => [
'langlinks' => [
'LEFT JOIN',
'll_from = page_id' ] ]
98 if ( $this->prefix ) {
100 $query[
'conds'][] =
'page_title ' .
$dbr->buildLike( $this->prefix,
$dbr->anyString() );
107 return 'maintenance';
wfGetDB( $db, $groups=[], $wiki=false)
Get a Database object.
Variant of QueryPage which formats the result as a simple link to the page.
isCached()
Whether or not the output of the page in question is retrieved from the database cache.
getContext()
Gets the context this SpecialPage is executed in.
getRequest()
Get the WebRequest being used for this instance.
Special page lists pages without language links.
isSyndicated()
Sometime we don't want to build rss / atom feeds.
getQueryInfo()
Subclasses return an SQL query here, formatted as an array with the following keys: tables => Table(s...
execute( $par)
This is the actual workhorse.
getOrderFields()
Subclasses return an array of fields to order by here.
getPageHeader()
The content returned by this function will be output before any result.
isExpensive()
Is this query expensive (for some definition of expensive)? Then we don't let it run in miser mode.
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
__construct( $name='Withoutinterwiki')
sortDescending()
Override to sort by increasing values.
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation use $formDescriptor instead & $formDescriptor
Allows to change the fields on the form that will be generated $name
null for the local wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify $query
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php