/** * Render section. * * @return string */ public function render() { ob_start(); echo "BEGIN:VEVENT\r\n"; echo "UID:" . $this->uid . "\r\n"; echo "DTSTAMP:" . $this->dtstamp . "\r\n"; echo "DTSTART:" . $this->dtstart . "\r\n"; echo "DTEND:" . $this->dtend . "\r\n"; if ($this->last_modified) { echo "LAST-MODIFIED:" . $this->last_modified . "\r\n"; } echo "SUMMARY:" . View_iCalendar::escape($this->summary) . "\r\n"; if ($this->description) { echo "DESCRIPTION:" . View_iCalendar::escape($this->description) . "\r\n"; } if ($this->url) { echo "URL:" . $this->url . "\r\n"; } if ($this->location) { echo "LOCATION:" . View_iCalendar::escape($this->location) . "\r\n"; } echo "END:VEVENT\r\n"; return ob_get_clean(); }