1 <?php declare(strict_types=1);
    39         $this->object_repo = $repo->
objects();
    40         $this->object_repo->loadDataOfPool($pool_id);
    46         return $this->object_repo->getNrOfItemsForObject($book_obj_id);
    52         foreach ($this->object_repo->getObjectDataForPool($this->pool_id) as 
$d) {
    53             $titles[
$d[
"booking_object_id"]] = $d[
"title"];
    60         return array_map(
static function (
$d) {
    61             return (
int) 
$d[
"booking_object_id"];
    62         }, $this->object_repo->getObjectDataForPool($this->pool_id));
    67         return $this->object_repo->getColorNrForObject($book_obj_id);
    72         $rows = explode(
"\n", $input);
    74         foreach ($rows as $row) {
    75             $cells = explode(
";", $row);
    76             if (count($cells) === 1) {
    77                 $cells = explode(
"\t", $row);
    80                 "title" => trim($cells[0] ?? 
""),
    81                 "description" => trim($cells[1] ?? 
""),
    82                 "nr" => trim($cells[2] ?? 
""),
    91             $object = new \ilBookingObject();
    92             $object->setTitle($data[
"title"]);
    93             $object->setDescription($data[
"description"]);
    94             $object->setNrOfItems((
int) $data[
"nr"]);
    95             $object->setPoolId($this->pool_id);
    96             if ($schedule_id > 0) {
    97                 $object->setScheduleId($schedule_id);
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
__construct(InternalDataService $data, InternalRepoService $repo, InternalDomainService $domain, int $pool_id)
 
getColorNrForObject(int $book_obj_id)
 
InternalRepoService $repo
 
InternalDomainService $domain
 
getNrOfItemsForObject(int $book_obj_id)
 
Repository internal repo service. 
 
createObjectsFromBulkInputString(string $input, int $schedule_id)
 
InternalDataService $data
 
Repository internal data service. 
 
ObjectsDBRepository $object_repo
 
getDataArrayFromInputString(string $input)
 
Repo class for booking objects.