MediaWiki REL1_30
DataUpdate.php
Go to the documentation of this file.
1<?php
28abstract class DataUpdate implements DeferrableUpdate {
30 protected $ticket;
31
32 public function __construct() {
33 // noop
34 }
35
40 public function setTransactionTicket( $ticket ) {
41 $this->ticket = $ticket;
42 }
43
51 public static function runUpdates( array $updates ) {
52 foreach ( $updates as $update ) {
53 $update->doUpdate();
54 }
55 }
56}
Abstract base class for update jobs that do something with some secondary data extracted from article...
mixed $ticket
Result from LBFactory::getEmptyTransactionTicket()
static runUpdates(array $updates)
Convenience method, calls doUpdate() on every DataUpdate in the array.
setTransactionTicket( $ticket)
Interface that deferrable updates should implement.