|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Repo class for reservations. More...
Collaboration diagram for ilBookingReservationDBRepository:Public Member Functions | |
| __construct (ilDBInterface $db, $preload_context_obj_ids=null) | |
| Constructor. More... | |
| getForId (int $id) | |
| Get reservation data for id. More... | |
| create (int $user_id, int $assigner_id, int $object_id, $context_obj_id, int $from, int $to, $status, $group_id) | |
| Insert. More... | |
| update (int $id, int $user_id, int $assigner_id, int $object_id, $context_obj_id, int $from, int $to, $status, $group_id) | |
| Update. More... | |
| delete (int $id) | |
| Delete. More... | |
| getNewGroupId () | |
| Get next group id. More... | |
| getNumberOfReservations (array $ids, int $from, int $to, $only_not_over_yet=false) | |
| Get number of uncancelled reservations in time frame. More... | |
| getListByDate ( $a_has_schedule, array $a_object_ids=null, array $filter=null, array $a_pool_ids=null) | |
| List all reservations by date. More... | |
| getCachedContextObjBookingInfo ($context_obj_id) | |
| Get context object properties info. More... | |
Protected Member Functions | |
| preloadByContextIds ($context_obj_ids) | |
| Preload reservation information for context obj ids. More... | |
Protected Attributes | |
| $db | |
| $preloaded_by_context_list = null | |
Repo class for reservations.
Acts on tables booking_reservation (rw), booking_reservation_group (rw) and booking_object (r)
Definition at line 13 of file class.ilBookingReservationDBRepository.php.
| ilBookingReservationDBRepository::__construct | ( | ilDBInterface | $db, |
$preload_context_obj_ids = null |
|||
| ) |
Constructor.
Do not call this constructor directly, use ilBookingReservationDBRepositoryFactory instead
Definition at line 31 of file class.ilBookingReservationDBRepository.php.
References $db, and preloadByContextIds().
Here is the call graph for this function:| ilBookingReservationDBRepository::create | ( | int | $user_id, |
| int | $assigner_id, | ||
| int | $object_id, | ||
| $context_obj_id, | |||
| int | $from, | ||
| int | $to, | ||
| $status, | |||
| $group_id | |||
| ) |
Insert.
| int | $user_id | |
| int | $assigner_id | |
| int | $object_id | |
| int | $context_obj_id | |
| int | $from | |
| int | $to | |
| int | $status | |
| int | $group_id |
Definition at line 68 of file class.ilBookingReservationDBRepository.php.
| ilBookingReservationDBRepository::delete | ( | int | $id | ) |
Delete.
| int | $id |
Definition at line 138 of file class.ilBookingReservationDBRepository.php.
| ilBookingReservationDBRepository::getCachedContextObjBookingInfo | ( | $context_obj_id | ) |
Get context object properties info.
| $context_obj_id |
| ilBookingReservationException |
Definition at line 362 of file class.ilBookingReservationDBRepository.php.
| ilBookingReservationDBRepository::getForId | ( | int | $id | ) |
Get reservation data for id.
| int |
Definition at line 45 of file class.ilBookingReservationDBRepository.php.
| ilBookingReservationDBRepository::getListByDate | ( | $a_has_schedule, | |
| array | $a_object_ids = null, |
||
| array | $filter = null, |
||
| array | $a_pool_ids = null |
||
| ) |
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 203 of file class.ilBookingReservationDBRepository.php.
References $db, $ilDB, $res, ilObjUser\_lookupName(), and ilBookingReservation\STATUS_CANCELLED.
Here is the call graph for this function:| ilBookingReservationDBRepository::getNewGroupId | ( | ) |
| ilBookingReservationDBRepository::getNumberOfReservations | ( | array | $ids, |
| int | $from, | ||
| int | $to, | ||
$only_not_over_yet = false |
|||
| ) |
Get number of uncancelled reservations in time frame.
| int[] | $ids | |
| int | $from | |
| int | $to |
Definition at line 168 of file class.ilBookingReservationDBRepository.php.
References $db, $ilDB, $res, and ilBookingReservation\STATUS_CANCELLED.
|
protected |
Preload reservation information for context obj ids.
| int[] | $context_obj_ids |
Definition at line 341 of file class.ilBookingReservationDBRepository.php.
References Vendor\Package\$f, ilUtil\sortArray(), ilUtil\stableSortArray(), and ilBookingReservation\STATUS_CANCELLED.
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBookingReservationDBRepository::update | ( | int | $id, |
| int | $user_id, | ||
| int | $assigner_id, | ||
| int | $object_id, | ||
| $context_obj_id, | |||
| int | $from, | ||
| int | $to, | ||
| $status, | |||
| $group_id | |||
| ) |
Update.
| int | $id | |
| int | $user_id | |
| int | $assigner_id | |
| int | $object_id | |
| int | $context_obj_id | |
| int | $from | |
| int | $to | |
| int | $status | |
| int | $group_id |
Definition at line 109 of file class.ilBookingReservationDBRepository.php.
|
protected |
Definition at line 18 of file class.ilBookingReservationDBRepository.php.
Referenced by __construct(), create(), delete(), getForId(), getListByDate(), getNewGroupId(), getNumberOfReservations(), and update().
|
protected |
Definition at line 23 of file class.ilBookingReservationDBRepository.php.