MediaWiki master
TransactionRoundDefiningUpdate.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Deferred;
4
12{
14 private $callback;
16 private $fname;
17
22 public function __construct( callable $callback, $fname = 'unknown' ) {
23 $this->callback = $callback;
24 $this->fname = $fname;
25 }
26
27 public function doUpdate() {
28 call_user_func( $this->callback );
29 }
30
31 public function getOrigin() {
32 return $this->fname;
33 }
34
39 final public function getTransactionRoundRequirement() {
40 return self::TRX_ROUND_ABSENT;
41 }
42}
43
45class_alias( TransactionRoundDefiningUpdate::class, 'TransactionRoundDefiningUpdate' );
Deferrable update that must run outside of any explicit LBFactory transaction round.
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...