ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
a booking reservation More...
Public Member Functions | |
__construct ($a_id=null) | |
Constructor. More... | |
getId () | |
Get id. More... | |
setObjectId ($a_object_id) | |
Set object id. More... | |
getObjectId () | |
Get object id. More... | |
setUserId ($a_user_id) | |
Set booking user id. More... | |
getUserId () | |
Get booking user id. More... | |
setAssignerId ($a_assigner_id) | |
Set assigner user id. More... | |
getAssignerId () | |
Get assigner user id. More... | |
setFrom ($a_from) | |
Set booking from date. More... | |
getFrom () | |
Get booking from date. More... | |
setTo ($a_to) | |
Set booking to date. More... | |
getTo () | |
Get booking to date. More... | |
setStatus ($a_status) | |
Set booking status. More... | |
getStatus () | |
Get booking status. More... | |
setGroupId ($a_group_id) | |
Set group id. More... | |
getGroupId () | |
Get group id. More... | |
setContextObjId ($a_val) | |
Set context object id. More... | |
getContextObjId () | |
Get context object id. More... | |
save () | |
Create new entry in db. More... | |
update () | |
Update entry in db. More... | |
delete () | |
Delete single entry. More... | |
getCalendarEntry () | |
Static Public Member Functions | |
static | isValidStatus ($a_status) |
Check if given status is valid. More... | |
static | getAvailableObject (array $a_ids, $a_from, $a_to, $a_return_single=true, $a_return_counter=false) |
Check if any of given objects are bookable. More... | |
static | isObjectAvailableInPeriod ($a_obj_id, ilBookingSchedule $a_schedule, $a_from, $a_to) |
static | isBookingPoolLimitReachedByUser (int $a_user_id, int $a_pool_id) |
static | getMembersWithoutReservation (int $a_object_id) |
static | isObjectAvailableNoSchedule ($a_obj_id) |
static | numAvailableFromObjectNoSchedule ($a_obj_id) |
static | getNumAvailablesNoSchedule ($a_obj_id) |
static | getCurrentOrUpcomingReservation ($a_object_id) |
Get details about object reservation. More... | |
static | getObjectReservationForUser ($a_object_id, $a_user_id, $a_multi=false) |
static | getList ($a_object_ids, $a_limit=10, $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, $a_status) |
Batch update reservation status. More... | |
static | getCancelDetails ($a_obj_id, $a_user_id, $a_from, $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 () | |
Get dataset from db. More... | |
Protected Attributes | |
$db | |
$id | |
$object_id | |
$user_id | |
$from | |
$to | |
$status | |
$group_id | |
$assigner_id | |
$context_obj_id = 0 | |
$repo | |
ilBookingReservation::__construct | ( | $a_id = null | ) |
Constructor.
if id is given will read dataset from db
int | $a_id |
Definition at line 48 of file class.ilBookingReservation.php.
References $DIC, Vendor\Package\$f, and read().
|
static |
Batch update reservation status.
array | $a_ids | |
int | $a_status |
Definition at line 661 of file class.ilBookingReservation.php.
Referenced by ilBookingReservationsGUI\changeStatusObject().
ilBookingReservation::delete | ( | ) |
Delete single entry.
Definition at line 302 of file class.ilBookingReservation.php.
ilBookingReservation::getAssignerId | ( | ) |
Get assigner user id.
Definition at line 119 of file class.ilBookingReservation.php.
References $assigner_id.
Referenced by save(), and update().
|
static |
Check if any of given objects are bookable.
array | $a_ids | |
int | $a_from | |
int | $a_to | |
int | $a_return_single |
Definition at line 316 of file class.ilBookingReservation.php.
References Vendor\Package\$f, $id, $repo, ilBookingSchedule\getAvailabilityFrom(), ilBookingObject\getNrOfItemsForObjects(), IL_CAL_DATE, and IL_CAL_UNIX.
Referenced by ilBookingProcessGUI\book(), ilBookingProcessGUI\confirmedBooking(), and ilBookingProcessGUI\confirmedBookingNumbers().
ilBookingReservation::getCalendarEntry | ( | ) |
Definition at line 674 of file class.ilBookingReservation.php.
References $db, $ilDB, getId(), and ilCalendarCategory\TYPE_BOOK.
|
static |
Get reservation ids from aggregated id for cancellation.
int | $a_obj_id | |
int | $a_user_id | |
int | $a_from | |
int | $a_to |
Definition at line 700 of file class.ilBookingReservation.php.
References $DIC, $ilDB, and $res.
Referenced by ilBookingReservationsGUI\rsvConfirmCancel(), and ilBookingReservationsGUI\rsvConfirmDelete().
ilBookingReservation::getContextObjId | ( | ) |
Get context object id.
Definition at line 229 of file class.ilBookingReservation.php.
References $context_obj_id.
Referenced by save(), and update().
|
static |
Get details about object reservation.
int | $a_object_id |
Definition at line 523 of file class.ilBookingReservation.php.
ilBookingReservation::getFrom | ( | ) |
Get booking from date.
Definition at line 137 of file class.ilBookingReservation.php.
References $from.
Referenced by save(), and update().
ilBookingReservation::getGroupId | ( | ) |
Get group id.
Definition at line 209 of file class.ilBookingReservation.php.
References $group_id.
Referenced by save(), and update().
ilBookingReservation::getId | ( | ) |
Get id.
Definition at line 65 of file class.ilBookingReservation.php.
References $id.
Referenced by getCalendarEntry().
|
static |
List all reservations.
array | $a_object_ids | |
int | $a_limit | |
int | $a_offset | |
array | $a_offset |
Definition at line 574 of file class.ilBookingReservation.php.
References $DIC, $ilDB, and $res.
Referenced by ilBookingPrefBasedBookGatewayRepository\getBookings(), and ilBookingObjectsTableGUI\getItems().
|
static |
Definition at line 461 of file class.ilBookingReservation.php.
References $DIC, $ilDB, $query, $res, ilBookingObject\lookupPoolId(), and STATUS_CANCELLED.
Referenced by ilBookingParticipant\getAssignableParticipants().
|
static |
Definition at line 498 of file class.ilBookingReservation.php.
References $DIC, $ilDB, and ilBookingObject\getNrOfItemsForObjects().
Referenced by ilBookingPreferencesManager\calculateBookings().
ilBookingReservation::getObjectId | ( | ) |
Get object id.
Definition at line 83 of file class.ilBookingReservation.php.
References $object_id.
Referenced by save(), and update().
|
static |
Definition at line 543 of file class.ilBookingReservation.php.
References $DIC, $ilDB, and $res.
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 178 of file class.ilBookingReservation.php.
References $status.
Referenced by save(), and update().
ilBookingReservation::getTo | ( | ) |
Get booking to date.
Definition at line 155 of file class.ilBookingReservation.php.
References $to.
Referenced by save(), and update().
|
static |
Get all users who have reservations for object(s)
array | $a_object_ids |
Definition at line 631 of file class.ilBookingReservation.php.
References $DIC, $ilDB, and $res.
Referenced by ilBookingReservationsTableGUI\initFilter().
ilBookingReservation::getUserId | ( | ) |
Get booking user id.
Definition at line 101 of file class.ilBookingReservation.php.
References $user_id.
Referenced by save(), and update().
|
static |
Definition at line 443 of file class.ilBookingReservation.php.
References $DIC, $ilDB, $query, $res, ilDBConstants\FETCHMODE_ASSOC, ilBookingObject\getObjectsForPool(), and STATUS_CANCELLED.
Referenced by ilBookingParticipant\getAssignableParticipants().
|
static |
Definition at line 370 of file class.ilBookingReservation.php.
References $DIC, Vendor\Package\$f, $ilDB, $repo, $res, ilBookingSchedule\getAvailabilityFrom(), ilBookingSchedule\getAvailabilityTo(), ilBookingSchedule\getDefinition(), ilBookingObject\getNrOfItemsForObjects(), IL_CAL_DATE, and IL_CAL_UNIX.
Referenced by ilBookingObjectsTableGUI\getItems().
|
static |
Definition at line 487 of file class.ilBookingReservation.php.
Referenced by ilBookingProcessGUI\confirmedBooking(), and ilBookingPrefBasedBookGatewayRepository\storeBookings().
|
static |
Check if given status is valid.
int | $a_status |
Definition at line 188 of file class.ilBookingReservation.php.
Referenced by setStatus().
|
static |
Definition at line 492 of file class.ilBookingReservation.php.
Referenced by ilBookingAssignParticipantsTableGUI\__construct(), ilBookingProcessGUI\bookMultipleParticipants(), and ilBookingAssignObjectsTableGUI\getItems().
|
protected |
Get dataset from db.
Definition at line 238 of file class.ilBookingReservation.php.
References setAssignerId(), setContextObjId(), setFrom(), setGroupId(), setObjectId(), setStatus(), setTo(), and setUserId().
Referenced by __construct().
ilBookingReservation::save | ( | ) |
Create new entry in db.
Definition at line 257 of file class.ilBookingReservation.php.
References getAssignerId(), getContextObjId(), getFrom(), getGroupId(), getObjectId(), getStatus(), getTo(), and getUserId().
ilBookingReservation::setAssignerId | ( | $a_assigner_id | ) |
Set assigner user id.
$a_assigner_id |
Definition at line 110 of file class.ilBookingReservation.php.
Referenced by read().
ilBookingReservation::setContextObjId | ( | $a_val | ) |
Set context object id.
int | $a_val | context object id (e.g. course id) |
Definition at line 219 of file class.ilBookingReservation.php.
Referenced by read().
ilBookingReservation::setFrom | ( | $a_from | ) |
Set booking from date.
int | $a_from |
Definition at line 128 of file class.ilBookingReservation.php.
Referenced by read().
ilBookingReservation::setGroupId | ( | $a_group_id | ) |
Set group id.
int | $a_group_id |
Definition at line 200 of file class.ilBookingReservation.php.
Referenced by read().
ilBookingReservation::setObjectId | ( | $a_object_id | ) |
Set object id.
int | $a_object_id |
Definition at line 74 of file class.ilBookingReservation.php.
Referenced by read().
ilBookingReservation::setStatus | ( | $a_status | ) |
Set booking status.
int | $a_status |
Definition at line 164 of file class.ilBookingReservation.php.
References isValidStatus().
Referenced by ilCalendarAppointmentGUI\cancelConfirmed(), and read().
ilBookingReservation::setTo | ( | $a_to | ) |
Set booking to date.
int | $a_to |
Definition at line 146 of file class.ilBookingReservation.php.
Referenced by read().
ilBookingReservation::setUserId | ( | $a_user_id | ) |
Set booking user id.
int | $a_user_id |
Definition at line 92 of file class.ilBookingReservation.php.
Referenced by read().
ilBookingReservation::update | ( | ) |
Update entry in db.
Definition at line 279 of file class.ilBookingReservation.php.
References getAssignerId(), getContextObjId(), getFrom(), getGroupId(), getObjectId(), getStatus(), getTo(), and getUserId().
|
protected |
Definition at line 26 of file class.ilBookingReservation.php.
Referenced by getAssignerId().
|
protected |
Definition at line 31 of file class.ilBookingReservation.php.
Referenced by getContextObjId().
|
protected |
Definition at line 17 of file class.ilBookingReservation.php.
Referenced by getCalendarEntry().
|
protected |
Definition at line 22 of file class.ilBookingReservation.php.
Referenced by getFrom().
|
protected |
Definition at line 25 of file class.ilBookingReservation.php.
Referenced by getGroupId().
|
protected |
Definition at line 19 of file class.ilBookingReservation.php.
Referenced by getAvailableObject(), and getId().
|
protected |
Definition at line 20 of file class.ilBookingReservation.php.
Referenced by getObjectId().
|
protected |
Definition at line 39 of file class.ilBookingReservation.php.
Referenced by getAvailableObject(), and isObjectAvailableInPeriod().
|
protected |
Definition at line 24 of file class.ilBookingReservation.php.
Referenced by getStatus().
|
protected |
Definition at line 23 of file class.ilBookingReservation.php.
Referenced by getTo().
|
protected |
Definition at line 21 of file class.ilBookingReservation.php.
Referenced by getUserId().
const ilBookingReservation::STATUS_CANCELLED = 5 |
Definition at line 34 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(), getMembersWithoutReservation(), ilBookingReservationDBRepository\getNumberOfReservations(), ilBookingReservationsTableGUI\initFilter(), isBookingPoolLimitReachedByUser(), ilBookingReservationDBRepository\preloadByContextIds(), ilBookingReservationsGUI\rsvCancel(), and ilBookingReservationsGUI\rsvCancelUser().
const ilBookingReservation::STATUS_IN_USE = 2 |
Definition at line 33 of file class.ilBookingReservation.php.
Referenced by ilBookingReservationsTableGUI\fillRow(), ilBookingReservationsTableGUI\fillRowCSV(), and ilBookingReservationsTableGUI\fillRowExcel().