MediaWiki REL1_33
MockFileBackend.php
Go to the documentation of this file.
1<?php
32 protected function doGetLocalCopyMulti( array $params ) {
33 $tmpFiles = []; // (path => MockFSFile)
34 foreach ( $params['srcs'] as $src ) {
35 $tmpFiles[$src] = new MockFSFile( wfTempDir() . '/' . wfRandomString( 32 ) );
36 }
37 return $tmpFiles;
38 }
39}
wfTempDir()
Tries to get the system directory for temporary files.
wfRandomString( $length=32)
Get a random string containing a number of pseudo-random hex characters.
Simulation of a backend storage in memory.
Class representing an in-memory fake file.
Class simulating a backend store.
doGetLocalCopyMulti(array $params)
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))
$params