(bug 26895) in /include/db/LoadBalancer.php function "closeConnecton" should be calle...
[mediawiki.git] / includes / filerepo / NullRepo.php
blobd5a1ee03dbef8bdc87c7b5de88fca63bcbfe8925
1 <?php
2 /**
3 * File repository with no files.
5 * @file
6 * @ingroup FileRepo
7 */
9 /**
10 * File repository with no files, for performance testing
11 * @ingroup FileRepo
13 class NullRepo extends FileRepo {
14 function __construct( $info ) {}
16 function storeBatch( $triplets, $flags = 0 ) {
17 return false;
20 function storeTemp( $originalName, $srcPath ) {
21 return false;
23 function append( $srcPath, $toAppendPath, $flags = 0 ){
24 return false;
26 function publishBatch( $triplets, $flags = 0 ) {
27 return false;
29 function deleteBatch( $sourceDestPairs ) {
30 return false;
32 function fileExistsBatch( $files, $flags = 0 ) {
33 return false;
35 function getFileProps( $virtualUrl ) {
36 return false;
38 function newFile( $title, $time = false ) {
39 return false;
41 function findFile( $title, $options = array() ) {
42 return false;