diff options
Diffstat (limited to 'www/wiki/includes/libs/filebackend/filejournal/NullFileJournal.php')
-rw-r--r-- | www/wiki/includes/libs/filebackend/filejournal/NullFileJournal.php | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/www/wiki/includes/libs/filebackend/filejournal/NullFileJournal.php b/www/wiki/includes/libs/filebackend/filejournal/NullFileJournal.php new file mode 100644 index 00000000..8d472abf --- /dev/null +++ b/www/wiki/includes/libs/filebackend/filejournal/NullFileJournal.php @@ -0,0 +1,51 @@ +<?php +/** + * Simple version of FileJournal that does nothing + * @since 1.20 + */ +class NullFileJournal extends FileJournal { + /** + * @see FileJournal::doLogChangeBatch() + * @param array $entries + * @param string $batchId + * @return StatusValue + */ + protected function doLogChangeBatch( array $entries, $batchId ) { + return StatusValue::newGood(); + } + + /** + * @see FileJournal::doGetCurrentPosition() + * @return int|bool + */ + protected function doGetCurrentPosition() { + return false; + } + + /** + * @see FileJournal::doGetPositionAtTime() + * @param int|string $time Timestamp + * @return int|bool + */ + protected function doGetPositionAtTime( $time ) { + return false; + } + + /** + * @see FileJournal::doGetChangeEntries() + * @param int $start + * @param int $limit + * @return array + */ + protected function doGetChangeEntries( $start, $limit ) { + return []; + } + + /** + * @see FileJournal::doPurgeOldLogs() + * @return StatusValue + */ + protected function doPurgeOldLogs() { + return StatusValue::newGood(); + } +} |