title = "dummytitle"; //$this->description = "dummydescription"; //$this->url = "dummyurl"; //$this->pubDate = "dummypubdate"; } public function setUrl ($url) { $this->url = $url; } public function getUrl () { return $this->url; } public function setTitle ($title) { $this->title = $title; } public function setPubDate ($pubDate) { $this->pubDate = $pubDate; } public function setDescription ($description) { $this->description = $description; } public function __toString () { return ''."\n" . $this->getItemString() . ''."\n"; # return ''."\n" . # $this->getItemString() . ''."\n"; } protected function getItemString () { return '' . $this->title . '' . "\n" . '' . htmlentities($this->url, ENT_QUOTES, CHARSET) . '' . "\n" . '' . $this->description . '' . "\n" . '' . $this->pubDate . '' . "\n"; // '' . $this->url . '' . // "\n"; } } ?>