Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
createStream (string $content='') | |
createStreamFromFile (string $file, 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émente StreamFactoryInterface.
Références $content, et StreamFactory\createStreamFromResource().
createStreamFromFile | ( | string | $file, |
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émente StreamFactoryInterface.
Références $mode.
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émente StreamFactoryInterface.
Référencé par StreamFactory\createStream().