11 use \ILIAS\Modules\OrgUnit\ARHelper\DIC;
41 switch ($this->ctrl()->getNextClass()) {
43 $cmd = $this->ctrl()->getCmd(self::CMD_INDEX);
57 if ($this->checkPermissionBoolAndReturn(
'write')) {
59 $b->setCaption(self::CMD_ADD);
60 $b->setUrl($this->ctrl()->getLinkTarget($this, self::CMD_ADD));
63 $this->toolbar()->addButtonInstance($b);
67 $this->tpl()->setContent($a_table->getHTML());
79 $settings = $this->facade->libraryFactory()->getAll();
81 foreach ($settings as $set) {
83 "id" => $set->getId(),
84 "name" => $set->getName(),
85 "url" => $set->getUrl(),
86 "img" => $set->getImg(),
100 $this->checkPermissionAndFail(
'write');
102 $this->tpl()->setContent(
$form->getHTML());
109 public function delete()
111 $this->checkPermissionAndFail(
'write');
113 $ilBibliographicSetting->delete();
114 $this->ctrl()->redirect($this, self::CMD_INDEX);
123 $this->ctrl()->redirect($this, self::CMD_INDEX);
132 $this->checkPermissionAndFail(
'write');
135 $form->setValuesByPost();
136 if (
$form->saveObject()) {
137 ilUtil::sendSuccess($this->lng()->txt(
"settings_saved"),
true);
138 $this->ctrl()->redirect($this, self::CMD_INDEX);
140 $this->tpl()->setContent(
$form->getHTML());
149 $this->checkPermissionAndFail(
'write');
151 $form->setValuesByPost();
152 if (
$form->saveObject()) {
153 ilUtil::sendSuccess($this->lng()->txt(
"settings_saved"),
true);
154 $this->ctrl()->redirect($this, self::CMD_INDEX);
156 $this->tpl()->setContent(
$form->getHTML());
165 $this->checkPermissionAndFail(
'write');
166 $this->ctrl()->saveParameter($this, self::F_LIB_ID);
169 $this->tpl()->setContent(
$form->getHTML());
178 $ilBibliographicSetting = $this->facade->libraryFactory()
179 ->findById($_REQUEST[self::F_LIB_ID]);
181 return $ilBibliographicSetting;
Interface ilBiblAdminLibraryFacadeInterface.
index()
$ilToolbar ilToolbarGUI;
executeCommand()
Execute command.
__construct(ilBiblAdminLibraryFacadeInterface $facade)
ilBiblLibraryGUI constructor.
if(isset($_POST['submit'])) $form
Bibliographic ilBiblLibraryTableGUI.
update()
save changes in library
if(empty($password)) $table