MediaWiki  1.23.0
CallableUpdate.php
Go to the documentation of this file.
1 <?php
2 
10  private $callback;
11 
16  public function __construct( $callback ) {
17  if ( !is_callable( $callback ) ) {
18  throw new MWException( 'Not a valid callback/closure!' );
19  }
20  $this->callback = $callback;
21  }
22 
26  public function doUpdate() {
27  call_user_func( $this->callback );
28  }
29 }
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
MWCallableUpdate\__construct
__construct( $callback)
Definition: CallableUpdate.php:15
MWException
MediaWiki exception.
Definition: MWException.php:26
MWCallableUpdate\doUpdate
doUpdate()
Run the update.
Definition: CallableUpdate.php:25
MWCallableUpdate\$callback
closure callback $callback
Definition: CallableUpdate.php:9
MWCallableUpdate
Deferrable Update for closure/callback.
Definition: CallableUpdate.php:6
DeferrableUpdate
Interface that deferrable updates should implement.
Definition: DeferredUpdates.php:29