List of all members.
Definition at line 45 of file mapistreamwrapper.php.
Member Function Documentation
Indicates if 'end of file' is reached.
Definition at line 113 of file mapistreamwrapper.php.
return ($this->position >= $this->streamlength);
Opens the stream The mapistream reference is passed over the context.
|string||$path||Specifies the URL that was passed to the original function |
|string||$mode||The mode used to open the file, as detailed for fopen() |
|int||$options||Holds additional flags set by the streams API |
|string||$opened_path||If the path is opened successfully, and STREAM_USE_PATH is set in options, opened_path should be set to the full path of the file/resource that was actually opened.|
Definition at line 65 of file mapistreamwrapper.php.
$contextOptions = stream_context_get_options($this->context);
$this->position = 0;
$this->mapistream = $contextOptions[self::PROTOCOL]['stream'];
$stat = mapi_stream_stat($this->mapistream);
$this->streamlength = $stat["cb"];
ZLog::Write(LOGLEVEL_DEBUG, sprintf("MAPIStreamWrapper::stream_open(): initialized mapistream: %s streamlength: %d", $this->mapistream, $this->streamlength));
Reads from stream.
|int||$len||amount of bytes to be read|
Definition at line 91 of file mapistreamwrapper.php.
$data = mapi_stream_read($this->mapistream, $len);
$this->position += strlen($data);
Member Data Documentation
The documentation for this class was generated from the following file: