Esempio n. 1
0
 public function addEntry($photo, $path, $enclosure, $content = "")
 {
     $entry = new Zend_Feed_Builder_Entry($photo->title, $this->_link . $path, $photo->description);
     $entry->setId($photo->id);
     $entry->setContent($content);
     $date = new Zend_Date($photo->created_on);
     $entry->setLastUpdate($date->get(Zend_Date::TIMESTAMP));
     $entry->addEnclosure($this->_link . $enclosure, 'image/jpeg');
     // TODO: Fix types
     $this->_entries[] = $entry;
     return $this;
 }