MediaWiki  REL1_22
DBFileJournal Class Reference

Version of FileJournal that logs to a DB table. More...

Inheritance diagram for DBFileJournal:
Collaboration diagram for DBFileJournal:

List of all members.

Protected Member Functions

 __construct (array $config)
 Construct a new instance from configuration.
 doGetChangeEntries ($start, $limit)
 doGetCurrentPosition ()
 doGetPositionAtTime ($time)
 doLogChangeBatch (array $entries, $batchId)
 doPurgeOldLogs ()
 getMasterDB ()
 Get a master connection to the logging DB.

Protected Attributes

DatabaseBase $dbw
 *
 $wiki = false

Detailed Description

Version of FileJournal that logs to a DB table.

Since:
1.20

Definition at line 29 of file DBFileJournal.php.


Constructor & Destructor Documentation

DBFileJournal::__construct ( array config) [protected]

Construct a new instance from configuration.

$config includes: 'wiki' : wiki name to use for LoadBalancer

Parameters:
$configArray

Reimplemented from FileJournal.

Definition at line 41 of file DBFileJournal.php.


Member Function Documentation

DBFileJournal::doGetChangeEntries ( start,
limit 
) [protected]
See also:
FileJournal::doGetChangeEntries()
Returns:
Array
Exceptions:
DBError

Reimplemented from FileJournal.

Definition at line 122 of file DBFileJournal.php.

See also:
FileJournal::doGetCurrentPosition()
Returns:
integer|false

Reimplemented from FileJournal.

Definition at line 92 of file DBFileJournal.php.

DBFileJournal::doGetPositionAtTime ( time) [protected]
See also:
FileJournal::doGetPositionAtTime()
Parameters:
$timeinteger|string timestamp
Returns:
integer|false

Reimplemented from FileJournal.

Definition at line 106 of file DBFileJournal.php.

DBFileJournal::doLogChangeBatch ( array entries,
batchId 
) [protected]
See also:
FileJournal::logChangeBatch()
Returns:
Status

Reimplemented from FileJournal.

Definition at line 51 of file DBFileJournal.php.

See also:
FileJournal::purgeOldLogs()
Returns:
Status
Exceptions:
DBError

Reimplemented from FileJournal.

Definition at line 151 of file DBFileJournal.php.

DBFileJournal::getMasterDB ( ) [protected]

Get a master connection to the logging DB.

Returns:
DatabaseBase
Exceptions:
DBError

Definition at line 174 of file DBFileJournal.php.


Member Data Documentation

DatabaseBase DBFileJournal::$dbw [protected]

*

Definition at line 30 of file DBFileJournal.php.

DBFileJournal::$wiki = false [protected]

Definition at line 32 of file DBFileJournal.php.


The documentation for this class was generated from the following file: