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