예제 #1
0
 private function _callRead(array $options)
 {
     return Timecard_Models_VObjectReader::read($this->_generateVEvent($options));
 }
예제 #2
0
 /**
  * As defined in Sabre_CalDAV_Backend_Abstract
  *
  * Creates a new calendar object from the given data.
  *
  * @param string $calendarId   The id of the calendar. Equals to the id of the user it belongs to.
  * @param string $objectUri    The uri that the new object should have.
  * @param string $calendarData The vobject data for the new calendar object.
  *
  * @return void
  */
 public function createCalendarObject($calendarId, $objectUri, $calendarData)
 {
     $vcalendar = Sabre_VObject_Reader::read($calendarData);
     $timecard = Timecard_Models_VObjectReader::read($vcalendar->vevent);
     $timecard->projectId = 1;
     $timecard->ownerId = Phprojekt_Auth_Proxy::getEffectiveUserId();
     $timecard->uri = $objectUri;
     $timecard->save();
 }