Minor followup to r64197
[mediawiki.git] / includes / filerepo / NullRepo.php
blob2bc61bdec8c5bf123c514040dbb2131e9d500108
1 <?php
3 /**
4 * File repository with no files, for performance testing
5 * @ingroup FileRepo
6 */
7 class NullRepo extends FileRepo {
8 function __construct( $info ) {}
10 function storeBatch( $triplets, $flags = 0 ) {
11 return false;
14 function storeTemp( $originalName, $srcPath ) {
15 return false;
17 function append( $srcPath, $toAppendPath, $flags = 0 ){
18 return false;
20 function publishBatch( $triplets, $flags = 0 ) {
21 return false;
23 function deleteBatch( $sourceDestPairs ) {
24 return false;
26 function fileExistsBatch( $files, $flags = 0 ) {
27 return false;
29 function getFileProps( $virtualUrl ) {
30 return false;
32 function newFile( $title, $time = false ) {
33 return false;
35 function findFile( $title, $options = array() ) {
36 return false;