MediaWiki  1.23.2
ThrottledError.php
Go to the documentation of this file.
1 <?php
28  public function __construct() {
29  parent::__construct(
30  'actionthrottled',
31  'actionthrottledtext'
32  );
33  }
34 
35  public function report() {
36  global $wgOut;
37  $wgOut->setStatusCode( 429 );
38  parent::report();
39  }
40 }
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
$wgOut
$wgOut
Definition: Setup.php:562
ThrottledError
Show an error when the user hits a rate limit.
Definition: ThrottledError.php:27
global
when a variable name is used in a it is silently declared as a new masking the global
Definition: design.txt:93
ThrottledError\report
report()
Output a report about the exception and takes care of formatting.
Definition: ThrottledError.php:35
ThrottledError\__construct
__construct()
Definition: ThrottledError.php:28
ErrorPageError
An error page which can definitely be safely rendered using the OutputPage.
Definition: ErrorPageError.php:27