ILIAS
trunk Revision v11.0_alpha-1715-g7fc467680fb
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (?ilDBInterface $db=null) | |
getPoolsWithOverdueBooking () | |
Get pools with overdue preference booking. More... | |
hasRun ($pool_id) | |
resetRun ($pool_id) | |
storeBookings (int $pool_id, array $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) | |
Protected Member Functions | |
checkProcessHash (int $pool_id) | |
Semaphore like hash setting/checking to ensure that no other process is doing the same. More... | |
Protected Attributes | |
ilDBInterface | $db |
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 Manages the booking storage of the preference based calculated bookings
Definition at line 23 of file class.ilBookingPrefBasedBookGatewayRepository.php.
ilBookingPrefBasedBookGatewayRepository::__construct | ( | ?ilDBInterface | $db = null | ) |
Definition at line 27 of file class.ilBookingPrefBasedBookGatewayRepository.php.
|
protected |
Semaphore like hash setting/checking to ensure that no other process is doing the same.
Definition at line 63 of file class.ilBookingPrefBasedBookGatewayRepository.php.
References $db, ilDBInterface\fetchAssoc(), ilDBInterface\queryF(), and ilDBInterface\update().
Referenced by storeBookings().
ilBookingPrefBasedBookGatewayRepository::getBookings | ( | array | $obj_ids | ) |
Definition at line 142 of file class.ilBookingPrefBasedBookGatewayRepository.php.
References ilBookingReservation\getList(), and ilBookingReservation\STATUS_CANCELLED.
ilBookingPrefBasedBookGatewayRepository::getPoolsWithOverdueBooking | ( | ) |
Get pools with overdue preference booking.
Definition at line 39 of file class.ilBookingPrefBasedBookGatewayRepository.php.
References $db, ilDBInterface\fetchAssoc(), ilDBInterface\queryF(), and ilObjBookingPool\TYPE_NO_SCHEDULE_PREFERENCES.
ilBookingPrefBasedBookGatewayRepository::hasRun | ( | $pool_id | ) |
Definition at line 87 of file class.ilBookingPrefBasedBookGatewayRepository.php.
References $db, ilDBInterface\fetchAssoc(), and ilDBInterface\queryF().
ilBookingPrefBasedBookGatewayRepository::resetRun | ( | $pool_id | ) |
Definition at line 104 of file class.ilBookingPrefBasedBookGatewayRepository.php.
References $db, and ilDBInterface\update().
ilBookingPrefBasedBookGatewayRepository::storeBookings | ( | int | $pool_id, |
array | $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 120 of file class.ilBookingPrefBasedBookGatewayRepository.php.
References $user_id, checkProcessHash(), ilBookingReservation\getObjectReservationForUser(), and ilBookingReservation\isObjectAvailableNoSchedule().
|
protected |
Definition at line 25 of file class.ilBookingPrefBasedBookGatewayRepository.php.
Referenced by __construct(), checkProcessHash(), getPoolsWithOverdueBooking(), hasRun(), and resetRun().