Go to the documentation of this file.
35 parent::__construct(
'AutoblockList' );
45 $out->setPageTitle( $this->
msg(
'autoblocklist' ) );
47 $out->addModuleStyles( [
'mediawiki.special' ] );
49 # setup BlockListPager here to get the actual default Limit
52 # Just show the block list
55 'type' =>
'limitselect',
56 'label-message' =>
'table_pager_limit_label',
57 'options' => $pager->getLimitSelectList(),
59 'default' => $pager->getLimit(),
66 $form->setMethod(
'get' )
67 ->setFormIdentifier(
'blocklist' )
68 ->setWrapperLegendMsg(
'autoblocklist-legend' )
69 ->setSubmitTextMsg(
'autoblocklist-submit' )
71 ->displayForm(
false );
83 'ipb_parent_block_id IS NOT NULL'
85 # Is the user allowed to see hidden blocks?
86 if ( !MediaWikiServices::getInstance()
88 ->userHasRight( $this->
getUser(),
'hideuser' )
90 $conds[
'ipb_deleted'] = 0;
117 # Check for other blocks, i.e. global/tor blocks
118 $otherAutoblockLink = [];
119 Hooks::run(
'OtherAutoblockLogLink', [ &$otherAutoblockLink ] );
121 # Show additional header for the local block only when other blocks exists.
122 # Not necessary in a standard installation without such extensions enabled
123 if ( count( $otherAutoblockLink ) ) {
134 $out->addWikiMsg(
'autoblocklist-empty' );
137 if ( count( $otherAutoblockLink ) ) {
142 $this->
msg(
'autoblocklist-otherblocks', count( $otherAutoblockLink ) )->parse()
146 foreach ( $otherAutoblockLink as $link ) {
152 [
'class' =>
'mw-autoblocklist-otherblocks' ],
getPageTitle( $subpage=false)
Get a self-referential title object.
msg( $key,... $params)
Wrapper around wfMessage that sets the current context.
getOutput()
Get the OutputPage being used for this instance.
A special page that lists autoblocks.
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
An IContextSource implementation which will inherit context from another source but allow individual ...
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.
setHeaders()
Sets headers - this should be called from the execute() method of all derived classes!
getUser()
Shortcut to get the User executing this instance.
showTotal(BlockListPager $pager)
Show total number of autoblocks on top of the table.
getContext()
Gets the context this SpecialPage is executed in.
Parent class for all special pages.
showList(BlockListPager $pager)
Show the list of blocked accounts matching the actual filter.
static rawElement( $element, $attribs=[], $contents='')
Returns an HTML element in a string.
static run( $event, array $args=[], $deprecatedVersion=null)
Call hook functions defined in Hooks::register and $wgHooks.
getBlockListPager()
Setup a new BlockListPager instance.
outputHeader( $summaryMessageKey='')
Outputs a summary message on top of special pages Per default the message key is the canonical name o...