protected function getItems($a_mode, ilObjectGUI $a_parent_gui) { $data = array(); if ($a_mode == ilLicenseOverviewGUI::LIC_MODE_ADMINISTRATION) { $objects = ilLicense::_getLicensedObjects(); } else { $objects = ilLicense::_getLicensedChildObjects($a_parent_gui->object->getRefId()); } foreach ($objects as $item) { $license = new ilLicense($item["obj_id"]); $remaining_licenses = $license->getLicenses() == "0" ? $this->lng->txt("arbitrary") : $license->getRemainingLicenses(); $data[] = array("title" => $item["title"], "comment" => nl2br(trim($license->getRemarks())), "existing" => $license->getLicenses(), "used" => $license->getAccesses(), "remaining" => $remaining_licenses, "potential" => $license->getPotentialAccesses(), "listGUI" => $this->getItemHTML($item)); } $this->setData($data); }