cloudId = $cloudId; $this->storage = $storage; [, $remote] = explode('://', $cloudId->getRemote(), 2); $this->remote = $remote; $this->remoteUser = $cloudId->getUser(); parent::__construct($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; } }