MediaWiki
1.23.6
|
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 Attributes | |
DatabaseBase | $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 |
Reimplemented from FileJournal.
Definition at line 40 of file DBFileJournal.php.
References wiki.
|
protected |
int | $start | |
int | $limit |
Reimplemented from FileJournal.
Definition at line 127 of file DBFileJournal.php.
References $dbw, $limit, $res, $value, DatabaseBase\addQuotes(), array(), as, getMasterDB(), and DatabaseBase\select().
|
protected |
Reimplemented from FileJournal.
Definition at line 95 of file DBFileJournal.php.
References $dbw, array(), getMasterDB(), and DatabaseBase\selectField().
|
protected |
int | string | $time | Timestamp |
Reimplemented from FileJournal.
Definition at line 109 of file DBFileJournal.php.
References $dbw, $time, DatabaseBase\addQuotes(), array(), getMasterDB(), DatabaseBase\selectField(), and DatabaseBase\timestamp().
|
protected |
array | $entries | |
string | $batchId |
Reimplemented from FileJournal.
Definition at line 52 of file DBFileJournal.php.
References $dbw, $e, array(), as, getMasterDB(), DatabaseBase\insert(), Status\newGood(), FileJournal\purgeOldLogs(), DatabaseBase\timestamp(), TS_UNIX, and wfTimestamp().
|
protected |
DBError |
Reimplemented from FileJournal.
Definition at line 156 of file DBFileJournal.php.
References $dbw, DatabaseBase\addQuotes(), array(), DatabaseBase\delete(), getMasterDB(), Status\newGood(), and DatabaseBase\timestamp().
|
protected |
Get a master connection to the logging DB.
DBError |
Definition at line 179 of file DBFileJournal.php.
References $dbw, $lb, array(), DB_MASTER, DBO_TRX, wfGetLBFactory(), and wiki.
Referenced by doGetChangeEntries(), doGetCurrentPosition(), doGetPositionAtTime(), doLogChangeBatch(), and doPurgeOldLogs().
|
protected |
Definition at line 30 of file DBFileJournal.php.
Referenced by doGetChangeEntries(), doGetCurrentPosition(), doGetPositionAtTime(), doLogChangeBatch(), doPurgeOldLogs(), and getMasterDB().
|
protected |
Definition at line 32 of file DBFileJournal.php.