MediaWiki REL1_31
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)
$params