public function ICalendarEvent::generateString in Opigno calendar event 8
Same name and namespace in other branches
- 3.x src/iCal/ICalendarEvent.php \Drupal\opigno_calendar_event\iCal\ICalendarEvent::generateString()
Calendar event string.
File
- src/
iCal/ ICalendarEvent.php, line 93
Class
- ICalendarEvent
- Class ICalendarEvent.
Namespace
Drupal\opigno_calendar_event\iCalCode
public function generateString() {
$created = new \DateTime();
$content = '';
$content = "BEGIN:VEVENT\r\nUID:{$this->uid}\r\n" . "DTSTART:{$this->formatDate($this->start)}\r\n" . "DTEND:{$this->formatDate($this->end)}\r\n" . "DTSTAMP:{$this->formatDate($this->start)}\r\n" . "CREATED:{$this->formatDate($created)}\r\n" . "DESCRIPTION:{$this->formatValue($this->description)}\r\n" . "LAST-MODIFIED:{$this->formatDate($this->start)}\r\n" . "URL:{$this->url}\r\nORGANIZER:{$this->org}\r\n" . "LOCATION:{$this->location}\r\n" . "SUMMARY:{$this->formatValue($this->summary)}\r\n" . "SEQUENCE:0\r\nSTATUS:CONFIRMED\r\nTRANSP:OPAQUE\r\nEND:VEVENT\r\n";
return $content;
}