protected function addAppointment($a_app_id) { $app = new ilCalendarEntry($a_app_id); if ($app->isMilestone()) { $this->createVTODO($app); } else { $this->createVEVENT($app); } }