WARNING: HUGE COMMIT
[lhc/web/wiklou.git] / includes / filerepo / NullRepo.php
1 <?php
2
3 /**
4 * File repository with no files, for performance testing
5 * @ingroup FileRepo
6 */
7 class NullRepo extends FileRepo {
8 function __construct( $info ) {}
9
10 function storeBatch( $triplets, $flags = 0 ) {
11 return false;
12 }
13
14 function storeTemp( $originalName, $srcPath ) {
15 return false;
16 }
17 function publishBatch( $triplets, $flags = 0 ) {
18 return false;
19 }
20 function deleteBatch( $sourceDestPairs ) {
21 return false;
22 }
23 function getFileProps( $virtualUrl ) {
24 return false;
25 }
26 function newFile( $title, $time = false ) {
27 return false;
28 }
29 function findFile( $title, $time = false ) {
30 return false;
31 }
32 }