MediaWiki
1.28.0
|
Version of FileJournal that logs to a DB table. More...
Protected Member Functions | |
__construct (array $config) | |
Construct a new instance from configuration. More... | |
doGetChangeEntries ($start, $limit) | |
doGetCurrentPosition () | |
doGetPositionAtTime ($time) | |
doLogChangeBatch (array $entries, $batchId) | |
doPurgeOldLogs () | |
getMasterDB () | |
Get a master connection to the logging DB. More... | |
Protected Member Functions inherited from FileJournal | |
__construct (array $config) | |
Construct a new instance from configuration. More... | |
doGetChangeEntries ($start, $limit) | |
doGetCurrentPosition () | |
doGetPositionAtTime ($time) | |
doLogChangeBatch (array $entries, $batchId) | |
doPurgeOldLogs () | |
Protected Attributes | |
IDatabase | $dbw |
$wiki = false | |
Protected Attributes inherited from FileJournal | |
string | $backend |
int | $ttlDays |
Additional Inherited Members | |
Public Member Functions inherited from FileJournal | |
getChangeEntries ($start=null, $limit=0, &$next=null) | |
Get an array of file change log entries. More... | |
getCurrentPosition () | |
Get the position ID of the latest journal entry. More... | |
getPositionAtTime ($time) | |
Get the position ID of the latest journal entry at some point in time. More... | |
getTimestampedUUID () | |
Get a statistically unique ID string. More... | |
logChangeBatch (array $entries, $batchId) | |
Log changes made by a batch file operation. More... | |
purgeOldLogs () | |
Purge any old log entries. More... | |
Static Public Member Functions inherited from FileJournal | |
static | factory (array $config, $backend) |
Create an appropriate FileJournal object from config. More... | |
Version of FileJournal that logs to a DB table.
Definition at line 29 of file DBFileJournal.php.
|
protected |
Construct a new instance from configuration.
array | $config | Includes: 'wiki' : wiki name to use for LoadBalancer |
Definition at line 41 of file DBFileJournal.php.
References wiki.
|
protected |
int | $start | |
int | $limit |
Definition at line 128 of file DBFileJournal.php.
References $limit, $res, $value, IDatabase\addQuotes(), array(), as, getMasterDB(), and IDatabase\select().
|
protected |
Definition at line 96 of file DBFileJournal.php.
References getMasterDB(), and IDatabase\selectField().
|
protected |
int | string | $time | Timestamp |
Definition at line 110 of file DBFileJournal.php.
References $time, IDatabase\addQuotes(), getMasterDB(), IDatabase\selectField(), and IDatabase\timestamp().
|
protected |
array | $entries | |
string | $batchId |
Definition at line 53 of file DBFileJournal.php.
References FileJournal\$backend, $e, $status, as, getMasterDB(), IDatabase\insert(), StatusValue\newGood(), FileJournal\purgeOldLogs(), IDatabase\timestamp(), TS_UNIX, and wfTimestamp().
|
protected |
DBError |
Definition at line 157 of file DBFileJournal.php.
References $status, IDatabase\addQuotes(), IDatabase\delete(), getMasterDB(), StatusValue\newGood(), and IDatabase\timestamp().
|
protected |
Get a master connection to the logging DB.
DBError |
Definition at line 180 of file DBFileJournal.php.
References $dbw, DB_MASTER, DBO_TRX, wfGetLBFactory(), and wiki.
Referenced by doGetChangeEntries(), doGetCurrentPosition(), doGetPositionAtTime(), doLogChangeBatch(), and doPurgeOldLogs().
|
protected |
Definition at line 31 of file DBFileJournal.php.
Referenced by getMasterDB().
|
protected |
Definition at line 33 of file DBFileJournal.php.