3 require_once(
"./Services/Object/classes/class.ilObjectGUI.php");
4 require_once(
"./Modules/Bibliographic/classes/Admin/class.ilObjBibliographicAdminLibrariesFormGUI.php");
5 require_once(
"./Modules/Bibliographic/classes/Admin/class.ilObjBibliographicAdminTableGUI.php");
6 require_once(
"./Modules/Bibliographic/classes/Admin/class.ilBibliographicSetting.php");
7 require_once(
"./Services/UIComponent/Button/classes/class.ilLinkButton.php");
54 $cmd = $ilCtrl->getCmd();
86 public function view() {
92 $b->setCaption(
'add');
93 $b->setUrl($this->ctrl->getLinkTarget($this,
'add'));
95 $ilToolbar->addButtonInstance($b);
97 $this->parent_gui->tpl->setContent($a_table->getHTML());
113 foreach ($settings as $set) {
115 "id" => $set->getId(),
116 "name" => $set->getName(),
117 "url" => $set->getUrl(),
118 "img" => $set->getImg()
132 $this->parent_gui->tpl->setContent($form->getHTML());
133 $this->parent_gui->tabs_gui->setTabActive(
'settings');
140 public function delete() {
142 $ilDB->manipulate(
"DELETE FROM il_bibl_settings WHERE id = " . $ilDB->quote(
$_REQUEST[
"lib_id"],
"integer"));
143 $this->ctrl->redirect($this,
'view');
151 $this->ctrl->redirect($this,
'view');
160 $form->setValuesByPost();
161 if ($form->saveObject()) {
163 $this->ctrl->redirect($this,
'view');
165 $this->parent_gui->tpl->setContent($form->getHTML());
174 $form->setValuesByPost();
175 if ($form->saveObject()) {
177 $this->ctrl->redirect($this,
'view');
179 $this->parent_gui->tpl->setContent($form->getHTML());
187 $this->ctrl->saveParameter($this,
'lib_id');
189 $this->parent_gui->tpl->setContent($form->getHTML());