*/ class GPXCreator extends FeedCreator { /** * GPXCreator constructor. */ public function __construct() { $this->contentType = "text/xml"; $this->encoding = "utf-8"; } /** @inheritdoc */ public function createFeed() { $feed = "encoding."\"?>\n"; $feed .= $this->_createStylesheetReferences(); $feed .= "\n"; $now = new FeedDate(); $feed .= "".FeedCreator::iTrunc(htmlspecialchars($this->title), 100)." {$http_host} ".htmlspecialchars($this->link)." \n"; for ($i = 0; $i < count($this->items); $i++) { $feed .= "items[$i]->lat."\" lon=\"".$this->items[$i]->long."\"> ".substr(htmlspecialchars(strip_tags($this->items[$i]->title)), 0, 6)." ".htmlspecialchars(strip_tags($this->items[$i]->title))." ".htmlspecialchars($this->items[$i]->author)." ".htmlspecialchars($this->items[$i]->link)." \n"; } $feed .= "\n"; return $feed; } }