MediaWiki  master
NullFileJournal.php
Go to the documentation of this file.
1 <?php
6 class NullFileJournal extends FileJournal {
7  public function __construct() {
8  // No-op
9  }
10 
17  protected function doLogChangeBatch( array $entries, $batchId ) {
18  return StatusValue::newGood();
19  }
20 
25  protected function doGetCurrentPosition() {
26  return false;
27  }
28 
34  protected function doGetPositionAtTime( $time ) {
35  return false;
36  }
37 
44  protected function doGetChangeEntries( $start, $limit ) {
45  return [];
46  }
47 
52  protected function doPurgeOldLogs() {
53  return StatusValue::newGood();
54  }
55 }
NullFileJournal\doGetChangeEntries
doGetChangeEntries( $start, $limit)
Definition: NullFileJournal.php:44
NullFileJournal\doGetPositionAtTime
doGetPositionAtTime( $time)
Definition: NullFileJournal.php:34
NullFileJournal\doGetCurrentPosition
doGetCurrentPosition()
Definition: NullFileJournal.php:25
NullFileJournal
Simple version of FileJournal that does nothing.
Definition: NullFileJournal.php:6
NullFileJournal\doLogChangeBatch
doLogChangeBatch(array $entries, $batchId)
Definition: NullFileJournal.php:17
FileJournal
Class for handling file operation journaling.
Definition: FileJournal.php:41
StatusValue\newGood
static newGood( $value=null)
Factory function for good results.
Definition: StatusValue.php:82
NullFileJournal\__construct
__construct()
Definition: NullFileJournal.php:7
NullFileJournal\doPurgeOldLogs
doPurgeOldLogs()
Definition: NullFileJournal.php:52