initializeNode($files, $user, $file, $davName, $scope); } public function put($data) { try { $this->file = $this->files->replaceFile($this->user, $this->file, $data); return $this->getETag(); } catch (ApiException $e) { throw WebDavExceptionMapper::map($e); } } public function get() { try { FileModel::permissionFind($this->file->id, $this->user, 0); return $this->files->open($this->file); } catch (ApiException $e) { throw WebDavExceptionMapper::map($e); } } public function getSize() { return intval($this->file->size); } public function getETag() { return $this->files->etag($this->file); } public function getContentType() { return $this->files->mime($this->file); } }