public function getAllTagsForFile(File $file) { $list = array(); foreach ($file->getTags() as $tag) { $list = $this->collectTagsByParent($tag, $list); } return $list; }
private function getCurrentMeta(File $file) { $currentMeta = array(); foreach ($file->getDateMeta() as $meta) { $currentMeta[] = $meta; } foreach ($file->getStringMeta() as $meta) { $currentMeta[] = $meta; } return $currentMeta; }