Lines Matching refs:booking

45     protected $booking = null;  variable in ilConsultationHoursGUI
245 $booking = ilBookingEntry::getInstanceByCalendarEntryId($app);
249 if ($booking->getCurrentNumberOfBookings($app) >= $booking->getNumberOfBookings()) {
296 $booking = ilBookingEntry::getInstanceByCalendarEntryId($app);
298 if ($booking->getCurrentNumberOfBookings($app) >= $booking->getNumberOfBookings()) {
688 $this->booking = new ilBookingEntry();
689 $this->form->getItemByPostVar('bo')->setValue($this->booking->getNumberOfBookings());
839 $booking = new ilBookingEntry();
840 $booking->setObjId($this->getUserId());
841 $booking->setNumberOfBookings($this->form->getInput('bo'));
845 $booking->setDeadlineHours($deadline);
850 $booking->setBookingGroup((int) $this->form->getInput('grp'));
870 $booking->setTargetObjIds($obj_ids);
872 $booking->save();
873 $this->createAppointments($booking);
885 * @param ilBookingEntry $booking
888 protected function createAppointments(ilBookingEntry $booking) argument
939 $entry->setContextId($booking->getId());
1036 $booking = new ilBookingEntry($entry->getContextId());
1038 $this->form->getItemByPostVar('bo')->setValue($booking->getNumberOfBookings());
1041 foreach ($booking->getTargetObjIds() as $obj_id) {
1047 $deadline = $booking->getDeadlineHours();
1051 if ($booking->getBookingGroup()) {
1052 $this->form->getItemByPostVar('grp')->setValue($booking->getBookingGroup());
1068 $booking = new \ilBookingEntry();
1069 $booking->setObjId($this->user_id);
1070 $booking->setNumberOfBookings((int) $this->form->getInput('bo'));
1074 $booking->setDeadlineHours($deadline);
1091 $booking->setTargetObjIds($obj_ids);
1094 $booking->setBookingGroup($this->form->getInput('grp'));
1096 $booking->save();
1097 return $booking;
1101 * @param ilBookingEntry $booking
1104 …protected function rewriteBookingIdsForAppointments(\ilBookingEntry $booking, $appointments, \ilPr… argument
1126 $entry->setContextId($booking->getId());
1153 $booking = $this->createNewBookingEntry($this->form);
1154 if (!$booking instanceof \ilBookingEntry) {
1158 $this->rewriteBookingIdsForAppointments($booking, $apps, $this->form);
1228 $booking = ilBookingEntry::getInstanceByCalendarEntryId($entry_id);
1229 if ($booking) {
1230 foreach ($booking->getCurrentBookings($entry_id) as $user_id) {