MediaWiki REL1_40
TransactionRoundDefiningUpdate.php
Go to the documentation of this file.
1<?php
2
10{
12 private $callback;
14 private $fname;
15
20 public function __construct( callable $callback, $fname = 'unknown' ) {
21 $this->callback = $callback;
22 $this->fname = $fname;
23 }
24
25 public function doUpdate() {
26 call_user_func( $this->callback );
27 }
28
29 public function getOrigin() {
30 return $this->fname;
31 }
32
37 final public function getTransactionRoundRequirement() {
38 return self::TRX_ROUND_ABSENT;
39 }
40}
Deferrable update that must run outside of any explicit LBFactory transaction round.
__construct(callable $callback, $fname='unknown')
Callback wrapper that has an originating method.
Interface that deferrable updates should implement.
Deferrable update that specifies whether it must run outside of any explicit LBFactory transaction ro...