ILIAS  release_8 Revision v8.24
ILIAS\Filesystem\Stream\StreamOptions Class Reference

Class StreamOptions. More...

+ Collaboration diagram for ILIAS\Filesystem\Stream\StreamOptions:

Public Member Functions

 __construct (array $metadata=[], int $size=self::UNKNOWN_STREAM_SIZE)
 StreamOptions constructor. More...
 
 getSize ()
 
 getMetadata ()
 

Data Fields

const UNKNOWN_STREAM_SIZE = -1
 

Private Attributes

int $size
 
array $metadata
 

Detailed Description

Class StreamOptions.

The streaming options are used by the stream implementation. This class only hold configuration options which can be used by the Stream class.

Author
Nicolas Schäfli ns@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Since
5.3
Version
1.0.0
See also
Stream

Definition at line 33 of file StreamOptions.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Filesystem\Stream\StreamOptions::__construct ( array  $metadata = [],
int  $size = self::UNKNOWN_STREAM_SIZE 
)

StreamOptions constructor.

Parameters
\string[]$metadataAdditional metadata for the stream.
int$sizeThe known stream size in byte. -1 indicates an unknown size.

Definition at line 50 of file StreamOptions.php.

51 {
52 $this->size = $size;
53 $this->metadata = $metadata;
54 }

References ILIAS\Filesystem\Stream\StreamOptions\$metadata, and ILIAS\Filesystem\Stream\StreamOptions\$size.

Member Function Documentation

◆ getMetadata()

ILIAS\Filesystem\Stream\StreamOptions::getMetadata ( )
Returns
\string[]

Definition at line 69 of file StreamOptions.php.

69 : array
70 {
71 return $this->metadata;
72 }

References ILIAS\Filesystem\Stream\StreamOptions\$metadata.

◆ getSize()

ILIAS\Filesystem\Stream\StreamOptions::getSize ( )
Returns
int

Definition at line 60 of file StreamOptions.php.

60 : int
61 {
62 return $this->size;
63 }

References ILIAS\Filesystem\Stream\StreamOptions\$size.

Field Documentation

◆ $metadata

string[] ILIAS\Filesystem\Stream\StreamOptions::$metadata
private

◆ $size

int ILIAS\Filesystem\Stream\StreamOptions::$size
private

◆ UNKNOWN_STREAM_SIZE

const ILIAS\Filesystem\Stream\StreamOptions::UNKNOWN_STREAM_SIZE = -1

Definition at line 35 of file StreamOptions.php.


The documentation for this class was generated from the following file: