ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Filesystem\Stream\ReattachableStream Class Reference
+ Inheritance diagram for ILIAS\Filesystem\Stream\ReattachableStream:
+ Collaboration diagram for ILIAS\Filesystem\Stream\ReattachableStream:

Protected Member Functions

 assertStreamAttached ()
 Checks if the stream is attached to the wrapper. More...
 
- Protected Member Functions inherited from ILIAS\Filesystem\Stream\Stream
 assertStreamAttached ()
 Checks if the stream is attached to the wrapper. More...
 

Additional Inherited Members

- Public Member Functions inherited from ILIAS\Filesystem\Stream\Stream
 __construct ($stream, ?StreamOptions $options=null)
 Stream constructor. More...
 
 close ()
 
 detach ()
 
 getSize ()
 
 tell ()
 
 eof ()
 
 isSeekable ()
 
 seek ($offset, $whence=SEEK_SET)
 
 rewind ()
 
 isWritable ()
 
 write ($string)
 
 isReadable ()
 
 read ($length)
 
 getContents ()
 
 getMetadata ($key=null)
 
 __toString ()
 
 __destruct ()
 
- Data Fields inherited from ILIAS\Filesystem\Stream\Stream
const MASK_ACCESS_READ = 01
 
const MASK_ACCESS_WRITE = 02
 
const MASK_ACCESS_READ_WRITE = 03
 
- Protected Attributes inherited from ILIAS\Filesystem\Stream\Stream
static array string $_mode = null
 
bool $readable
 
bool $writeable
 
bool $seekable
 
 $stream
 
int $size = null
 
string $uri = null
 
array $customMetadata
 
- Static Protected Attributes inherited from ILIAS\Filesystem\Stream\Stream
static array $accessMap
 

Detailed Description

Author
Fabian Schmid fabia.nosp@m.n@sr.nosp@m..solu.nosp@m.tion.nosp@m.s

Definition at line 26 of file ReattachableStream.php.

Member Function Documentation

◆ assertStreamAttached()

ILIAS\Filesystem\Stream\ReattachableStream::assertStreamAttached ( )
protected

Checks if the stream is attached to the wrapper.

If not, the stream is reattached.

Definition at line 33 of file ReattachableStream.php.

References null.

33  : void
34  {
35  if ($this->stream === null) {
36  $this->stream = fopen($this->uri, $this->_mode);
37  }
38  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

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