MediaWiki REL1_31
TransactionRoundDefiningUpdate.php
Go to the documentation of this file.
1<?php
2
10 private $callback;
12 private $fname;
13
18 public function __construct( callable $callback, $fname = 'unknown' ) {
19 $this->callback = $callback;
20 $this->fname = $fname;
21 }
22
23 public function doUpdate() {
24 call_user_func( $this->callback );
25 }
26
27 public function getOrigin() {
28 return $this->fname;
29 }
30}
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.