Horde_Vfs_Base::write PHP Method

write() public method

Stores a file in the VFS.
public write ( string $path, string $name, string $tmpFile, boolean $autocreate = false )
$path string The path to store the file in.
$name string The filename to use.
$tmpFile string The temporary file containing the data to be stored.
$autocreate boolean Automatically create directories?
    public function write($path, $name, $tmpFile, $autocreate = false)
    {
        throw new Horde_Vfs_Exception('Not supported.');
    }

Usage Example

Esempio n. 1
0
 /**
  */
 protected function _write($filename, Horde_Mime_Part $part)
 {
     try {
         $this->_vfs->write($this->_vfspath, $this->_id, $filename, true);
     } catch (Horde_Vfs_Exception $e) {
         throw new IMP_Compose_Exception($e);
     }
 }