Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe StreamFactory
+ Graphe d'héritage de StreamFactory:

Fonctions membres publiques

 createStream (string $content='')
 
 createStreamFromFile (string $file, 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émente StreamFactoryInterface.

Références $content, et StreamFactory\createStreamFromResource().

◆ createStreamFromFile()

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

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émente StreamFactoryInterface.

Références $mode.

◆ 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émente StreamFactoryInterface.

Référencé par StreamFactory\createStream().


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