Beispiel #1
0
 /**
  */
 protected function _read()
 {
     try {
         if (method_exists($this->_vfs, 'readStream')) {
             $stream = new Horde_Stream_Existing(array('stream' => $this->_vfs->readStream($this->_vfspath, $this->_id)));
             $stream->rewind();
         } else {
             $stream = new Horde_Stream_Temp();
             $stream->add($this->_vfs->read($this->_vfspath, $this->_id), true);
         }
         return $stream;
     } catch (Horde_Vfs_Exception $e) {
         throw new IMP_Compose_Exception($e);
     }
 }