Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

(no description)

File Size: 175 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

StreamWrapper:: (12 methods):
  getResource()
  createStreamContext()
  register()
  stream_open()
  stream_read()
  stream_write()
  stream_tell()
  stream_eof()
  stream_seek()
  stream_cast()
  stream_stat()
  url_stat()


Class: StreamWrapper  - X-Ref

Converts Guzzle streams into PHP stream resources.

getResource(StreamInterface $stream)   X-Ref
Returns a resource representing the stream.

param: StreamInterface $stream The stream to get a resource for
return: resource

createStreamContext(StreamInterface $stream)   X-Ref
Creates a stream context that can be used to open a stream as a php stream resource.

return: resource

register()   X-Ref
Registers the stream wrapper if needed


stream_open(string $path, string $mode, int $options, string &$opened_path = null)   X-Ref
No description

stream_read(int $count)   X-Ref
No description

stream_write(string $data)   X-Ref
No description

stream_tell()   X-Ref
No description

stream_eof()   X-Ref
No description

stream_seek(int $offset, int $whence)   X-Ref
No description

stream_cast(int $cast_as)   X-Ref

return: resource|false

stream_stat()   X-Ref

return: array<int|string, int>

url_stat(string $path, int $flags)   X-Ref

return: array<int|string, int>