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