MediaWiki
master
DataUpdate.php
Go to the documentation of this file.
1
<?php
24
namespace
MediaWiki\Deferred
;
25
32
abstract
class
DataUpdate
implements
DeferrableUpdate
{
34
protected
$ticket
;
36
protected
$causeAction
=
'unknown'
;
38
protected
$causeAgent
=
'unknown'
;
39
43
public
function
__construct
() {
44
// noop
45
}
46
51
public
function
setTransactionTicket
(
$ticket
) {
52
$this->ticket =
$ticket
;
53
}
54
59
public
function
setCause
( $action, $user ) {
60
$this->causeAction = $action;
61
$this->causeAgent = $user;
62
}
63
67
public
function
getCauseAction
() {
68
return
$this->causeAction
;
69
}
70
74
public
function
getCauseAgent
() {
75
return
$this->causeAgent
;
76
}
77
78
}
79
81
class_alias( DataUpdate::class,
'DataUpdate'
);
MediaWiki\Deferred\DataUpdate
Abstract base class for update jobs that do something with some secondary data extracted from article...
Definition
DataUpdate.php:32
MediaWiki\Deferred\DataUpdate\setTransactionTicket
setTransactionTicket( $ticket)
Definition
DataUpdate.php:51
MediaWiki\Deferred\DataUpdate\$causeAction
string $causeAction
Short update cause action description.
Definition
DataUpdate.php:36
MediaWiki\Deferred\DataUpdate\__construct
__construct()
Definition
DataUpdate.php:43
MediaWiki\Deferred\DataUpdate\$causeAgent
string $causeAgent
Short update cause user description.
Definition
DataUpdate.php:38
MediaWiki\Deferred\DataUpdate\getCauseAction
getCauseAction()
Definition
DataUpdate.php:67
MediaWiki\Deferred\DataUpdate\getCauseAgent
getCauseAgent()
Definition
DataUpdate.php:74
MediaWiki\Deferred\DataUpdate\setCause
setCause( $action, $user)
Definition
DataUpdate.php:59
MediaWiki\Deferred\DataUpdate\$ticket
mixed $ticket
Result from LBFactory::getEmptyTransactionTicket()
Definition
DataUpdate.php:34
MediaWiki\Deferred\DeferrableUpdate
Interface that deferrable updates should implement.
Definition
DeferrableUpdate.php:13
MediaWiki\Deferred
Definition
AtomicSectionUpdate.php:3
includes
deferred
DataUpdate.php
Generated on Sun Sep 8 2024 06:23:26 for MediaWiki by
1.10.0