| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
 Collaboration diagram for ilBookingReservation:Public Member Functions | |
| __construct (int $a_id=null) | |
| getId () | |
| setObjectId (int $a_object_id) | |
| getObjectId () | |
| setUserId (int $a_user_id) | |
| getUserId () | |
| setMessage (string $message) | |
| getMessage () | |
| setAssignerId (int $a_assigner_id) | |
| Set assigner user id.  More... | |
| getAssignerId () | |
| setFrom (int $a_from) | |
| Set booking from date.  More... | |
| getFrom () | |
| setTo (int $a_to) | |
| Set booking to date.  More... | |
| getTo () | |
| setStatus (?int $a_status) | |
| Set booking status.  More... | |
| getStatus () | |
| Get booking status.  More... | |
| setGroupId (int $a_group_id) | |
| getGroupId () | |
| setContextObjId (int $a_val) | |
| getContextObjId () | |
| save () | |
| update () | |
| delete () | |
| getCalendarEntry () | |
Static Public Member Functions | |
| static | isValidStatus (int $a_status) | 
| static | getAvailableObject (array $a_ids, int $a_from, int $a_to, bool $a_return_single=true, bool $a_return_counter=false) | 
| Check if any of given objects are bookable.  More... | |
| static | isObjectAvailableInPeriod (int $a_obj_id, ilBookingSchedule $a_schedule, ?int $a_from, ?int $a_to) | 
| static | isBookingPoolLimitReachedByUser (int $a_user_id, int $a_pool_id) | 
| static | getMembersWithoutReservation (int $a_object_id) | 
| static | isObjectAvailableNoSchedule (int $a_obj_id) | 
| static | numAvailableFromObjectNoSchedule (int $a_obj_id) | 
| static | getNumAvailablesNoSchedule (int $a_obj_id) | 
| static | getCurrentOrUpcomingReservation (int $a_object_id) | 
| Get details about object reservation.  More... | |
| static | getObjectReservationForUser (int $a_object_id, int $a_user_id) | 
| static | getList (array $a_object_ids, int $a_limit=10, int $a_offset=0, array $filter=[]) | 
| List all reservations.  More... | |
| static | getUserFilter (array $a_object_ids) | 
| Get all users who have reservations for object(s)  More... | |
| static | changeStatus (array $a_ids, int $a_status) | 
| Batch update reservation status.  More... | |
| static | getCancelDetails (int $a_obj_id, int $a_user_id, int $a_from, int $a_to) | 
| Get reservation ids from aggregated id for cancellation.  More... | |
Data Fields | |
| const | STATUS_IN_USE = 2 | 
| const | STATUS_CANCELLED = 5 | 
Protected Member Functions | |
| read () | |
Protected Attributes | |
| ilDBInterface | $db | 
| int | $id = 0 | 
| int | $object_id = 0 | 
| int | $user_id = 0 | 
| int | $from = 0 | 
| int | $to = 0 | 
| int | $status = 0 | 
| int | $group_id = 0 | 
| int | $assigner_id = 0 | 
| int | $context_obj_id = 0 | 
| string | $message = "" | 
| ILIAS BookingManager Reservations ReservationDBRepository | $repo | 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning a booking reservation
Definition at line 23 of file class.ilBookingReservation.php.
| ilBookingReservation::__construct | ( | int | $a_id = null | ) | 
Definition at line 41 of file class.ilBookingReservation.php.
References $DIC, ILIAS\Repository\int(), and read().
 Here is the call graph for this function:
      
  | 
  static | 
Batch update reservation status.
| int[] | $a_ids reservation ids | |
| int | $a_status | 
Definition at line 604 of file class.ilBookingReservation.php.
Referenced by ilBookingReservationsGUI\changeStatusObject().
 Here is the caller graph for this function:| ilBookingReservation::delete | ( | ) | 
