36 foreach (
$repo->getCachedContextObjBookingInfo($obj_id) as $item) {
38 $info[$item[
"pool_id"]][
"object"][$item[
"obj_id"]][
"title"] = $item[
"title"];
39 $info[$item[
"pool_id"]][
"object"][$item[
"obj_id"]][
"bookings"][] =
42 foreach ($info as $pool) {
44 foreach ($pool[
"object"] as $o) {
45 $val .= $o[
"title"] .
": " . implode(
", ", $o[
"bookings"]);
47 $props[] = array(
"alert" =>
false,
"property" => $pool[
"title"],
"value" => $val);
static _lookupTitle($a_id)
lookup object title
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
Repo class for reservations.
Get list item properties for booking info.
appendProperties($obj_id, $props)
Get booking info properties.
__construct(ilBookingReservationDBRepository $repo=null)
Constructor.