MediaWiki
REL1_31
TransactionRoundDefiningUpdate.php
Go to the documentation of this file.
1
<?php
2
8
class
TransactionRoundDefiningUpdate
implements
DeferrableUpdate
,
DeferrableCallback
{
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
}
TransactionRoundDefiningUpdate
Deferrable update that must run outside of any explicit LBFactory transaction round.
Definition
TransactionRoundDefiningUpdate.php:8
TransactionRoundDefiningUpdate\getOrigin
getOrigin()
Definition
TransactionRoundDefiningUpdate.php:27
TransactionRoundDefiningUpdate\__construct
__construct(callable $callback, $fname='unknown')
Definition
TransactionRoundDefiningUpdate.php:18
TransactionRoundDefiningUpdate\doUpdate
doUpdate()
Perform the actual work.
Definition
TransactionRoundDefiningUpdate.php:23
TransactionRoundDefiningUpdate\$callback
callable null $callback
Definition
TransactionRoundDefiningUpdate.php:10
TransactionRoundDefiningUpdate\$fname
string $fname
Definition
TransactionRoundDefiningUpdate.php:12
DeferrableCallback
Callback wrapper that has an originating method.
Definition
DeferrableCallback.php:8
DeferrableUpdate
Interface that deferrable updates should implement.
Definition
DeferrableUpdate.php:9
includes
deferred
TransactionRoundDefiningUpdate.php
Generated on Mon Nov 25 2024 15:34:42 for MediaWiki by
1.10.0