MediaWiki
1.34.0
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
}
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
MediaWiki\Block\AbstractBlock\getPermissionsError
getPermissionsError(IContextSource $context)
Get the key and parameters for the corresponding error message.
RequestContext\getMain
static getMain()
Get the RequestContext object associated with the main request.
Definition:
RequestContext.php:431
ErrorPageError\$params
$params
Definition:
ErrorPageError.php:30
MediaWiki\Block\AbstractBlock
Definition:
AbstractBlock.php:34
ErrorPageError
An error page which can definitely be safely rendered using the OutputPage.
Definition:
ErrorPageError.php:27
includes
exception
UserBlockedError.php
Generated on Thu Dec 19 2019 14:54:17 for MediaWiki by
1.8.16