MediaWiki
1.34.4
LocalFileLockError.php
Go to the documentation of this file.
1
<?php
24
class
LocalFileLockError
extends
ErrorPageError
{
25
public
function
__construct
(
Status
$status ) {
26
parent::__construct(
27
'actionfailed'
,
28
$status->
getMessage
()
29
);
30
}
31
32
public
function
report
( $action = self::SEND_OUTPUT ) {
33
global
$wgOut
;
34
$wgOut
->setStatusCode( 429 );
35
parent::report( $action );
36
}
37
}
Status\getMessage
getMessage( $shortContext=false, $longContext=false, $lang=null)
Get a bullet list of the errors as a Message object.
Definition:
Status.php:232
LocalFileLockError\report
report( $action=self::SEND_OUTPUT)
Definition:
LocalFileLockError.php:32
Status
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition:
Status.php:40
LocalFileLockError\__construct
__construct(Status $status)
Definition:
LocalFileLockError.php:25
LocalFileLockError
Definition:
LocalFileLockError.php:24
$wgOut
$wgOut
Definition:
Setup.php:885
ErrorPageError
An error page which can definitely be safely rendered using the OutputPage.
Definition:
ErrorPageError.php:27
includes
filerepo
file
LocalFileLockError.php
Generated on Thu Sep 24 2020 22:29:35 for MediaWiki by
1.8.18