|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
a booking reservation More...
Collaboration diagram for ilBookingReservation: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... | |
| 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 | getNewGroupId () |
| Get next group id. 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 | getListByDate ( $a_has_schedule, array $a_object_ids=null, array $filter=null, array $a_pool_ids=null) |
| List all reservations by date. More... | |
| static | getUserFilter (array $a_object_ids) |
| Get all users who have reservations for object(s) More... | |
| static | changeStatus (array $a_ids, $a_status) |
| List all reservations. 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 | |
| ilBookingReservation::__construct | ( | $a_id = null | ) |
Constructor.
if id is given will read dataset from db
| int | $a_id |
Definition at line 38 of file class.ilBookingReservation.php.
Here is the call graph for this function:
|
static |
List all reservations.
| array | $a_object_ids | |
| int | $a_limit | |
| int | $a_offset | |
| array | $filter | |
| array | $a_group_id |
| array | $a_ids | |
| int | $a_status |
Definition at line 1062 of file class.ilBookingReservation.php.
Referenced by ilObjBookingPoolGUI\changeStatusObject().
Here is the caller graph for this function:| ilBookingReservation::delete | ( | ) |
Delete single entry.
Definition at line 285 of file class.ilBookingReservation.php.
| ilBookingReservation::getAssignerId | ( | ) |
Get assigner user id.
Definition at line 105 of file class.ilBookingReservation.php.
References $assigner_id.
|
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 $DIC, $from, $id, $ilDB, $row, $to, ilBookingObject\getNrOfItemsForObjects(), IL_CAL_DATE, and IL_CAL_UNIX.
Referenced by ilObjBookingPoolGUI\buildDatesBySchedule(), ilObjBookingPoolGUI\confirmedBookingNumbersObject(), and ilObjBookingPoolGUI\confirmedBookingObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBookingReservation::getCalendarEntry | ( | ) |
Definition at line 1075 of file class.ilBookingReservation.php.
References $db, $ilDB, $row, 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 1102 of file class.ilBookingReservation.php.
References $DIC, $ilDB, $res, and $row.
Referenced by ilObjBookingPoolGUI\rsvConfirmCancelObject(), and ilObjBookingPoolGUI\rsvConfirmDeleteObject().
Here is the caller graph for this function:
|
static |
Get details about object reservation.
| int | $a_object_id |
Definition at line 548 of file class.ilBookingReservation.php.
| ilBookingReservation::getFrom | ( | ) |
Get booking from date.
Definition at line 123 of file class.ilBookingReservation.php.
References $from.
| ilBookingReservation::getGroupId | ( | ) |
Get group id.
Definition at line 195 of file class.ilBookingReservation.php.
References $group_id.
| ilBookingReservation::getId | ( | ) |
|
static |
List all reservations.
| array | $a_object_ids | |
| int | $a_limit | |
| int | $a_offset | |
| array | $a_offset |
Definition at line 599 of file class.ilBookingReservation.php.
References $DIC, $ilDB, $res, and $row.
Referenced by ilBookingObjectsTableGUI\getItems().
Here is the caller graph for this function:
|
static |
List all reservations by date.
| bool | $a_has_schedule | has schedule |
| array | $a_object_ids | object ids |
| array | $filter | filter |
| array | $a_pool_ids | pool ids |
Definition at line 657 of file class.ilBookingReservation.php.
References $DIC, $ilDB, $res, $row, $user_id, ilObjUser\_lookupName(), and STATUS_CANCELLED.
Referenced by ilBookingReservationsTableGUI\getItems(), and ilBookCronNotification\sendNotifications().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 486 of file class.ilBookingReservation.php.
References $DIC, $ilDB, $query, $res, $row, ilBookingObject\lookupPoolId(), and STATUS_CANCELLED.
Referenced by ilBookingParticipant\getAssignableParticipants().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get next group id.
Definition at line 299 of file class.ilBookingReservation.php.
Referenced by ilObjBookingPoolGUI\confirmedBookingObject().
Here is the caller graph for this function:
|
static |
Definition at line 523 of file class.ilBookingReservation.php.
References $DIC, $ilDB, and ilBookingObject\getNrOfItemsForObjects().
Referenced by isObjectAvailableNoSchedule(), and numAvailableFromObjectNoSchedule().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBookingReservation::getObjectId | ( | ) |
Get object id.
Definition at line 69 of file class.ilBookingReservation.php.
References $object_id.
|
static |
Definition at line 568 of file class.ilBookingReservation.php.
References $DIC, $ilDB, $res, and $row.
Referenced by ilObjBookingPoolGUI\confirmedBookingObject(), ilBookingObjectGUI\deliverPostFile(), ilBookingObjectGUI\displayPostInfo(), ilBookingAssignObjectsTableGUI\getItems(), ilBookingParticipant\isParticipantAssigned(), and ilBookingObjectGUI\rsvCancelUser().
Here is the caller graph for this function:| ilBookingReservation::getStatus | ( | ) |
Get booking status.
Definition at line 164 of file class.ilBookingReservation.php.
References $status.
| ilBookingReservation::getTo | ( | ) |
Get booking to date.
Definition at line 141 of file class.ilBookingReservation.php.
References $to.
|
static |
Get all users who have reservations for object(s)
| array | $a_object_ids |
Definition at line 785 of file class.ilBookingReservation.php.
References $DIC, $ilDB, $res, and $row.
Referenced by ilBookingReservationsTableGUI\initFilter().
Here is the caller graph for this function:| ilBookingReservation::getUserId | ( | ) |
Get booking user id.
Definition at line 87 of file class.ilBookingReservation.php.
References $user_id.
|
static |
Definition at line 468 of file class.ilBookingReservation.php.
References $DIC, $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_ASSOC, ilBookingObject\getObjectsForPool(), and STATUS_CANCELLED.
Referenced by ilBookingParticipant\getAssignableParticipants().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 383 of file class.ilBookingReservation.php.
References $DIC, $from, $ilDB, $map, $row, $to, ilBookingSchedule\getAvailabilityFrom(), ilBookingSchedule\getAvailabilityTo(), ilBookingSchedule\getDefinition(), ilBookingObject\getNrOfItemsForObjects(), IL_CAL_DATE, and IL_CAL_UNIX.
Referenced by ilBookingObjectsTableGUI\getItems().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 512 of file class.ilBookingReservation.php.
References getNumAvailablesNoSchedule().
Referenced by ilObjBookingPoolGUI\confirmedBookingObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Check if given status is valid.
| int | $a_status |
Definition at line 174 of file class.ilBookingReservation.php.
Referenced by setStatus().
Here is the caller graph for this function:
|
static |
Definition at line 517 of file class.ilBookingReservation.php.
References getNumAvailablesNoSchedule().
Referenced by ilBookingAssignParticipantsTableGUI\__construct(), ilObjBookingPoolGUI\bookMultipleParticipantsObject(), and ilBookingAssignObjectsTableGUI\getItems().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Get dataset from db.
Definition at line 203 of file class.ilBookingReservation.php.
References $db, $ilDB, $row, setAssignerId(), 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 | ( | ) |
Create new entry in db.
Definition at line 226 of file class.ilBookingReservation.php.
| ilBookingReservation::setAssignerId | ( | $a_assigner_id | ) |
Set assigner user id.
| $a_assigner_id |
Definition at line 96 of file class.ilBookingReservation.php.
Referenced by read().
Here is the caller graph for this function:| ilBookingReservation::setFrom | ( | $a_from | ) |
Set booking from date.
| int | $a_from |
Definition at line 114 of file class.ilBookingReservation.php.
Referenced by read().
Here is the caller graph for this function:| ilBookingReservation::setGroupId | ( | $a_group_id | ) |
Set group id.
| int | $a_group_id |
Definition at line 186 of file class.ilBookingReservation.php.
Referenced by read().
Here is the caller graph for this function:| ilBookingReservation::setObjectId | ( | $a_object_id | ) |
Set object id.
| int | $a_object_id |
Definition at line 60 of file class.ilBookingReservation.php.
Referenced by read().
Here is the caller graph for this function:| ilBookingReservation::setStatus | ( | $a_status | ) |
Set booking status.
| int | $a_status |
Definition at line 150 of file class.ilBookingReservation.php.
References isValidStatus().
Referenced by read().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBookingReservation::setTo | ( | $a_to | ) |
Set booking to date.
| int | $a_to |
Definition at line 132 of file class.ilBookingReservation.php.
Referenced by read().
Here is the caller graph for this function:| ilBookingReservation::setUserId | ( | $a_user_id | ) |
Set booking user id.
| int | $a_user_id |
Definition at line 78 of file class.ilBookingReservation.php.
Referenced by read().
Here is the caller graph for this function:| ilBookingReservation::update | ( | ) |
Update entry in db.
Definition at line 252 of file class.ilBookingReservation.php.
|
protected |
Definition at line 26 of file class.ilBookingReservation.php.
Referenced by getAssignerId().
|
protected |
Definition at line 17 of file class.ilBookingReservation.php.
Referenced by delete(), getCalendarEntry(), read(), save(), and update().
|
protected |
Definition at line 22 of file class.ilBookingReservation.php.
Referenced by getAvailableObject(), getFrom(), and isObjectAvailableInPeriod().
|
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 24 of file class.ilBookingReservation.php.
Referenced by getStatus().
|
protected |
Definition at line 23 of file class.ilBookingReservation.php.
Referenced by getAvailableObject(), getTo(), and isObjectAvailableInPeriod().
|
protected |
Definition at line 21 of file class.ilBookingReservation.php.
Referenced by getListByDate(), and getUserId().
| const ilBookingReservation::STATUS_CANCELLED = 5 |
Definition at line 29 of file class.ilBookingReservation.php.
Referenced by ilCalendarAppointmentGUI\cancelConfirmed(), ilBookingObjectsTableGUI\fillRow(), ilBookingReservationsTableGUI\fillRow(), ilBookingReservationsTableGUI\fillRowCSV(), ilBookingReservationsTableGUI\fillRowExcel(), ilBookingReservationsTableGUI\getCurrentFilter(), ilBookingObjectsTableGUI\getItems(), ilBookingParticipant\getList(), getListByDate(), getMembersWithoutReservation(), ilBookingReservationsTableGUI\initFilter(), isBookingPoolLimitReachedByUser(), ilObjBookingPoolGUI\rsvCancelObject(), and ilBookingObjectGUI\rsvCancelUser().
| const ilBookingReservation::STATUS_IN_USE = 2 |
Definition at line 28 of file class.ilBookingReservation.php.
Referenced by ilBookingReservationsTableGUI\fillRow(), ilBookingReservationsTableGUI\fillRowCSV(), ilBookingReservationsTableGUI\fillRowExcel(), and ilObjBookingPoolGUI\rsvInUseObject().