| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 43 lines (1 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
StreamFactoryInterface:: (3 methods):
createStream()
createStreamFromFile()
createStreamFromResource()
Interface: StreamFactoryInterface - X-Ref
| createStream(string $content = '') X-Ref |
| Create a new stream from a string. The stream SHOULD be created with a temporary resource. return: StreamInterface param: string $content String content with which to populate the stream. |
| createStreamFromFile(string $filename, string $mode = 'r') X-Ref |
| 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()`. return: StreamInterface param: string $filename Filename or stream URI to use as basis of stream. param: string $mode Mode with which to open the underlying filename/stream. |
| createStreamFromResource($resource) X-Ref |
| Create a new stream from an existing resource. The stream MUST be readable and may be writable. return: StreamInterface param: resource $resource PHP resource to use as basis of stream. |
| Generated : Sat Jun 13 09:38:55 2026 | Cross-referenced by PHPXref |