Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de l'interface StreamFactoryInterface
+ Graphe d'héritage de StreamFactoryInterface:

Fonctions membres publiques

 createStream (string $content='')
 
 createStreamFromFile (string $filename, string $mode='r')
 
 createStreamFromResource ($resource)
 

Documentation des fonctions membres

◆ createStream()

createStream ( string  $content = '')

Create a new stream from a string.

The stream SHOULD be created with a temporary resource.

Paramètres
string$contentString content with which to populate the stream.
Renvoie
StreamInterface

Implémenté dans Psr17Factory, et StreamFactory.

◆ createStreamFromFile()

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().

Paramètres
string$filenameFilename or stream URI to use as basis of stream.
string$modeMode with which to open the underlying filename/stream.
Renvoie
StreamInterface
Exceptions

Implémenté dans StreamFactory, et Psr17Factory.

◆ createStreamFromResource()

createStreamFromResource (   $resource)

Create a new stream from an existing resource.

The stream MUST be readable and may be writable.

Paramètres
resource$resourcePHP resource to use as basis of stream.
Renvoie
StreamInterface

Implémenté dans Psr17Factory, et StreamFactory.


La documentation de cette interface a été générée à partir du fichier suivant :