Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4108784
MockFileBackend.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
599 B
Referenced Files
None
Subscribers
None
MockFileBackend.php
View Options
<?php
/**
* Simulation (mock) of a backend storage.
*
* @license GPL-2.0-or-later
* @file
* @ingroup FileBackend
* @author Antoine Musso <hashar@free.fr>
*/
use
Wikimedia\FileBackend\MemoryFileBackend
;
/**
* Class simulating a backend store.
*
* @ingroup FileBackend
* @since 1.22
*/
class
MockFileBackend
extends
MemoryFileBackend
{
/** @inheritDoc */
protected
function
doGetLocalCopyMulti
(
array
$params
)
{
$tmpFiles
=
[];
// (path => MockFSFile)
foreach
(
$params
[
'srcs'
]
as
$src
)
{
$tmpFiles
[
$src
]
=
new
MockFSFile
(
"Fake path for $src"
);
}
return
$tmpFiles
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Aug 18, 20:43 (2 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
5f/9f/e786584c944192128c279b3e2ea0
Default Alt Text
MockFileBackend.php (599 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment