Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
createStream (string $content='') | |
createStreamFromFile (string $filename, string $mode='r') | |
createStreamFromResource ($resource) | |
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. |
Implémenté dans Psr17Factory, et StreamFactory.
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. |
Implémenté dans StreamFactory, et Psr17Factory.
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. |
Implémenté dans Psr17Factory, et StreamFactory.