/**
  * Used for deleting bookings.
  */
 public function cancelBookingObject()
 {
     $bookings = new ilRoomSharingBookings($this->pool_id);
     // the canceling has to be confirmed via a form, which is why we get the id from POST
     try {
         $bookings->removeBooking($_POST["booking_id"]);
     } catch (ilRoomSharingBookingsException $exc) {
         ilUtil::sendFailure($this->lng->txt($exc->getMessage()), true);
         $this->showBookingsObject();
     }
     $this->showBookingsObject();
 }