MediaWiki
REL1_34
UserBlockedError.php
Go to the documentation of this file.
1
<?php
21
use
MediaWiki\Block\AbstractBlock
;
22
29
class
UserBlockedError
extends
ErrorPageError
{
30
public
function
__construct
(
AbstractBlock
$block ) {
31
// @todo FIXME: Implement a more proper way to get context here.
32
$params
= $block->
getPermissionsError
( RequestContext::getMain() );
33
parent::__construct(
'blockedtitle'
, array_shift(
$params
),
$params
);
34
}
35
}
ErrorPageError
An error page which can definitely be safely rendered using the OutputPage.
Definition
ErrorPageError.php:27
ErrorPageError\$params
$params
Definition
ErrorPageError.php:30
MediaWiki\Block\AbstractBlock
Definition
AbstractBlock.php:34
MediaWiki\Block\AbstractBlock\getPermissionsError
getPermissionsError(IContextSource $context)
Get the key and parameters for the corresponding error message.
UserBlockedError
Show an error when the user tries to do something whilst blocked.
Definition
UserBlockedError.php:29
UserBlockedError\__construct
__construct(AbstractBlock $block)
Definition
UserBlockedError.php:30
includes
exception
UserBlockedError.php
Generated on Mon Nov 25 2024 16:05:06 for MediaWiki by
1.10.0