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