示例#1
0
 public function getEventText()
 {
     $VEVENT = "BEGIN:VEVENT\n";
     $VEVENT .= "CLASS:PUBLIC\n";
     $VEVENT .= "CREATED:" . date("Ymd\\THis\\Z", ICalendar::ConvertUTC()) . "\n";
     $VEVENT .= "DTSTAMP:" . date("Ymd\\THis\\Z", ICalendar::ConvertUTC($this->_StartDate)) . "\n";
     $VEVENT .= "DTSTART:" . date("Ymd\\THis\\Z", ICalendar::ConvertUTC($this->_StartDate)) . "\n";
     $VEVENT .= "DTEND:" . date("Ymd\\THis\\Z", ICalendar::ConvertUTC($this->_EndDate)) . "\n";
     $VEVENT .= "LOCATION:" . $this->_Location . "\n";
     $VEVENT .= "ORGANIZER;CN=" . $this->_Organizer . "\n";
     foreach ($this->_Attendee as $Attendee) {
         $VEVENT .= $Attendee;
     }
     $VEVENT .= "DESCRIPTION;LANGUAGE=tr:" . $this->_Description . "\n";
     $VEVENT .= "PRIORITY:5\n";
     $VEVENT .= "SEQUENCE:0\n";
     $VEVENT .= "SUMMARY;LANGUAGE=tr:" . $this->_Summary . "\n";
     $VEVENT .= "TRANSP:OPAQUE\n";
     $VEVENT .= "UID:" . $this->_UId . "\n";
     $VEVENT .= $this->_Alarm;
     return $VEVENT .= "END:VEVENT\n";
 }