CalendarBackend.php (PHProjekt-6.2.0) | : | CalendarBackend.php (PHProjekt-6.2.1) | ||
---|---|---|---|---|
skipping to change at line 223 | skipping to change at line 223 | |||
* | * | |||
* @param string $calendarId The id of the calendar. Equals to the id of t he user it belongs to. | * @param string $calendarId The id of the calendar. Equals to the id of t he user it belongs to. | |||
* @param string $objectUri The uri that the new object should have. | * @param string $objectUri The uri that the new object should have. | |||
* @param string $calendarData The vobject data for the new calendar object. | * @param string $calendarData The vobject data for the new calendar object. | |||
* | * | |||
* @return void | * @return void | |||
*/ | */ | |||
public function createCalendarObject($calendarId, $objectUri, $calendarData) | public function createCalendarObject($calendarId, $objectUri, $calendarData) | |||
{ | { | |||
$vcalendar = Sabre_VObject_Reader::read($calendarData); | $vcalendar = Sabre_VObject_Reader::read($calendarData); | |||
$timecard = Tiumecard_Models_VObjectReader::read($vcalendar->vevent); | $timecard = Timecard_Models_VObjectReader::read($vcalendar->vevent); | |||
$timecard->projectId = 1; | $timecard->projectId = 1; | |||
$timecard->ownerId = Phprojekt_Auth_Proxy::getEffectiveUserId(); | $timecard->ownerId = Phprojekt_Auth_Proxy::getEffectiveUserId(); | |||
$timecard->uri = $objectUri; | $timecard->uri = $objectUri; | |||
$timecard->save(); | $timecard->save(); | |||
} | } | |||
/** | /** | |||
* As defined in Sabre_CalDAV_Backend_Abstract | * As defined in Sabre_CalDAV_Backend_Abstract | |||
* | * | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |