ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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... | |
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 | isObjectAvailableNoSchedule ($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, array $filter=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 | |
$id | |
$object_id | |
$user_id | |
$from | |
$to | |
$status | |
$group_id | |
ilBookingReservation::__construct | ( | $a_id = NULL | ) |
Constructor.
if id is given will read dataset from db
int | $a_id |
Definition at line 32 of file class.ilBookingReservation.php.
References read().
|
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 1012 of file class.ilBookingReservation.php.
References $ilDB.
Referenced by ilObjBookingPoolGUI\changeStatusObject().
ilBookingReservation::delete | ( | ) |
Delete single entry.
Definition at line 261 of file class.ilBookingReservation.php.
References $ilDB.
|
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 291 of file class.ilBookingReservation.php.
References $counter, $from, $id, $ilDB, $row, $to, array, ilBookingSchedule\getAvailabilityFrom(), ilBookingObject\getNrOfItemsForObjects(), IL_CAL_DATE, and IL_CAL_UNIX.
Referenced by ilObjBookingPoolGUI\buildDatesBySchedule(), ilObjBookingPoolGUI\confirmedBookingNumbersObject(), and ilObjBookingPoolGUI\confirmedBookingObject().
ilBookingReservation::getCalendarEntry | ( | ) |
Definition at line 1025 of file class.ilBookingReservation.php.
References $ilDB, $row, 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 1052 of file class.ilBookingReservation.php.
References $ilDB, $res, $row, and array.
Referenced by ilObjBookingPoolGUI\rsvConfirmCancelObject().
|
static |
Get details about object reservation.
int | $a_object_id |
Definition at line 478 of file class.ilBookingReservation.php.
References $ilDB, $row, and time.
ilBookingReservation::getFrom | ( | ) |
Get booking from date.
Definition at line 96 of file class.ilBookingReservation.php.
References $from.
Referenced by save().
ilBookingReservation::getGroupId | ( | ) |
Get group id.
Definition at line 171 of file class.ilBookingReservation.php.
References $group_id.
Referenced by save().
ilBookingReservation::getId | ( | ) |
Get id.
Definition at line 42 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 529 of file class.ilBookingReservation.php.
References $counter, $ilDB, $res, $row, and array.
Referenced by ilBookingObjectsTableGUI\getItems().
|
static |
List all reservations by date.
bool | $a_has_schedule | |
array | $a_object_ids | |
string | $a_order_field | |
string | $a_order_direction | |
int | $a_offset | |
int | $a_limit | |
array | $filter |
Definition at line 596 of file class.ilBookingReservation.php.
References $ilDB, $res, $row, $user_id, ilObjUser\_lookupName(), array, date, and time.
Referenced by ilBookingReservationsTableGUI\getItems().
|
static |
Get next group id.
Definition at line 276 of file class.ilBookingReservation.php.
References $ilDB.
Referenced by ilObjBookingPoolGUI\confirmedBookingObject().
ilBookingReservation::getObjectId | ( | ) |
Get object id.
Definition at line 60 of file class.ilBookingReservation.php.
References $object_id.
Referenced by save().
|
static |
Definition at line 496 of file class.ilBookingReservation.php.
References $ilDB, $res, $row, and array.
Referenced by ilObjBookingPoolGUI\confirmedBookingObject(), ilBookingObjectGUI\deliverPostFile(), ilBookingObjectGUI\displayPostInfo(), and ilBookingObjectGUI\rsvCancelUser().
ilBookingReservation::getStatus | ( | ) |
Get booking status.
Definition at line 139 of file class.ilBookingReservation.php.
References $status.
Referenced by save().
ilBookingReservation::getTo | ( | ) |
Get booking to date.
Definition at line 114 of file class.ilBookingReservation.php.
References $to.
Referenced by save().
|
static |
Get all users who have reservations for object(s)
array | $a_object_ids |
Definition at line 736 of file class.ilBookingReservation.php.
References $ilDB, $res, $row, and array.
Referenced by ilBookingReservationsTableGUI\initFilter().
ilBookingReservation::getUserId | ( | ) |
Get booking user id.
Definition at line 78 of file class.ilBookingReservation.php.
References $user_id.
Referenced by save().
|
static |
Definition at line 371 of file class.ilBookingReservation.php.
References $from, $ilDB, $row, $to, array, date, ilBookingSchedule\getAvailabilityFrom(), ilBookingSchedule\getAvailabilityTo(), ilBookingSchedule\getDefinition(), ilBookingObject\getNrOfItemsForObjects(), IL_CAL_DATE, IL_CAL_UNIX, and time.
Referenced by ilBookingObjectsTableGUI\getItems().
|
static |
Definition at line 455 of file class.ilBookingReservation.php.
References $ilDB, array, and ilBookingObject\getNrOfItemsForObjects().
Referenced by ilObjBookingPoolGUI\confirmedBookingObject().
|
static |
Check if given status is valid.
int | $a_status |
Definition at line 149 of file class.ilBookingReservation.php.
References array.
Referenced by setStatus().
|
protected |
Get dataset from db.
Definition at line 179 of file class.ilBookingReservation.php.
References $ilDB, $row, setFrom(), setGroupId(), setObjectId(), setStatus(), setTo(), and setUserId().
Referenced by __construct().
ilBookingReservation::save | ( | ) |
Create new entry in db.
Definition at line 202 of file class.ilBookingReservation.php.
References $ilDB, getFrom(), getGroupId(), getObjectId(), getStatus(), getTo(), and getUserId().
ilBookingReservation::setFrom | ( | $a_from | ) |
Set booking from date.
int | $a_from |
Definition at line 87 of file class.ilBookingReservation.php.
Referenced by read().
ilBookingReservation::setGroupId | ( | $a_group_id | ) |
Set group id.
int | $a_group_id |
Definition at line 162 of file class.ilBookingReservation.php.
Referenced by read().
ilBookingReservation::setObjectId | ( | $a_object_id | ) |
Set object id.
int | $a_object_id |
Definition at line 51 of file class.ilBookingReservation.php.
Referenced by read().
ilBookingReservation::setStatus | ( | $a_status | ) |
Set booking status.
int | $a_status |
Definition at line 123 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 105 of file class.ilBookingReservation.php.
References to.
Referenced by read().
ilBookingReservation::setUserId | ( | $a_user_id | ) |
Set booking user id.
int | $a_user_id |
Definition at line 69 of file class.ilBookingReservation.php.
Referenced by read().
ilBookingReservation::update | ( | ) |
Update entry in db.
Definition at line 228 of file class.ilBookingReservation.php.
References $ilDB.
|
protected |
Definition at line 17 of file class.ilBookingReservation.php.
Referenced by getAvailableObject(), getFrom(), and isObjectAvailableInPeriod().
|
protected |
Definition at line 20 of file class.ilBookingReservation.php.
Referenced by getGroupId().
|
protected |
Definition at line 14 of file class.ilBookingReservation.php.
Referenced by getAvailableObject(), and getId().
|
protected |
Definition at line 15 of file class.ilBookingReservation.php.
Referenced by getObjectId().
|
protected |
Definition at line 19 of file class.ilBookingReservation.php.
Referenced by getStatus().
|
protected |
Definition at line 18 of file class.ilBookingReservation.php.
Referenced by getAvailableObject(), getTo(), and isObjectAvailableInPeriod().
|
protected |
Definition at line 16 of file class.ilBookingReservation.php.
Referenced by getListByDate(), and getUserId().
const ilBookingReservation::STATUS_CANCELLED = 5 |
Definition at line 23 of file class.ilBookingReservation.php.
Referenced by ilCalendarAppointmentGUI\cancelConfirmed(), ilBookingObjectsTableGUI\fillRow(), ilBookingReservationsTableGUI\fillRow(), ilBookingReservationsTableGUI\fillRowCSV(), ilBookingReservationsTableGUI\fillRowExcel(), ilBookingReservationsTableGUI\getCurrentFilter(), ilBookingObjectsTableGUI\getItems(), ilBookingReservationsTableGUI\initFilter(), ilObjBookingPoolGUI\rsvCancelObject(), and ilBookingObjectGUI\rsvCancelUser().
const ilBookingReservation::STATUS_IN_USE = 2 |
Definition at line 22 of file class.ilBookingReservation.php.
Referenced by ilBookingReservationsTableGUI\fillRow(), ilBookingReservationsTableGUI\fillRowCSV(), ilBookingReservationsTableGUI\fillRowExcel(), and ilObjBookingPoolGUI\rsvInUseObject().