public function updateFromical(Data_User $user, $cache = TRUE) { if (!$user->hasCalendar()) { throw new Exception('User has no calendar information'); } $this->invitation = false; $this->user = $user; $this->userid = $user->userid; $this->username = $user->username; $this->email = $user->email; if (!empty($_REQUEST['comment'])) { $this->notes = $_REQUEST['comment']; } else { $this->notes = NULL; } #$this->updated = 'now'; $this->response = array('type' => 'ical', 'data' => NULL); $this->icalfill($cache); }