72 parent::__construct(
'AutoblockList' );
89 $out->setPageTitle( $this->
msg(
'autoblocklist' ) );
91 $out->addModuleStyles( [
'mediawiki.special' ] );
93 # setup BlockListPager here to get the actual default Limit
96 # Just show the block list
99 'type' =>
'limitselect',
100 'label-message' =>
'table_pager_limit_label',
101 'options' => $pager->getLimitSelectList(),
103 'default' => $pager->getLimit(),
109 $form = HTMLForm::factory(
'ooui', $fields, $context );
110 $form->setMethod(
'get' )
111 ->setFormIdentifier(
'blocklist' )
112 ->setWrapperLegendMsg(
'autoblocklist-legend' )
113 ->setSubmitTextMsg(
'autoblocklist-submit' )
115 ->displayForm(
false );
127 'ipb_parent_block_id IS NOT NULL'
129 # Is the user allowed to see hidden blocks?
130 if ( !$this->
getAuthority()->isAllowed(
'hideuser' ) ) {
131 $conds[
'ipb_deleted'] = 0;
137 $this->linkBatchFactory,
138 $this->blockRestrictionStore,
143 $this->blockActionInfo
155 Html::rawElement(
'div', [
'style' =>
'font-weight: bold;' ],
168 # Check for other blocks, i.e. global/tor blocks
169 $otherAutoblockLink = [];
170 $this->
getHookRunner()->onOtherAutoblockLogLink( $otherAutoblockLink );
172 # Show additional header for the local block only when other blocks exists.
173 # Not necessary in a standard installation without such extensions enabled
174 if ( count( $otherAutoblockLink ) ) {
176 Html::rawElement(
'h2', [], $this->
msg(
'autoblocklist-localblocks',
185 $out->addWikiMsg(
'autoblocklist-empty' );
188 if ( count( $otherAutoblockLink ) ) {
193 $this->
msg(
'autoblocklist-otherblocks', count( $otherAutoblockLink ) )->parse()
197 foreach ( $otherAutoblockLink as $link ) {
198 $list .= Html::rawElement(
'li', [], $link ) .
"\n";
203 [
'class' =>
'mw-autoblocklist-otherblocks' ],
An IContextSource implementation which will inherit context from another source but allow individual ...
A special page that lists autoblocks.
__construct(LinkBatchFactory $linkBatchFactory, BlockRestrictionStore $blockRestrictionStore, ILoadBalancer $loadBalancer, CommentStore $commentStore, BlockUtils $blockUtils, BlockActionInfo $blockActionInfo)
getBlockListPager()
Setup a new BlockListPager instance.
ILoadBalancer $loadBalancer
showList(BlockListPager $pager)
Show the list of blocked accounts matching the actual filter.
BlockActionInfo $blockActionInfo
BlockRestrictionStore $blockRestrictionStore
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...
CommentStore $commentStore
LinkBatchFactory $linkBatchFactory
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.
getContext()
Gets the context this SpecialPage is executed in.
msg( $key,... $params)
Wrapper around wfMessage that sets the current context.
getAuthority()
Shortcut to get the Authority executing this instance.
getPageTitle( $subpage=false)
Get a self-referential title object.
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.