]> scripts.mit.edu Git - autoinstalls/mediawiki.git/blob - includes/filerepo/NullRepo.php
MediaWiki 1.17.0
[autoinstalls/mediawiki.git] / includes / filerepo / NullRepo.php
1 <?php
2 /**
3  * File repository with no files.
4  *
5  * @file
6  * @ingroup FileRepo
7  */
8
9 /**
10  * File repository with no files, for performance testing
11  * @ingroup FileRepo
12  */
13 class NullRepo extends FileRepo {
14         function __construct( $info ) {}
15
16         function storeBatch( $triplets, $flags = 0 ) {
17                 return false;
18         }
19
20         function storeTemp( $originalName, $srcPath ) {
21                 return false;
22         }
23         function append( $srcPath, $toAppendPath, $flags = 0 ){
24                 return false;
25         }
26         function publishBatch( $triplets, $flags = 0 ) {
27                 return false;
28         }
29         function deleteBatch( $sourceDestPairs ) {
30                 return false;
31         }
32         function fileExistsBatch( $files, $flags = 0 ) {
33                 return false;
34         }
35         function getFileProps( $virtualUrl ) {
36                 return false;
37         }
38         function newFile( $title, $time = false ) {
39                 return false;
40         }
41         function findFile( $title, $options = array() ) {
42                 return false;
43         }
44 }