ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
createStream (string $content='') | |
Create a new stream from a string. More... | |
createStreamFromFile (string $filename, string $mode='r') | |
Create a stream from an existing file. More... | |
createStreamFromResource ($resource) | |
Create a new stream from an existing resource. More... | |
Definition at line 5 of file StreamFactoryInterface.php.
Psr\Http\Message\StreamFactoryInterface::createStream | ( | string | $content = '' | ) |
Create a new stream from a string.
The stream SHOULD be created with a temporary resource.
string | $content | String content with which to populate the stream. |
Psr\Http\Message\StreamFactoryInterface::createStreamFromFile | ( | string | $filename, |
string | $mode = 'r' |
||
) |
Create a stream from an existing file.
The file MUST be opened using the given mode, which may be any mode supported by the fopen
function.
The $filename
MAY be any string supported by fopen()
.
string | $filename | Filename or stream URI to use as basis of stream. |
string | $mode | Mode with which to open the underlying filename/stream. |
Psr\Http\Message\StreamFactoryInterface::createStreamFromResource | ( | $resource | ) |
Create a new stream from an existing resource.
The stream MUST be readable and may be writable.
resource | $resource | PHP resource to use as basis of stream. |