14 use \ILIAS\Modules\OrgUnit\ARHelper\DIC;
28 $this->
object = $library;
32 if ($this->object->getId()) {
35 parent::__construct();
46 $this->
setFormAction($this->ctrl()->getFormActionByClass(ilBiblLibraryGUI::class));
48 $name->setRequired(
true);
52 $url->setRequired(
true);
59 ->txt(
"bibl_library_show_in_list"),
'show_in_list');
60 $show_in_list->setValue(1);
62 if ($this->object->getId()) {
65 $this->
setTitle($this->lng()->txt(
"bibl_settings_edit"));
67 $this->
setTitle($this->lng()->txt(
"bibl_settings_new"));
77 'name' => $this->object->getName(),
78 'url' => $this->
object->getUrl(),
79 'img' => $this->
object->getImg(),
80 'show_in_list' => $this->
object->getShowInList(),
90 $this->
object->setName($this->
getInput(
"name"));
91 $this->
object->setUrl($this->
getInput(
"url"));
92 $this->
object->setImg($this->
getInput(
"img"));
93 $this->
object->setShowInList((
bool) $this->
getInput(
"show_in_list"));
94 $this->
object->store();
Interface ilBiblLibraryInterface.
This class represents a text property in a property form.