Exemplo n.º 1
0
 public function getFolderContentsById($id)
 {
     $results = parent::getFolderContentsById($id);
     foreach ($results as &$file) {
         $file['displayname_owner'] = $this->remoteUser . '@' . $this->remote;
     }
     return $results;
 }
Exemplo n.º 2
0
	/**
	 * 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;
	}
Exemplo n.º 3
0
 /**
  * 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);
 }