|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Repo class for reservations Acts on tables booking_reservation (rw), booking_reservation_group (rw) and booking_object (r) More...
Collaboration diagram for ILIAS\BookingManager\Reservations\ReservationDBRepository:Public Member Functions | |
| __construct (\ilDBInterface $db, ?array $preload_context_obj_ids=null) | |
| 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, string $message="") | |
| 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, string $message="") | |
| 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 |
Repo class for reservations Acts on tables booking_reservation (rw), booking_reservation_group (rw) and booking_object (r)
Definition at line 26 of file class.ReservationDBRepository.php.
| ILIAS\BookingManager\Reservations\ReservationDBRepository::__construct | ( | \ilDBInterface | $db, |
| ?array | $preload_context_obj_ids = null |
||
| ) |
Definition at line 31 of file class.ReservationDBRepository.php.
References ILIAS\BookingManager\Reservations\ReservationDBRepository\$db, and ILIAS\BookingManager\Reservations\ReservationDBRepository\preloadByContextIds().
Here is the call graph for this function:| ILIAS\BookingManager\Reservations\ReservationDBRepository::create | ( | int | $user_id, |
| int | $assigner_id, | ||
| int | $object_id, | ||
| int | $context_obj_id, | ||
| int | $from, | ||
| int | $to, | ||
| int | $status, | ||
| int | $group_id, | ||
| string | $message = "" |
||
| ) |
Definition at line 56 of file class.ReservationDBRepository.php.
| ILIAS\BookingManager\Reservations\ReservationDBRepository::delete | ( | int | $id | ) |
| ILIAS\BookingManager\Reservations\ReservationDBRepository::getCachedContextObjBookingInfo | ( | int | $context_obj_id | ) |
Get context object properties info.
Definition at line 323 of file class.ReservationDBRepository.php.
| ILIAS\BookingManager\Reservations\ReservationDBRepository::getForId | ( | int | $id | ) |
Get reservation data for id.
Definition at line 45 of file class.ReservationDBRepository.php.
| ILIAS\BookingManager\Reservations\ReservationDBRepository::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 171 of file class.ReservationDBRepository.php.
| ILIAS\BookingManager\Reservations\ReservationDBRepository::getNewGroupId | ( | ) |
Definition at line 127 of file class.ReservationDBRepository.php.
| ILIAS\BookingManager\Reservations\ReservationDBRepository::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 137 of file class.ReservationDBRepository.php.
References $res.
| ILIAS\BookingManager\Reservations\ReservationDBRepository::getReservationIdsByBookingObjectId | ( | int | $booking_object_id | ) |
Definition at line 334 of file class.ReservationDBRepository.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 306 of file class.ReservationDBRepository.php.
Referenced by ILIAS\BookingManager\Reservations\ReservationDBRepository\__construct().
Here is the caller graph for this function:| ILIAS\BookingManager\Reservations\ReservationDBRepository::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, | ||
| string | $message = "" |
||
| ) |
Definition at line 88 of file class.ReservationDBRepository.php.
|
protected |
Definition at line 28 of file class.ReservationDBRepository.php.
Referenced by ILIAS\BookingManager\Reservations\ReservationDBRepository\__construct().
|
protected |
Definition at line 29 of file class.ReservationDBRepository.php.