33 parent::__construct(
'AutoblockList' );
46 $out->setPageTitle( $this->
msg(
'autoblocklist' ) );
48 $out->addModuleStyles( [
'mediawiki.special' ] );
50 # setup BlockListPager here to get the actual default Limit
53 # Just show the block list
56 'type' =>
'limitselect',
57 'label-message' =>
'table_pager_limit_label',
59 $lang->formatNum( 20 ) => 20,
60 $lang->formatNum( 50 ) => 50,
61 $lang->formatNum( 100 ) => 100,
62 $lang->formatNum( 250 ) => 250,
63 $lang->formatNum( 500 ) => 500,
66 'default' => $pager->getLimit(),
72 $form = HTMLForm::factory(
'ooui', $fields,
$context );
73 $form->setMethod(
'get' )
74 ->setFormIdentifier(
'blocklist' )
75 ->setWrapperLegendMsg(
'autoblocklist-legend' )
76 ->setSubmitTextMsg(
'autoblocklist-submit' )
77 ->setSubmitProgressive()
79 ->displayForm(
false );
91 'ipb_parent_block_id IS NOT NULL'
93 # Is the user allowed to see hidden blocks?
94 if ( !$this->
getUser()->isAllowed(
'hideuser' ) ) {
95 $conds[
'ipb_deleted'] = 0;
109 Html::element(
'div', [
'style' =>
'font-weight: bold;' ],
122 # Check for other blocks, i.e. global/tor blocks
123 $otherAutoblockLink = [];
124 Hooks::run(
'OtherAutoblockLogLink', [ &$otherAutoblockLink ] );
126 # Show additional header for the local block only when other blocks exists.
127 # Not necessary in a standard installation without such extensions enabled
128 if ( count( $otherAutoblockLink ) ) {
130 Html::element(
'h2', [], $this->
msg(
'autoblocklist-localblocks',
139 $out->addWikiMsg(
'autoblocklist-empty' );
142 if ( count( $otherAutoblockLink ) ) {
147 $this->
msg(
'autoblocklist-otherblocks', count( $otherAutoblockLink ) )->parse()
151 foreach ( $otherAutoblockLink as
$link ) {
152 $list .= Html::rawElement(
'li', [],
$link ) .
"\n";
157 [
'class' =>
'mw-autoblocklist-otherblocks' ],
An IContextSource implementation which will inherit context from another source but allow individual ...
A special page that lists autoblocks.
getBlockListPager()
Setup a new BlockListPager instance.
showList(BlockListPager $pager)
Show the list of blocked accounts matching the actual filter.
execute( $par)
Main execution point.
showTotal(BlockListPager $pager)
Show total number of autoblocks on top of the table.
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
Parent class for all special pages.
outputHeader( $summaryMessageKey='')
Outputs a summary message on top of special pages Per default the message key is the canonical name o...
setHeaders()
Sets headers - this should be called from the execute() method of all derived classes!
getOutput()
Get the OutputPage being used for this instance.
getUser()
Shortcut to get the User executing this instance.
getContext()
Gets the context this SpecialPage is executed in.
msg( $key)
Wrapper around wfMessage that sets the current context.
getPageTitle( $subpage=false)
Get a self-referential title object.
getLanguage()
Shortcut to get user's language.
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on and they can depend only on the ResourceLoaderContext $context
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output $out
usually copyright or history_copyright This message must be in HTML not wikitext & $link
if(!isset( $args[0])) $lang