[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/filebackend/filejournal/ -> DBFileJournal.php (summary)

Version of FileJournal that logs to a DB table. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Author: Aaron Schulz
File Size: 190 lines (5 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 1 class

DBFileJournal:: (7 methods):
  __construct()
  doLogChangeBatch()
  doGetCurrentPosition()
  doGetPositionAtTime()
  doGetChangeEntries()
  doPurgeOldLogs()
  getMasterDB()


Class: DBFileJournal  - X-Ref

Version of FileJournal that logs to a DB table

__construct( array $config )   X-Ref
Construct a new instance from configuration.

param: array $config Includes:

doLogChangeBatch( array $entries, $batchId )   X-Ref

param: array $entries
param: string $batchId
return: Status

doGetCurrentPosition()   X-Ref

return: bool|mixed The value from the field, or false on failure.

doGetPositionAtTime( $time )   X-Ref

param: int|string $time Timestamp
return: bool|mixed The value from the field, or false on failure.

doGetChangeEntries( $start, $limit )   X-Ref

param: int $start
param: int $limit
return: array

doPurgeOldLogs()   X-Ref

return: Status

getMasterDB()   X-Ref
Get a master connection to the logging DB

return: DatabaseBase



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1