summaryrefslogtreecommitdiff
path: root/includes/filerepo/NullRepo.php
blob: 87bfd3ab676055f704c9a8a3e3dd94c6c45c3495 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php

/**
 * File repository with no files, for performance testing
 */

class NullRepo extends FileRepo {
	function __construct( $info ) {}
	
	function storeBatch( $triplets, $flags = 0 ) {
		return false;
	}
	
	function storeTemp( $originalName, $srcPath ) {
		return false;
	}
	function publishBatch( $triplets, $flags = 0 ) {
		return false;
	}
	function deleteBatch( $sourceDestPairs ) {
		return false;
	}
	function getFileProps( $virtualUrl ) {
		return false;
	}
	function newFile( $title, $time = false ) {
		return false;
	}
	function findFile( $title, $time = false ) {
		return false;
	}
}

?>