MediaWiki master
LocalFileLockError.php
Go to the documentation of this file.
1<?php
8
11
18
24 public function __construct( Status $status ) {
25 parent::__construct(
26 'actionfailed',
27 $status->getMessage()
28 );
29 }
30
32 public function report( $action = self::SEND_OUTPUT ) {
33 global $wgOut;
34 $wgOut->setStatusCode( 429 );
35 parent::report( $action );
36 }
37}
38
40class_alias( LocalFileLockError::class, 'LocalFileLockError' );
if(MW_ENTRY_POINT==='index') if(!defined( 'MW_NO_SESSION') &&MW_ENTRY_POINT !=='cli' $wgOut
Definition Setup.php:551
An error page which can definitely be safely rendered using the OutputPage.
report( $action=self::SEND_OUTPUT)
to override
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition Status.php:44
getMessage( $shortContext=false, $longContext=false, $lang=null)
Get a bullet list of the errors as a Message object.
Definition Status.php:241