ILIAS
Release_4_1_x_branch Revision 61804
|
a booking reservation More...
Public Member Functions | |
__construct ($a_id=NULL) | |
Constructor. | |
getId () | |
Get id. | |
setObjectId ($a_object_id) | |
Set object id. | |
getObjectId () | |
Get object id. | |
setUserId ($a_user_id) | |
Set user type id. | |
getUserId () | |
Get booking user id. | |
setFrom ($a_from) | |
Set booking from date. | |
getFrom () | |
Get booking from date. | |
setTo ($a_to) | |
Set booking to date. | |
getTo () | |
Get booking to date. | |
setStatus ($a_status) | |
Set booking status. | |
getStatus () | |
Get booking status. | |
save () | |
Create new entry in db. | |
update () | |
Update entry in db. | |
delete () | |
Delete single entry. |
Static Public Member Functions | |
static | isValidStatus ($a_status) |
Check if given status is valid. | |
static | getAvailableObject (array $a_ids, $a_from, $a_to) |
Check if any of given objects are bookable. | |
static | getCurrentOrUpcomingReservation ($a_object_id) |
Get details about object reservation. | |
static | getList ($a_object_ids, $a_limit=10, $a_offset=0, array $filter) |
List all reservations. | |
static | changeStatus (array $a_ids, $a_status) |
Batch update reservation status. |
Data Fields | |
const | STATUS_IN_USE = 2 |
const | STATUS_CANCELLED = 5 |
Protected Member Functions | |
read () | |
Get dataset from db. |
Protected Attributes | |
$id | |
$object_id | |
$user_id | |
$from | |
$to | |
$status |
ilBookingReservation::__construct | ( | $a_id = NULL | ) |
Constructor.
if id is given will read dataset from db
int | $a_id |
Definition at line 31 of file class.ilBookingReservation.php.
References read().
|
static |
Batch update reservation status.
array | $a_ids | |
int | $a_status |
Definition at line 374 of file class.ilBookingReservation.php.
References $ilDB.
Referenced by ilObjBookingPoolGUI\changeStatusObject().
ilBookingReservation::delete | ( | ) |
Delete single entry.
Definition at line 235 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 |
Definition at line 253 of file class.ilBookingReservation.php.
References $from, $ilDB, $row, and $to.
Referenced by ilObjBookingPoolGUI\buildDatesBySchedule(), and ilObjBookingPoolGUI\confirmedBookingObject().
|
static |
Get details about object reservation.
int | $a_object_id |
Definition at line 284 of file class.ilBookingReservation.php.
Referenced by ilBookingObjectsTableGUI\fillRow().
ilBookingReservation::getFrom | ( | ) |
Get booking from date.
Definition at line 95 of file class.ilBookingReservation.php.
References $from.
Referenced by save().
ilBookingReservation::getId | ( | ) |
|
static |
List all reservations.
array | $a_object_ids | |
int | $a_limit | |
int | $a_offset | |
array | $a_offset |
Definition at line 310 of file class.ilBookingReservation.php.
References $ilDB, $res, and $row.
Referenced by ilBookingReservationsTableGUI\getItems().
ilBookingReservation::getObjectId | ( | ) |
Get object id.
Definition at line 59 of file class.ilBookingReservation.php.
References $object_id.
Referenced by save(), and update().
ilBookingReservation::getStatus | ( | ) |
Get booking status.
Definition at line 138 of file class.ilBookingReservation.php.
References $status.
Referenced by save(), and update().
ilBookingReservation::getTo | ( | ) |
Get booking to date.
Definition at line 113 of file class.ilBookingReservation.php.
References $to.
Referenced by save().
ilBookingReservation::getUserId | ( | ) |
Get booking user id.
Definition at line 77 of file class.ilBookingReservation.php.
References $user_id.
Referenced by save().
|
static |
Check if given status is valid.
int | $a_status |
Definition at line 148 of file class.ilBookingReservation.php.
Referenced by setStatus().
|
protected |
Get dataset from db.
Definition at line 160 of file class.ilBookingReservation.php.
References $ilDB, $row, setFrom(), setObjectId(), setStatus(), setTo(), and setUserId().
Referenced by __construct().
ilBookingReservation::save | ( | ) |
Create new entry in db.
Definition at line 182 of file class.ilBookingReservation.php.
References $ilDB, getFrom(), getObjectId(), getStatus(), getTo(), and getUserId().
ilBookingReservation::setFrom | ( | $a_from | ) |
Set booking from date.
int | $a_from |
Definition at line 86 of file class.ilBookingReservation.php.
Referenced by read().
ilBookingReservation::setObjectId | ( | $a_object_id | ) |
Set object id.
int | $a_object_id |
Definition at line 50 of file class.ilBookingReservation.php.
Referenced by read().
ilBookingReservation::setStatus | ( | $a_status | ) |
Set booking status.
int | $a_status |
Definition at line 122 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 104 of file class.ilBookingReservation.php.
Referenced by read().
ilBookingReservation::setUserId | ( | $a_user_id | ) |
Set user type id.
int | $a_user_id |
Definition at line 68 of file class.ilBookingReservation.php.
Referenced by read().
ilBookingReservation::update | ( | ) |
Update entry in db.
Definition at line 204 of file class.ilBookingReservation.php.
References $ilDB, getObjectId(), and getStatus().
|
protected |
Definition at line 17 of file class.ilBookingReservation.php.
Referenced by getAvailableObject(), and getFrom().
|
protected |
Definition at line 14 of file class.ilBookingReservation.php.
Referenced by 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(), and getTo().
|
protected |
Definition at line 16 of file class.ilBookingReservation.php.
Referenced by getUserId().
const ilBookingReservation::STATUS_CANCELLED = 5 |
Definition at line 22 of file class.ilBookingReservation.php.
Referenced by ilCalendarAppointmentGUI\cancelConfirmed(), ilBookingObjectsTableGUI\fillRow(), ilBookingReservationsTableGUI\fillRow(), ilBookingReservationsTableGUI\initFilter(), and ilObjBookingPoolGUI\rsvCancelObject().
const ilBookingReservation::STATUS_IN_USE = 2 |
Definition at line 21 of file class.ilBookingReservation.php.
Referenced by ilBookingObjectsTableGUI\fillRow(), ilBookingReservationsTableGUI\fillRow(), ilBookingReservationsTableGUI\initFilter(), and ilObjBookingPoolGUI\rsvInUseObject().