| 
    ILIAS
    release_9 Revision v9.13-25-g2c18ec4c24f
    
   | 
  
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 57 of file class.ReservationDBRepository.php.
References ILIAS\BookingManager\Reservations\ReservationDBRepository\$db, $id, $ilDB, and $message.
| ILIAS\BookingManager\Reservations\ReservationDBRepository::delete | ( | int | $id | ) | 
Definition at line 115 of file class.ReservationDBRepository.php.
References ILIAS\BookingManager\Reservations\ReservationDBRepository\$db, $id, and $ilDB.
| ILIAS\BookingManager\Reservations\ReservationDBRepository::getCachedContextObjBookingInfo | ( | int | $context_obj_id | ) | 
Get context object properties info.
Definition at line 324 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.
References ILIAS\BookingManager\Reservations\ReservationDBRepository\$db, and $ilDB.
| 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 172 of file class.ReservationDBRepository.php.
References ILIAS\BookingManager\Reservations\ReservationDBRepository\$db, $ilDB, $res, ilObjUser\_lookupName(), and ilBookingReservation\STATUS_CANCELLED.
Referenced by ILIAS\BookingManager\Reservations\ReservationDBRepository\preloadByContextIds().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ILIAS\BookingManager\Reservations\ReservationDBRepository::getNewGroupId | ( | ) | 
Definition at line 128 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 138 of file class.ReservationDBRepository.php.
References ILIAS\BookingManager\Reservations\ReservationDBRepository\$db, $ilDB, $res, and ilBookingReservation\STATUS_CANCELLED.
| ILIAS\BookingManager\Reservations\ReservationDBRepository::getReservationIdsByBookingObjectId | ( | int | $booking_object_id | ) | 
Definition at line 335 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 307 of file class.ReservationDBRepository.php.
References ILIAS\BookingManager\Reservations\ReservationDBRepository\getListByDate(), ilArrayUtil\sortArray(), ilArrayUtil\stableSortArray(), and ilBookingReservation\STATUS_CANCELLED.
Referenced by ILIAS\BookingManager\Reservations\ReservationDBRepository\__construct().
 Here is the call graph for this function:
 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 89 of file class.ReservationDBRepository.php.
References ILIAS\BookingManager\Reservations\ReservationDBRepository\$db, $ilDB, and $message.
      
  | 
  protected | 
Definition at line 28 of file class.ReservationDBRepository.php.
Referenced by ILIAS\BookingManager\Reservations\ReservationDBRepository\__construct(), ILIAS\BookingManager\Reservations\ReservationDBRepository\create(), ILIAS\BookingManager\Reservations\ReservationDBRepository\delete(), ILIAS\BookingManager\Reservations\ReservationDBRepository\getForId(), ILIAS\BookingManager\Reservations\ReservationDBRepository\getListByDate(), ILIAS\BookingManager\Reservations\ReservationDBRepository\getNumberOfReservations(), and ILIAS\BookingManager\Reservations\ReservationDBRepository\update().
      
  | 
  protected | 
Definition at line 29 of file class.ReservationDBRepository.php.