Definition at line 239 of file class.ilBookingReservation.php.
| ilBookingReservation::getAssignerId | ( | ) | 
Definition at line 99 of file class.ilBookingReservation.php.
References $assigner_id.
Referenced by save(), and update().
 Here is the caller graph for this function:
      
  | 
  static | 
Check if any of given objects are bookable.
Definition at line 248 of file class.ilBookingReservation.php.
References $DIC, $id, ilBookingSchedule\getAvailabilityFrom(), ilBookingObject\getNrOfItemsForObjects(), IL_CAL_UNIX, and ILIAS\Repository\int().
Referenced by ILIAS\BookingManager\BookingProcess\BookingProcessManager\bookAvailableObjects(), ILIAS\BookingManager\Reservations\ReservationManager\getAvailableNr(), ILIAS\BookingManager\BookingProcess\WeekGUI\getHTML(), and ILIAS\BookingManager\BookingProcess\BookingProcessManager\getRecurrenceMissingAvailability().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilBookingReservation::getCalendarEntry | ( | ) | 
Definition at line 621 of file class.ilBookingReservation.php.
References $db, $ilDB, getId(), and ilCalendarCategory\TYPE_BOOK.
 Here is the call graph for this function:
      
  | 
  static | 
Get reservation ids from aggregated id for cancellation.
Definition at line 641 of file class.ilBookingReservation.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
Referenced by ilBookingReservationsGUI\redirectMailToBooker(), ilBookingReservationsGUI\rsvConfirmCancel(), ilBookingReservationsGUI\rsvConfirmDelete(), and ilBookingReservationsGUI\rsvDelete().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilBookingReservation::getContextObjId | ( | ) | 
Definition at line 177 of file class.ilBookingReservation.php.
References $context_obj_id.
Referenced by save(), and update().
 Here is the caller graph for this function:
      
  | 
  static | 
Get details about object reservation.
Definition at line 465 of file class.ilBookingReservation.php.
| ilBookingReservation::getFrom | ( | ) | 
Definition at line 112 of file class.ilBookingReservation.php.
References $from.
Referenced by save(), and update().
 Here is the caller graph for this function:| ilBookingReservation::getGroupId | ( | ) | 
Definition at line 161 of file class.ilBookingReservation.php.
References $group_id.
Referenced by save(), and update().
 Here is the caller graph for this function:| ilBookingReservation::getId | ( | ) | 
Definition at line 56 of file class.ilBookingReservation.php.
References $id.
Referenced by getCalendarEntry().
 Here is the caller graph for this function:
      
  | 
  static | 
List all reservations.
Definition at line 512 of file class.ilBookingReservation.php.
References $DIC, $ilDB, and $res.
Referenced by ilBookingPrefBasedBookGatewayRepository\getBookings(), and ilBookingObjectsTableGUI\getItems().
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 404 of file class.ilBookingReservation.php.
References $DIC, $ilDB, $res, ILIAS\Repository\int(), and ilBookingObject\lookupPoolId().
Referenced by ilBookingParticipant\getAssignableParticipants().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilBookingReservation::getMessage | ( | ) | 
Definition at line 86 of file class.ilBookingReservation.php.
References $message.
Referenced by save(), and update().
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 442 of file class.ilBookingReservation.php.
References $DIC, $ilDB, ilBookingObject\getNrOfItemsForObjects(), and ILIAS\Repository\int().
Referenced by ilBookingPreferencesManager\calculateBookings().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilBookingReservation::getObjectId | ( | ) | 
Definition at line 66 of file class.ilBookingReservation.php.
References $object_id.
Referenced by save(), and update().
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 488 of file class.ilBookingReservation.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
Referenced by ilBookingProcessWithoutScheduleGUI\confirmedBooking(), ILIAS\BookingManager\BookingProcess\ProcessUtilGUI\deliverPostFile(), ILIAS\BookingManager\BookingProcess\ProcessUtilGUI\displayPostInfo(), ilBookingAssignObjectsTableGUI\getItems(), ilBookingParticipant\isParticipantAssigned(), ilBookingReservationsGUI\rsvCancelUser(), and ilBookingPrefBasedBookGatewayRepository\storeBookings().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilBookingReservation::getStatus | ( | ) | 
Get booking status.
Definition at line 146 of file class.ilBookingReservation.php.
References $status.
Referenced by save(), and update().
 Here is the caller graph for this function:| ilBookingReservation::getTo | ( | ) | 
