public function getFolderContentsById($id) { $results = parent::getFolderContentsById($id); foreach ($results as &$file) { $file['displayname_owner'] = $this->remoteUser . '@' . $this->remote; } return $results; }
/** * Get the children currently in the cache * * @param int $folderId * @return array[] */ protected function getExistingChildren($folderId) { $existingChildren = array(); $children = $this->cache->getFolderContentsById($folderId); foreach ($children as $child) { $existingChildren[$child['name']] = $child; } return $existingChildren; }
/** * get the metadata of all files stored in $folder * * @param int $fileId the file id of the folder * @return array */ public function getFolderContentsById($fileId) { $results = $this->cache->getFolderContentsById($fileId); return array_map(array($this, 'formatCacheEntry'), $results); }