MediaWiki  1.34.0
UserBlockedError.php
Go to the documentation of this file.
1 <?php
22 
30  public function __construct( AbstractBlock $block ) {
31  // @todo FIXME: Implement a more proper way to get context here.
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