/** * Displays the latest changes to the registry * */ public function getChangeFeed() { try { $feed1 = sfFeedPeer::createFromWeb($this->getRequest()->getUriPrefix() . "/schemahistory/feed.atom"); $feed2 = sfFeedPeer::createFromWeb($this->getRequest()->getUriPrefix() . "/history/feed.atom"); if ($feed1 && $feed2) { $image = new sfFeedImage(); $image->setFavicon($this->getRequest()->getUriPrefix() . "/favicon.ico"); $image->setFeed($this->getRequest()->getUriPrefix() . "/allhistoryfeeds.atom"); $image->setLink($image->getFeed()); $image->setTitle("Metadata Registry Change History"); $this->feed = sfFeedPeer::aggregate(array($feed1, $feed2), array('limit' => 100, 'format' => 'atom1', 'link' => $image->getLink(), 'title' => $image->getTitle(), 'feedUrl' => $image->getFeed(), 'image' => $image, 'description' => 'A statement-level list of all of the recent changes to the vocabularies and element sets maintained in the Metadata registry.')); $this->changeFeedItems = $this->feed->getItems(); } } catch (Exception $e) { } }