MediaWiki  master
LocalFileLockError.php
Go to the documentation of this file.
1 <?php
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 }
if(!defined( 'MW_NO_SESSION') &&! $wgCommandLineMode) $wgOut
Definition: Setup.php:486
An error page which can definitely be safely rendered using the OutputPage.
__construct(Status $status)
report( $action=self::SEND_OUTPUT)
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