|
ILIAS
release_8 Revision v8.25-1-g13de6a5eca6
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilBookingReservationDBRepository:Public Member Functions | |
| __construct (ilDBInterface $db, ?array $preload_context_obj_ids=null) | |
| Do not call this constructor directly, use ilBookingReservationDBRepositoryFactory instead. More... | |
| getForId (int $id) | |
| Get reservation data for id. More... | |
| create (int $user_id, int $assigner_id, int $object_id, int $context_obj_id, int $from, int $to, int $status, int $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) | |
| delete (int $id) | |
| getNewGroupId () | |
| getNumberOfReservations (array $ids, int $from, int $to, bool $only_not_over_yet=false) | |
| Get number of uncancelled reservations in time frame. More... | |
| getListByDate (bool $a_has_schedule, array $a_object_ids=null, array $filter=null, array $a_pool_ids=null) | |
| List all reservations by date. More... | |
| getCachedContextObjBookingInfo (int $context_obj_id) | |
| Get context object properties info. More... | |
| getReservationIdsByBookingObjectId (int $booking_object_id) | |
Protected Member Functions | |
| preloadByContextIds (array $context_obj_ids) | |
| Preload reservation information for context obj ids. More... | |
Protected Attributes | |
| ilDBInterface | $db |
| array | $preloaded_by_context_list = null |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Repo class for reservations Acts on tables booking_reservation (rw), booking_reservation_group (rw) and booking_object (r)
Definition at line 24 of file class.ilBookingReservationDBRepository.php.
| ilBookingReservationDBRepository::__construct | ( | ilDBInterface | $db, |
| ?array | $preload_context_obj_ids = null |
||
| ) |
Do not call this constructor directly, use ilBookingReservationDBRepositoryFactory instead.
Definition at line 33 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, | ||
| int | $context_obj_id, | ||
| int | $from, | ||
| int | $to, | ||
| int | $status, | ||
| int | $group_id | ||
| ) |
Definition at line 59 of file class.ilBookingReservationDBRepository.php.
| ilBookingReservationDBRepository::delete | ( | int | $id | ) |
Definition at line 113 of file class.ilBookingReservationDBRepository.php.
| ilBookingReservationDBRepository::getCachedContextObjBookingInfo | ( | int | $context_obj_id | ) |
Get context object properties info.
| ilBookingReservationException |
Definition at line 321 of file class.ilBookingReservationDBRepository.php.
| ilBookingReservationDBRepository::getForId | ( | int | $id | ) |
Get reservation data for id.
Definition at line 47 of file class.ilBookingReservationDBRepository.php.
| ilBookingReservationDBRepository::getListByDate | ( | bool | $a_has_schedule, |
| array | $a_object_ids = null, |
||
| array | $filter = null, |
||
| array | $a_pool_ids = null |
||
| ) |
List all reservations by date.
Definition at line 170 of file class.ilBookingReservationDBRepository.php.
| ilBookingReservationDBRepository::getNewGroupId | ( | ) |
Definition at line 126 of file class.ilBookingReservationDBRepository.php.
| ilBookingReservationDBRepository::getNumberOfReservations | ( | array | $ids, |
| int | $from, | ||
| int | $to, | ||
| bool | $only_not_over_yet = false |
||
| ) |
Get number of uncancelled reservations in time frame.
| int[] | $ids | booking object ids |
Definition at line 136 of file class.ilBookingReservationDBRepository.php.
References $res.
| ilBookingReservationDBRepository::getReservationIdsByBookingObjectId | ( | int | $booking_object_id | ) |
Definition at line 332 of file class.ilBookingReservationDBRepository.php.
References ILIAS\Repository\int().
Here is the call graph for this function:
|
protected |
Preload reservation information for context obj ids.
| int[] | $context_obj_ids |
Definition at line 302 of file class.ilBookingReservationDBRepository.php.
Referenced by __construct().
Here is the caller graph for this function:| ilBookingReservationDBRepository::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 89 of file class.ilBookingReservationDBRepository.php.
|
protected |
Definition at line 26 of file class.ilBookingReservationDBRepository.php.
Referenced by __construct(), and getForId().
|
protected |
Definition at line 27 of file class.ilBookingReservationDBRepository.php.