MediaWiki
REL1_37
ThrottledError.php
Go to the documentation of this file.
1
<?php
28
class
ThrottledError
extends
ErrorPageError
{
29
33
public
function
__construct
() {
34
parent::__construct(
35
'actionthrottled'
,
36
'actionthrottledtext'
37
);
38
}
39
40
public
function
report
( $action =
ErrorPageError::SEND_OUTPUT
) {
41
global
$wgOut
;
42
$wgOut
->setStatusCode( 429 );
43
parent::report( $action );
44
}
45
}
$wgOut
$wgOut
Definition
Setup.php:836
ErrorPageError
An error page which can definitely be safely rendered using the OutputPage.
Definition
ErrorPageError.php:30
ErrorPageError\SEND_OUTPUT
const SEND_OUTPUT
Definition
ErrorPageError.php:31
ThrottledError
Show an error when the user hits a rate limit.
Definition
ThrottledError.php:28
ThrottledError\__construct
__construct()
Definition
ThrottledError.php:33
ThrottledError\report
report( $action=ErrorPageError::SEND_OUTPUT)
Definition
ThrottledError.php:40
includes
exception
ThrottledError.php
Generated on Fri Apr 5 2024 23:40:14 for MediaWiki by
1.9.8