cloudId->getRemote(), 2); $this->remote = $remote; $this->remoteUser = $this->cloudId->getUser(); parent::__construct($this->storage); } public function get($file) { $result = parent::get($file); if (!$result) { return false; } $result['displayname_owner'] = $this->cloudId->getDisplayId(); if (!$file || $file === '') { $result['is_share_mount_point'] = true; $mountPoint = rtrim($this->storage->getMountPoint()); $result['name'] = basename($mountPoint); } return $result; } public function getFolderContentsById($fileId) { $results = parent::getFolderContentsById($fileId); foreach ($results as &$file) { $file['displayname_owner'] = $this->cloudId->getDisplayId(); } return $results; } }