Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5952196
OutputFileWithContents.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
OutputFileWithContents.php
View Options
<?php
namespace
Shellbox\Command
;
use
Shellbox\Multipart\MultipartReader
;
use
Shellbox\ShellboxError
;
/**
* An OutputFile which carries its contents for eventual retrieval.
*
* @since 4.1.0
*/
abstract
class
OutputFileWithContents
extends
OutputFile
{
/**
* Copy from the specified source path to the registered destination
* location, which may be either a string or a path outside the working
* directory.
*
* @internal
* @param string $sourcePath
*/
abstract
public
function
copyFromFile
(
$sourcePath
);
/**
* Get the contents of the output file from its final destination. This
* should be called after copyFromFile() or readFromMultipart(). It will
* throw if the file is not readable.
*
* @internal
* @return string
* @throws ShellboxError
*/
abstract
public
function
getContents
();
/**
* Copy from the MultipartReader to the registered destination location.
* The MultipartReader must be at the appropriate place in the input stream.
* Used by the client.
*
* @internal
* @param MultipartReader $multipartReader
*/
abstract
public
function
readFromMultipart
(
MultipartReader
$multipartReader
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 3 2026, 01:18 (4 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
7e/b2/0b2d7885aa108d00095553ef2b9d
Default Alt Text
OutputFileWithContents.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment