ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
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().
|
static |
Batch update reservation status.
int[] | $a_ids reservation ids | |
int | $a_status |
Definition at line 585 of file class.ilBookingReservation.php.
Referenced by ilBookingReservationsGUI\changeStatusObject().
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().
|
static |
Check if any of given objects are bookable.
Definition at line 233 of file class.ilBookingReservation.php.
References Vendor\Package\$f, $id, ilBookingSchedule\getAvailabilityFrom(), ilBookingObject\getNrOfItemsForObjects(), ilBookingReservationDBRepository\getNumberOfReservations(), IL_CAL_UNIX, and ILIAS\Repository\int().
Referenced by ilBookingProcessGUI\book(), ilBookingProcessGUI\confirmedBooking(), and ilBookingProcessGUI\confirmedBookingNumbers().
ilBookingReservation::getCalendarEntry | ( | ) |
Definition at line 602 of file class.ilBookingReservation.php.
References $db, $ilDB, getId(), and ilCalendarCategory\TYPE_BOOK.
|
static |
Get reservation ids from aggregated id for cancellation.
Definition at line 622 of file class.ilBookingReservation.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
Referenced by ilBookingReservationsGUI\rsvConfirmCancel(), ilBookingReservationsGUI\rsvConfirmDelete(), and ilBookingReservationsGUI\rsvDelete().
ilBookingReservation::getContextObjId | ( | ) |
Definition at line 165 of file class.ilBookingReservation.php.
References $context_obj_id.
Referenced by save(), and update().
|
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().
ilBookingReservation::getGroupId | ( | ) |
Definition at line 149 of file class.ilBookingReservation.php.
References $group_id.
Referenced by save(), and update().
ilBookingReservation::getId | ( | ) |
Definition at line 54 of file class.ilBookingReservation.php.
References $id.
Referenced by getCalendarEntry().
|
static |
List all reservations.
Definition at line 493 of file class.ilBookingReservation.php.
References $DIC, $ilDB, and $res.
Referenced by ilBookingPrefBasedBookGatewayRepository\getBookings(), and ilBookingObjectsTableGUI\getItems().
|
static |
Definition at line 385 of file class.ilBookingReservation.php.
References $DIC, $ilDB, $query, $res, ILIAS\Repository\int(), and ilBookingObject\lookupPoolId().
Referenced by ilBookingParticipant\getAssignableParticipants().
|
static |
Definition at line 423 of file class.ilBookingReservation.php.
References $DIC, $ilDB, ilBookingObject\getNrOfItemsForObjects(), and ILIAS\Repository\int().
Referenced by ilBookingPreferencesManager\calculateBookings().
ilBookingReservation::getObjectId | ( | ) |
Definition at line 64 of file class.ilBookingReservation.php.
References $object_id.
Referenced by save(), and update().
|
static |
Definition at line 469 of file class.ilBookingReservation.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
Referenced by ilBookingProcessGUI\confirmedBooking(), ilBookingProcessGUI\deliverPostFile(), ilBookingProcessGUI\displayPostInfo(), ilBookingAssignObjectsTableGUI\getItems(), ilBookingParticipant\isParticipantAssigned(), ilBookingReservationsGUI\rsvCancelUser(), and ilBookingPrefBasedBookGatewayRepository\storeBookings().
ilBookingReservation::getStatus | ( | ) |
Get booking status.
Definition at line 134 of file class.ilBookingReservation.php.
References $status.
Referenced by save(), and update().
ilBookingReservation::getTo | ( | ) |
Definition at line 113 of file class.ilBookingReservation.php.
References $to.
Referenced by save(), and update().
|
static |
Get all users who have reservations for object(s)
int[] | $a_object_ids |
Definition at line 554 of file class.ilBookingReservation.php.
References $DIC, $ilDB, $res, and ANONYMOUS_USER_ID.
Referenced by ilBookingReservationsTableGUI\initFilter().
ilBookingReservation::getUserId | ( | ) |
Definition at line 74 of file class.ilBookingReservation.php.
References $user_id.
Referenced by save(), and update().
|
static |
Definition at line 362 of file class.ilBookingReservation.php.
References $DIC, $ilDB, $query, $res, ilDBConstants\FETCHMODE_ASSOC, and ilBookingObject\getObjectsForPool().
Referenced by ilBookingParticipant\getAssignableParticipants().
|
static |
Definition at line 293 of file class.ilBookingReservation.php.
References Vendor\Package\$f, $res, ilBookingSchedule\getAvailabilityFrom(), ilBookingSchedule\getAvailabilityTo(), ilBookingSchedule\getDefinition(), ilBookingObject\getNrOfItemsForObjects(), ilBookingReservationDBRepository\getNumberOfReservations(), IL_CAL_DATE, IL_CAL_UNIX, and ILIAS\Repository\int().
Referenced by ilBookingObjectsTableGUI\getItems().
|
static |
Definition at line 412 of file class.ilBookingReservation.php.
Referenced by ilBookingProcessGUI\confirmedBooking(), and ilBookingPrefBasedBookGatewayRepository\storeBookings().
|
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().
|
protected |
Definition at line 170 of file class.ilBookingReservation.php.
References setAssignerId(), setContextObjId(), setFrom(), setGroupId(), setObjectId(), setStatus(), setTo(), and setUserId().
Referenced by __construct().
ilBookingReservation::save | ( | ) |
Definition at line 185 of file class.ilBookingReservation.php.
References getAssignerId(), getContextObjId(), getFrom(), getGroupId(), getObjectId(), getStatus(), getTo(), and getUserId().
ilBookingReservation::setAssignerId | ( | int | $a_assigner_id | ) |
Set assigner user id.
Definition at line 82 of file class.ilBookingReservation.php.
Referenced by read().
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().
ilBookingReservation::setFrom | ( | int | $a_from | ) |
Set booking from date.
Definition at line 95 of file class.ilBookingReservation.php.
Referenced by read().
ilBookingReservation::setGroupId | ( | int | $a_group_id | ) |
Definition at line 144 of file class.ilBookingReservation.php.
Referenced by read().
ilBookingReservation::setObjectId | ( | int | $a_object_id | ) |
Definition at line 59 of file class.ilBookingReservation.php.
Referenced by read().
ilBookingReservation::setStatus | ( | ?int | $a_status | ) |
Set booking status.
Definition at line 121 of file class.ilBookingReservation.php.
References ILIAS\Repository\int().
Referenced by ilCalendarAppointmentGUI\cancelConfirmed(), and read().
ilBookingReservation::setTo | ( | int | $a_to | ) |
Set booking to date.
Definition at line 108 of file class.ilBookingReservation.php.
Referenced by read().
ilBookingReservation::setUserId | ( | int | $a_user_id | ) |
Definition at line 69 of file class.ilBookingReservation.php.
Referenced by read().
ilBookingReservation::update | ( | ) |
Definition at line 204 of file class.ilBookingReservation.php.
References getAssignerId(), getContextObjId(), getFrom(), getGroupId(), getObjectId(), getStatus(), getTo(), and getUserId().
|
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 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\fillRowCSV(), ilBookingReservationsTableGUI\fillRowExcel(), ilBookingPrefBasedBookGatewayRepository\getBookings(), ilBookingReservationsTableGUI\getCurrentFilter(), ilBookingObjectsTableGUI\getItems(), ilBookingInfoScreenAdapter\getList(), ilBookingParticipant\getList(), ilBookingReservationDBRepository\getListByDate(), ilBookingReservationDBRepository\getNumberOfReservations(), ilBookingReservationsTableGUI\initFilter(), ilBookingReservationDBRepository\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().