/**
  * Parse appointments
  * @return 
  */
 public function parse()
 {
     global $ilDB, $ilObjDataCache;
     include_once 'Services/Booking/classes/class.ilBookingEntry.php';
     $data = array();
     $counter = 0;
     foreach (ilConsultationHourAppointments::getAppointments($this->getUserId()) as $app) {
         $data[$counter]['id'] = $app->getEntryId();
         $data[$counter]['title'] = $app->getTitle();
         $data[$counter]['description'] = $app->getDescription();
         $data[$counter]['start'] = $app->getStart()->get(IL_CAL_UNIX);
         $data[$counter]['start_p'] = ilDatePresentation::formatDate($app->getStart());
         $booking = new ilBookingEntry($app->getContextId());
         $users = array();
         foreach ($booking->getCurrentBookings($app->getEntryId()) as $user_id) {
             $users[$user_id] = ilObjUser::_lookupFullname($user_id);
         }
         $data[$counter]['num_bookings'] = sizeof($users);
         $data[$counter]['bookings'] = $users;
         $target = $booking->getTargetObjId();
         if ($target) {
             $data[$counter]['target'] = $ilObjDataCache->lookupTitle($target);
         }
         $counter++;
     }
     $this->setData($data);
 }