|
ILIAS
release_8 Revision v8.24
|
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 () | |
| 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 |
| ilBookingReservationDBRepository | $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 40 of file class.ilBookingReservation.php.
References $DIC, Vendor\Package\$f, 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 585 of file class.ilBookingReservation.php.
References $ilDB.
Referenced by ilBookingReservationsGUI\changeStatusObject().
Here is the caller graph for this function:| ilBookingReservation::delete | ( | ) |
Definition at line 224 of file class.ilBookingReservation.php.
| ilBookingReservation::getAssignerId | ( | ) |
Definition at line 87 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 233 of file class.ilBookingReservation.php.
Referenced by ilBookingProcessGUI\confirmedBooking(), and ilBookingProcessGUI\confirmedBookingNumbers().
Here is the caller graph for this function:| ilBookingReservation::getCalendarEntry | ( | ) |
Definition at line 602 of file class.ilBookingReservation.php.
References $ilDB, and ilCalendarCategory\TYPE_BOOK.
|
static |
Get reservation ids from aggregated id for cancellation.
Definition at line 622 of file class.ilBookingReservation.php.
Referenced by ilBookingReservationsGUI\rsvConfirmCancel(), ilBookingReservationsGUI\rsvConfirmDelete(), and ilBookingReservationsGUI\rsvDelete().
Here is the caller graph for this function:| ilBookingReservation::getContextObjId | ( | ) |
Definition at line 165 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 446 of file class.ilBookingReservation.php.
| ilBookingReservation::getFrom | ( | ) |
Definition at line 100 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 149 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 54 of file class.ilBookingReservation.php.
References $id.
|
static |
List all reservations.
Definition at line 493 of file class.ilBookingReservation.php.
Referenced by ilBookingObjectsTableGUI\getItems().
Here is the caller graph for this function:
|
static |
Definition at line 385 of file class.ilBookingReservation.php.
|
static |
Definition at line 423 of file class.ilBookingReservation.php.
References $DIC, $ilDB, ilBookingObject\getNrOfItemsForObjects(), and ILIAS\Repository\int().
Here is the call graph for this function:| ilBookingReservation::getObjectId | ( | ) |
Definition at line 64 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 469 of file class.ilBookingReservation.php.
Referenced by ilBookingProcessGUI\confirmedBooking(), ilBookingProcessGUI\deliverPostFile(), ilBookingProcessGUI\displayPostInfo(), ilBookingAssignObjectsTableGUI\getItems(), ilBookingReservationsGUI\rsvCancelUser(), and ilBookingPrefBasedBookGatewayRepository\storeBookings().
Here is the caller graph for this function:| ilBookingReservation::getStatus | ( | ) |
Get booking status.
Definition at line 134 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 113 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 554 of file class.ilBookingReservation.php.
| ilBookingReservation::getUserId | ( | ) |
Definition at line 74 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 362 of file class.ilBookingReservation.php.
|
static |
Definition at line 293 of file class.ilBookingReservation.php.
Referenced by ilBookingObjectsTableGUI\getItems().
Here is the caller graph for this function:
|
static |
Definition at line 412 of file class.ilBookingReservation.php.
Referenced by ilBookingProcessGUI\confirmedBooking(), and ilBookingPrefBasedBookGatewayRepository\storeBookings().
Here is the caller graph for this function:
|
static |
Definition at line 139 of file class.ilBookingReservation.php.
|
static |
Definition at line 418 of file class.ilBookingReservation.php.
Referenced by ilBookingAssignParticipantsTableGUI\__construct(), ilBookingProcessGUI\bookMultipleParticipants(), and ilBookingAssignObjectsTableGUI\getItems().
Here is the caller graph for this function:
|
protected |
Definition at line 170 of file class.ilBookingReservation.php.
References setAssignerId(), setContextObjId(), setFrom(), setGroupId(), 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 185 of file class.ilBookingReservation.php.
References getAssignerId(), getContextObjId(), getFrom(), getGroupId(), 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 82 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 157 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 95 of file class.ilBookingReservation.php.
Referenced by read().
Here is the caller graph for this function:| ilBookingReservation::setGroupId | ( | int | $a_group_id | ) |
Definition at line 144 of file class.ilBookingReservation.php.
Referenced by read().
Here is the caller graph for this function:| ilBookingReservation::setObjectId | ( | int | $a_object_id | ) |
Definition at line 59 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 121 of file class.ilBookingReservation.php.
References ILIAS\Repository\int().
Referenced by 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 108 of file class.ilBookingReservation.php.
Referenced by read().
Here is the caller graph for this function:| ilBookingReservation::setUserId | ( | int | $a_user_id | ) |
Definition at line 69 of file class.ilBookingReservation.php.
Referenced by read().
Here is the caller graph for this function:| ilBookingReservation::update | ( | ) |
Definition at line 204 of file class.ilBookingReservation.php.
References getAssignerId(), getContextObjId(), getFrom(), getGroupId(), 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.
|
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 getId().
|
protected |
Definition at line 30 of file class.ilBookingReservation.php.
Referenced by getObjectId().
|
protected |
Definition at line 38 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\getCurrentFilter(), ilBookingObjectsTableGUI\getItems(), ilBookingInfoScreenAdapter\getList(), ilBookingReservationsGUI\rsvCancel(), and ilBookingReservationsGUI\rsvCancelUser().
| const ilBookingReservation::STATUS_IN_USE = 2 |
Definition at line 25 of file class.ilBookingReservation.php.
Referenced by ilBookingReservationsTableGUI\fillRow().