Definition at line 125 of file class.ilBookingReservation.php.
References $to.
Referenced by save(), and update().
 Here is the caller graph for this function:
      
  | 
  static | 
Get all users who have reservations for object(s)
| int[] | $a_object_ids | 
Definition at line 573 of file class.ilBookingReservation.php.
References $DIC, $ilDB, $res, and ANONYMOUS_USER_ID.
Referenced by ilBookingReservationsTableGUI\initFilter().
 Here is the caller graph for this function:| ilBookingReservation::getUserId | ( | ) | 
Definition at line 76 of file class.ilBookingReservation.php.
References $user_id.
Referenced by save(), and update().
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 379 of file class.ilBookingReservation.php.
References $DIC, $ilDB, $res, and ilDBConstants\FETCHMODE_ASSOC.
Referenced by ilBookingParticipant\getAssignableParticipants().
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 309 of file class.ilBookingReservation.php.
References $DIC, $res, ilBookingSchedule\getAvailabilityFrom(), ilBookingSchedule\getAvailabilityTo(), ilBookingSchedule\getDefinition(), ilBookingObject\getNrOfItemsForObjects(), IL_CAL_DATE, IL_CAL_UNIX, and ILIAS\Repository\int().
Referenced by ilBookingObjectsTableGUI\getItems().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 431 of file class.ilBookingReservation.php.
Referenced by ilBookingProcessWithoutScheduleGUI\confirmedBooking(), and ilBookingPrefBasedBookGatewayRepository\storeBookings().
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 151 of file class.ilBookingReservation.php.
      
  | 
  static | 
Definition at line 437 of file class.ilBookingReservation.php.
Referenced by ilBookingAssignParticipantsTableGUI\__construct(), ilBookingProcessWithoutScheduleGUI\bookMultipleParticipants(), and ilBookingAssignObjectsTableGUI\getItems().
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 182 of file class.ilBookingReservation.php.
References setAssignerId(), setContextObjId(), setFrom(), setGroupId(), setMessage(), setObjectId(), setStatus(), setTo(), and setUserId().
Referenced by __construct().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilBookingReservation::save | ( | ) | 
Definition at line 198 of file class.ilBookingReservation.php.
References getAssignerId(), getContextObjId(), getFrom(), getGroupId(), getMessage(), getObjectId(), getStatus(), getTo(), and getUserId().
 Here is the call graph for this function:| ilBookingReservation::setAssignerId | ( | int | $a_assigner_id | ) | 
Set assigner user id.
Definition at line 94 of file class.ilBookingReservation.php.
Referenced by read().
 Here is the caller graph for this function:| ilBookingReservation::setContextObjId | ( | int | $a_val | ) | 
| int | $a_val | context object id (e.g. course id) | 
Definition at line 169 of file class.ilBookingReservation.php.
Referenced by read().
 Here is the caller graph for this function:| ilBookingReservation::setFrom | ( | int | $a_from | ) | 
Set booking from date.
Definition at line 107 of file class.ilBookingReservation.php.
References ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from().
Referenced by read().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilBookingReservation::setGroupId | ( | int | $a_group_id | ) | 
Definition at line 156 of file class.ilBookingReservation.php.
Referenced by read().
 Here is the caller graph for this function:| ilBookingReservation::setMessage | ( | string | $message | ) | 
Definition at line 81 of file class.ilBookingReservation.php.
References $message.
Referenced by read().
 Here is the caller graph for this function:| ilBookingReservation::setObjectId | ( | int | $a_object_id | ) | 
