Merge "Added a separate error message for mkdir failures"
[lhc/web/wiklou.git] / includes / libs / filebackend / filejournal / NullFileJournal.php
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
12 */
13 protected function doLogChangeBatch( array $entries, $batchId ) {
14 return StatusValue::newGood();
15 }
16
17 /**
18 * @see FileJournal::doGetCurrentPosition()
19 * @return int|bool
20 */
21 protected function doGetCurrentPosition() {
22 return false;
23 }
24
25 /**
26 * @see FileJournal::doGetPositionAtTime()
27 * @param int|string $time Timestamp
28 * @return int|bool
29 */
30 protected function doGetPositionAtTime( $time ) {
31 return false;
32 }
33
34 /**
35 * @see FileJournal::doGetChangeEntries()
36 * @param int $start
37 * @param int $limit
38 * @return array
39 */
40 protected function doGetChangeEntries( $start, $limit ) {
41 return [];
42 }
43
44 /**
45 * @see FileJournal::doPurgeOldLogs()
46 * @return StatusValue
47 */
48 protected function doPurgeOldLogs() {
49 return StatusValue::newGood();
50 }
51 }