Fix missing commit() flag in postgres savepoint class
[mediawiki.git] / includes / libs / filebackend / filejournal / NullFileJournal.php
blob8d472abf2ce3a34f7b4fb9c97c25055fb3dab19c
1 <?php
2 /**
3 * Simple version of FileJournal that does nothing
4 * @since 1.20
5 */
6 class NullFileJournal extends FileJournal {
7 /**
8 * @see FileJournal::doLogChangeBatch()
9 * @param array $entries
10 * @param string $batchId
11 * @return StatusValue
13 protected function doLogChangeBatch( array $entries, $batchId ) {
14 return StatusValue::newGood();
17 /**
18 * @see FileJournal::doGetCurrentPosition()
19 * @return int|bool
21 protected function doGetCurrentPosition() {
22 return false;
25 /**
26 * @see FileJournal::doGetPositionAtTime()
27 * @param int|string $time Timestamp
28 * @return int|bool
30 protected function doGetPositionAtTime( $time ) {
31 return false;
34 /**
35 * @see FileJournal::doGetChangeEntries()
36 * @param int $start
37 * @param int $limit
38 * @return array
40 protected function doGetChangeEntries( $start, $limit ) {
41 return [];
44 /**
45 * @see FileJournal::doPurgeOldLogs()
46 * @return StatusValue
48 protected function doPurgeOldLogs() {
49 return StatusValue::newGood();