ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Manages the booking storage of the preference based calculated bookings. More...
Public Member Functions | |
__construct (ilDBInterface $db=null) | |
Constructor. More... | |
getPoolsWithOverdueBooking () | |
Get pools with overdue preference booking. More... | |
storeBookings (int $pool_id, $bookings) | |
Store bookings see similar code in ilObjBookingPoolGUI::confirmedBookingObject this should got to a reservation repo/manager in the future. More... | |
getBookings (array $obj_ids) | |
Get bookings. More... | |
Protected Member Functions | |
checkProcessHash ($pool_id) | |
Semaphore like hash setting/checking to ensure that no other process is doing the same. More... | |
Protected Attributes | |
$db | |
Manages the booking storage of the preference based calculated bookings.
Definition at line 10 of file class.ilBookingPrefBaseBookGatewayRepository.php.
ilBookingPrefBasedBookGatewayRepository::__construct | ( | ilDBInterface | $db = null | ) |
|
protected |
Semaphore like hash setting/checking to ensure that no other process is doing the same.
Definition at line 60 of file class.ilBookingPrefBaseBookGatewayRepository.php.
References $db.
Referenced by storeBookings().
ilBookingPrefBasedBookGatewayRepository::getBookings | ( | array | $obj_ids | ) |
Get bookings.
array | $obj_ids |
Definition at line 120 of file class.ilBookingPrefBaseBookGatewayRepository.php.
References ilBookingReservation\getList(), and ilBookingReservation\STATUS_CANCELLED.
ilBookingPrefBasedBookGatewayRepository::getPoolsWithOverdueBooking | ( | ) |
Get pools with overdue preference booking.
Definition at line 34 of file class.ilBookingPrefBaseBookGatewayRepository.php.
References $db, and ilObjBookingPool\TYPE_NO_SCHEDULE_PREFERENCES.
ilBookingPrefBasedBookGatewayRepository::storeBookings | ( | int | $pool_id, |
$bookings | |||
) |
Store bookings see similar code in ilObjBookingPoolGUI::confirmedBookingObject this should got to a reservation repo/manager in the future.
int[][] | $bookings |
Definition at line 94 of file class.ilBookingPrefBaseBookGatewayRepository.php.
References checkProcessHash(), ilBookingReservation\getObjectReservationForUser(), and ilBookingReservation\isObjectAvailableNoSchedule().
|
protected |
Definition at line 15 of file class.ilBookingPrefBaseBookGatewayRepository.php.
Referenced by __construct(), checkProcessHash(), and getPoolsWithOverdueBooking().