/** * Gather data and build rows * @param array $filter */ function getItems(array $filter) { global $ilUser; $this->determineOffsetAndOrder(); if (!$filter["object"]) { $ids = array_keys($this->objects); } else { $ids = array($filter["object"]); } if (!$this->show_all) { $filter["user_id"] = $ilUser->getId(); } include_once "Modules/BookingManager/classes/class.ilBookingReservation.php"; $data = ilBookingReservation::getListByDate($this->has_schedule, $ids, $this->getOrderField(), $this->getOrderDirection(), $this->getOffset(), $this->getLimit(), $filter); $this->setData($data['data']); $this->setMaxCount($data['counter']); }