MediaWiki
REL1_41
LocalFileLockError.php
Go to the documentation of this file.
1
<?php
21
use
MediaWiki\Status\Status
;
22
28
class
LocalFileLockError
extends
ErrorPageError
{
29
35
public
function
__construct
(
Status
$status ) {
36
parent::__construct(
37
'actionfailed'
,
38
$status->
getMessage
()
39
);
40
}
41
42
public
function
report
( $action = self::SEND_OUTPUT ) {
43
global
$wgOut
;
44
$wgOut
->setStatusCode( 429 );
45
parent::report( $action );
46
}
47
}
$wgOut
if(!defined( 'MW_NO_SESSION') &&! $wgCommandLineMode $wgOut
Definition
Setup.php:535
ErrorPageError
An error page which can definitely be safely rendered using the OutputPage.
Definition
ErrorPageError.php:30
LocalFileLockError
Definition
LocalFileLockError.php:28
LocalFileLockError\__construct
__construct(Status $status)
Definition
LocalFileLockError.php:35
LocalFileLockError\report
report( $action=self::SEND_OUTPUT)
Definition
LocalFileLockError.php:42
MediaWiki\Status\Status
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition
Status.php:58
MediaWiki\Status\Status\getMessage
getMessage( $shortContext=false, $longContext=false, $lang=null)
Get a bullet list of the errors as a Message object.
Definition
Status.php:261
includes
filerepo
file
LocalFileLockError.php
Generated on Wed Nov 27 2024 07:23:19 for MediaWiki by
1.10.0