Definition at line 61 of file class.ilBookingReservation.php.
Referenced by read().
 Here is the caller graph for this function:| ilBookingReservation::setStatus | ( | ?int | $a_status | ) | 
Set booking status.
Definition at line 133 of file class.ilBookingReservation.php.
References ILIAS\Repository\int().
Referenced by ilCalendarAppointmentGUI\cancelConfirmed(), and read().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilBookingReservation::setTo | ( | int | $a_to | ) | 
Set booking to date.
Definition at line 120 of file class.ilBookingReservation.php.
References ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\to().
Referenced by read().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilBookingReservation::setUserId | ( | int | $a_user_id | ) | 
Definition at line 71 of file class.ilBookingReservation.php.
Referenced by read().
 Here is the caller graph for this function:| ilBookingReservation::update | ( | ) | 
Definition at line 218 of file class.ilBookingReservation.php.
References getAssignerId(), getContextObjId(), getFrom(), getGroupId(), getMessage(), getObjectId(), getStatus(), getTo(), and getUserId().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 36 of file class.ilBookingReservation.php.
Referenced by getAssignerId().
      
  | 
  protected | 
Definition at line 37 of file class.ilBookingReservation.php.
Referenced by getContextObjId().
      
  | 
  protected | 
Definition at line 28 of file class.ilBookingReservation.php.
Referenced by getCalendarEntry().
      
  | 
  protected | 
Definition at line 32 of file class.ilBookingReservation.php.
Referenced by getFrom().
      
  | 
  protected | 
Definition at line 35 of file class.ilBookingReservation.php.
Referenced by getGroupId().
      
  | 
  protected | 
Definition at line 29 of file class.ilBookingReservation.php.
Referenced by getAvailableObject(), and getId().
      
  | 
  protected | 
Definition at line 38 of file class.ilBookingReservation.php.
Referenced by getMessage(), and setMessage().
      
  | 
  protected | 
Definition at line 30 of file class.ilBookingReservation.php.
Referenced by getObjectId().
      
  | 
  protected | 
Definition at line 39 of file class.ilBookingReservation.php.
      
  | 
  protected | 
Definition at line 34 of file class.ilBookingReservation.php.
Referenced by getStatus().
      
  | 
  protected | 
Definition at line 33 of file class.ilBookingReservation.php.
Referenced by getTo().
      
  | 
  protected | 
Definition at line 31 of file class.ilBookingReservation.php.
Referenced by getUserId().
| const ilBookingReservation::STATUS_CANCELLED = 5 | 
Definition at line 26 of file class.ilBookingReservation.php.
Referenced by ilCalendarAppointmentGUI\cancelConfirmed(), ilBookingObjectsTableGUI\fillRow(), ilBookingReservationsTableGUI\fillRow(), ilBookingReservationsTableGUI\fillRowCSV(), ilBookingReservationsTableGUI\fillRowExcel(), ilBookingPrefBasedBookGatewayRepository\getBookings(), ilBookingReservationsTableGUI\getCurrentFilter(), ilBookingObjectsTableGUI\getItems(), ilBookingInfoScreenAdapter\getList(), ilBookingParticipant\getList(), ILIAS\BookingManager\Reservations\ReservationDBRepository\getListByDate(), ILIAS\BookingManager\Reservations\ReservationDBRepository\getNumberOfReservations(), ilBookingReservationsTableGUI\initFilter(), ILIAS\BookingManager\Reservations\ReservationDBRepository\preloadByContextIds(), ilBookingReservationsGUI\rsvCancel(), and ilBookingReservationsGUI\rsvCancelUser().
| const ilBookingReservation::STATUS_IN_USE = 2 | 
Definition at line 25 of file class.ilBookingReservation.php.
Referenced by ilBookingReservationsTableGUI\fillRow(), ilBookingReservationsTableGUI\fillRowCSV(), and ilBookingReservationsTableGUI\fillRowExcel().