MediaWiki
1.34.0
ThrottledError.php
Go to the documentation of this file.
1
<?php
27
class
ThrottledError
extends
ErrorPageError
{
28
public
function
__construct
() {
29
parent::__construct(
30
'actionthrottled'
,
31
'actionthrottledtext'
32
);
33
}
34
35
public
function
report
( $action =
ErrorPageError::SEND_OUTPUT
) {
36
global
$wgOut
;
37
$wgOut
->setStatusCode( 429 );
38
parent::report( $action );
39
}
40
}
ThrottledError\report
report( $action=ErrorPageError::SEND_OUTPUT)
Definition:
ThrottledError.php:35
ThrottledError
Show an error when the user hits a rate limit.
Definition:
ThrottledError.php:27
ErrorPageError\SEND_OUTPUT
const SEND_OUTPUT
Definition:
ErrorPageError.php:28
ThrottledError\__construct
__construct()
Definition:
ThrottledError.php:28
$wgOut
$wgOut
Definition:
Setup.php:886
ErrorPageError
An error page which can definitely be safely rendered using the OutputPage.
Definition:
ErrorPageError.php:27
includes
exception
ThrottledError.php
Generated on Thu Dec 19 2019 14:54:17 for MediaWiki by
1.8.16