Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5987242
OutputGlobToFile.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
640 B
Referenced Files
None
Subscribers
None
OutputGlobToFile.php
View Options
<?php
namespace
Shellbox\Command
;
/**
* An output glob for files that are written to a local directory
*/
class
OutputGlobToFile
extends
OutputGlob
{
/** @var string */
private
$destDir
;
/**
* @internal
* @param string $prefix
* @param string $extension
* @param string $destDir
*/
public
function
__construct
(
$prefix
,
$extension
,
$destDir
)
{
parent
::
__construct
(
$prefix
,
$extension
);
$this
->
destDir
=
$destDir
;
}
public
function
getOutputFile
(
$boxedName
)
{
$instance
=
new
OutputFileToFile
(
$this
->
destDir
.
'/'
.
basename
(
$boxedName
)
);
$this
->
files
[
$boxedName
]
=
$instance
;
return
$instance
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Oct 4, 00:22 (2 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
fa/c1/2eea60f691865451cd067908f0cb
Default Alt Text
OutputGlobToFile.php (640 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment