Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5980705
InputFileFromFile.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
532 B
Referenced Files
None
Subscribers
None
InputFileFromFile.php
View Options
<?php
namespace
Shellbox\Command
;
use
Shellbox\FileUtils
;
/**
* Encapsulation of an input file that is copied from another file
*/
class
InputFileFromFile
extends
InputFileWithContents
{
/** @var string */
private
$path
;
/**
* @internal
* @param string $path
*/
public
function
__construct
(
$path
)
{
$this
->
path
=
$path
;
}
public
function
copyTo
(
$destPath
)
{
FileUtils
::
copy
(
$this
->
path
,
$destPath
);
}
public
function
getStreamOrString
()
{
return
FileUtils
::
openInputFileStream
(
$this
->
path
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 21:31 (1 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
eb/dc/1f8ee36108a03f63c430b3993c22
Default Alt Text
InputFileFromFile.php (532 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment