/** * Output product description as an ATOM feed */ public function toATOM() { /* * Initialize ATOM feed */ $atomFeed = new RestoATOMFeed($this->featureArray['id'], $this->featureArray['properties']['title'], 'resto feature'); /* * Entry for feature */ $atomFeed->addEntry($this->featureArray, $this->context); /* * Return ATOM result */ return $atomFeed->toString(); }
/** * Output product description as an ATOM feed */ public function toATOM() { /* * Initialize ATOM feed */ $atomFeed = new RestoATOMFeed($this->description['properties']['id'], $this->context->title, $this->getATOMSubtitle()); /* * Set collection elements */ $atomFeed->setCollectionElements($this->description['properties']); /* * Add one entry per product */ $atomFeed->addEntries($this->restoFeatures, $this->context); /* * Return ATOM result */ return $atomFeed->toString(); }