title = ""; $this->link = ""; $this->description = ""; Global $cms; return true; } /** * Clean RSS buffer */ function CleanBuffer () { $this->output = ""; return true; } /** * Create a new RSS item */ function AddSimpleNews ($title, $link, $description) { if (($title == "") || ($link == "") || ($description == "")) { echo "DEBUG: Mandatory parameters not passed"; return false; } //setlocale(LC_ALL, $this->cms->i18n->preferred_language . '_' . // strtoupper($this->cms->i18n->preferred_language)); $this->output .= " \r\n"; $this->output .= " $title\r\n"; $this->output .= " $link\r\n"; $this->output .= " $description\r\n"; $this->output .= " " . gmdate("D, d M Y H:i:s", time()) . " GMT" . "\r\n"; $this->output .= " \r\n"; return true; } function RSS_Feed_Serialize () { // Clean cmsdam output buffer so we can serialize only RSS output $this->cms->general->cmsdam_ob_clean(); header("Content-type: application/xml"); echo '' . "\r\n"; echo '' . "\r\n"; echo ' ' . "\r\n"; echo $this->output; echo ' ' . "\r\n"; echo '' . "\r\n"; exit; return true; } } // People can use plugin api classes $this->included->rss_feeder->api = new CmsdAm_RSS; $this->included->rss_feeder->api->cms = &$cms; ?>