30     protected \ilDBInterface 
$db;
    44         if (isset(self::$pool_loaded[$pool_id]) && self::$pool_loaded[$pool_id]) {
    49             "SELECT * FROM booking_object " .
    50             " WHERE pool_id = %s ORDER BY title ASC, booking_object_id ASC",
    54         self::$pool_objects[$pool_id] = [];
    56         while ($rec = $db->fetchAssoc($set)) {
    57             self::$raw_data[$rec[
"booking_object_id"]] = $rec;
    58             self::$color_number[$rec[
"booking_object_id"]] = ($cnt % self::NR_OF_COLORS) + 1;
    59             self::$pool_objects[$pool_id][] = $rec;
    62         self::$pool_loaded[$pool_id] = 
true;
    67         if (!isset(self::$raw_data[$book_obj_id])) {
    68             throw new \ilBookingPoolException(
"Data for booking object $book_obj_id not loaded.");
    70         return (
int) self::$raw_data[$book_obj_id][
"nr_of_items"];
    75         if (!isset(self::$raw_data[$book_obj_id])) {
    76             throw new \ilBookingPoolException(
"Data for booking object $book_obj_id not loaded.");
    78         return (
int) self::$color_number[$book_obj_id];
    85         return self::$pool_objects[$pool_id] ?? [];
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static array $pool_loaded
 
getObjectDataForPool(int $pool_id)
 
queryF(string $query, array $types, array $values)
 
__construct(\ilDBInterface $db)
 
loadDataOfPool(int $pool_id)
 
getColorNrForObject(int $book_obj_id)
 
Repo class for booking objects. 
 
getNrOfItemsForObject(int $book_obj_id)