MediaWiki fundraising/REL1_35
|
Version of FileJournal that logs to a DB table. More...
Public Member Functions | |
__construct (array $config) | |
Construct a new instance from configuration. | |
Public Member Functions inherited from FileJournal | |
getChangeEntries ( $start=null, $limit=0, &$next=null) | |
Get an array of file change log entries. | |
getCurrentPosition () | |
Get the position ID of the latest journal entry. | |
getPositionAtTime ( $time) | |
Get the position ID of the latest journal entry at some point in time. | |
getTimestampedUUID () | |
Get a statistically unique ID string. | |
logChangeBatch (array $entries, $batchId) | |
Log changes made by a batch file operation. | |
purgeOldLogs () | |
Purge any old log entries. | |
Protected Member Functions | |
doGetChangeEntries ( $start, $limit) | |
doGetCurrentPosition () | |
doGetPositionAtTime ( $time) | |
doLogChangeBatch (array $entries, $batchId) | |
doPurgeOldLogs () | |
getMasterDB () | |
Get a master connection to the logging DB. | |
Protected Attributes | |
IDatabase | $dbw |
string | $domain |
Protected Attributes inherited from FileJournal | |
string | $backend |
int false | $ttlDays |
Additional Inherited Members | |
Static Public Member Functions inherited from FileJournal | |
static | factory (array $config, $backend) |
Create an appropriate FileJournal object from config. | |
Version of FileJournal that logs to a DB table.
Definition at line 33 of file DBFileJournal.php.
DBFileJournal::__construct | ( | array | $config | ) |
Construct a new instance from configuration.
array | $config | Includes:
|
Reimplemented from FileJournal.
Definition at line 45 of file DBFileJournal.php.
|
protected |
int | null | $start | |
int | $limit |
Reimplemented from FileJournal.
Definition at line 135 of file DBFileJournal.php.
References $dbw, $res, Wikimedia\Rdbms\IDatabase\addQuotes(), getMasterDB(), and Wikimedia\Rdbms\IDatabase\select().
|
protected |
Reimplemented from FileJournal.
Definition at line 103 of file DBFileJournal.php.
References $dbw, getMasterDB(), and Wikimedia\Rdbms\IDatabase\selectField().
|
protected |
int | string | $time | Timestamp |
Reimplemented from FileJournal.
Definition at line 117 of file DBFileJournal.php.
References $dbw, Wikimedia\Rdbms\IDatabase\addQuotes(), getMasterDB(), Wikimedia\Rdbms\IDatabase\selectField(), and Wikimedia\Rdbms\IDatabase\timestamp().
|
protected |
array[] | $entries | |
string | $batchId |
Reimplemented from FileJournal.
Definition at line 57 of file DBFileJournal.php.
References FileJournal\$backend, $dbw, getMasterDB(), Wikimedia\Rdbms\IDatabase\insert(), FileJournal\purgeOldLogs(), and Wikimedia\Rdbms\IDatabase\timestamp().
|
protected |
DBError |
Reimplemented from FileJournal.
Definition at line 164 of file DBFileJournal.php.
References $dbw, Wikimedia\Rdbms\IDatabase\addQuotes(), Wikimedia\Rdbms\IDatabase\delete(), getMasterDB(), and Wikimedia\Rdbms\IDatabase\timestamp().
|
protected |
Get a master connection to the logging DB.
DBError |
Definition at line 187 of file DBFileJournal.php.
References $dbw, DB_MASTER, and DBO_TRX.
Referenced by doGetChangeEntries(), doGetCurrentPosition(), doGetPositionAtTime(), doLogChangeBatch(), and doPurgeOldLogs().
|
protected |
Definition at line 35 of file DBFileJournal.php.
Referenced by doGetChangeEntries(), doGetCurrentPosition(), doGetPositionAtTime(), doLogChangeBatch(), doPurgeOldLogs(), and getMasterDB().
|
protected |
Definition at line 37 of file DBFileJournal.php.