MediaWiki  1.23.14
waitForSlave.php
Go to the documentation of this file.
1 <?php
25 require_once __DIR__ . '/Maintenance.php';
26 
32 class WaitForSlave extends Maintenance {
33  public function __construct() {
34  parent::__construct();
35  $this->addArg( 'maxlag', 'How long to wait for the slaves, default 10 seconds', false );
36  }
37  public function execute() {
38  wfWaitForSlaves( $this->getArg( 0, 10 ) );
39  }
40 }
41 
42 $maintClass = "WaitForSlave";
43 require_once RUN_MAINTENANCE_IF_MAIN;
WaitForSlave\execute
execute()
Do the actual work.
Definition: waitForSlave.php:37
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
WaitForSlave\__construct
__construct()
Default constructor.
Definition: waitForSlave.php:33
RUN_MAINTENANCE_IF_MAIN
require_once RUN_MAINTENANCE_IF_MAIN
Definition: maintenance.txt:50
Maintenance
Abstract maintenance class for quickly writing and churning out maintenance scripts with minimal effo...
Definition: maintenance.txt:39
wfWaitForSlaves
wfWaitForSlaves( $maxLag=false, $wiki=false, $cluster=false)
Modern version of wfWaitForSlaves().
Definition: GlobalFunctions.php:3859
$maintClass
$maintClass
Definition: waitForSlave.php:42
Maintenance\addArg
addArg( $arg, $description, $required=true)
Add some args that are needed.
Definition: Maintenance.php:207
Maintenance\getArg
getArg( $argId=0, $default=null)
Get an argument.
Definition: Maintenance.php:246
WaitForSlave
Maintenance script to wait until slave lag goes under a certain value.
Definition: waitForSlave.php:32