MediaWiki master
LocalFileLockError.php
Go to the documentation of this file.
1<?php
8
11
19
25 public function __construct( Status $status ) {
26 wfDeprecated( __CLASS__, '1.47' );
27 parent::__construct(
28 'actionfailed',
29 $status->getMessage()
30 );
31 }
32
34 public function report( $action = self::SEND_OUTPUT ) {
35 global $wgOut;
36 $wgOut->setStatusCode( 429 );
37 parent::report( $action );
38 }
39}
40
42class_alias( LocalFileLockError::class, 'LocalFileLockError' );
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Logs a warning that a deprecated feature was used.
if(MW_ENTRY_POINT==='index') if(!defined( 'MW_NO_SESSION') &&MW_ENTRY_POINT !=='cli') global $wgOut
Definition Setup.php:529
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:243