3 declare(strict_types=1);
    36         $this->main_tpl = $DIC->ui()->mainTemplate();
    44         $this->dic->ctrl()->getNextClass($this);
    45         $cmd = $this->dic->ctrl()->getCmd(self::DEFAULT_CMD);
    48             case method_exists($this, $cmd):
    53                 $this->{self::DEFAULT_CMD}();
    64         $this->dic->ui()->mainTemplate()->setContent($form->getHTML());
    69         $this->dic->language()->loadLanguageModule(
'cntr');
    72         $form->setFormAction($this->dic->ctrl()->getFormAction($this, 
'saveForm'));
    73         $form->setTitle($this->dic->language()->txt(
'icon_settings'));
    77         $form->addCommandButton(
'saveForm', $this->dic->language()->txt(
'save'));
    87         throw new Exception(
'Not Implemented Exception!');
    93         if ($form->checkInput()) {
    94             $this->saveIcon($form);
    96             $this->main_tpl->setOnScreenMessage(
'success', $this->dic->language()->txt(
'msg_obj_modified'), 
true);
    97             $this->dic->ctrl()->redirect($this, 
'showForm');
   100         $form->setValuesByPost();
   107         $customIconFactory = $this->dic[
'object.customicons.factory'];
   108         $customIcon = $customIconFactory->getByObjId($this->
object->getId(), $this->
object->getType());
   111         $fileData = (array) $form->
getInput(
'icon');
   114         if ($item && $item->getDeletionFlag()) {
   115             $customIcon->remove();
   118         if (isset($fileData[
'tmp_name']) && $fileData[
'tmp_name']) {
   119             $customIcon->saveFromHttpRequest();
 
__construct(Container $dic, $parentGui, ilObject $object)
 
Customizing of pimple-DIC for ILIAS. 
 
ilGlobalTemplateInterface $main_tpl
 
addSettingsToForm(ilPropertyFormGUI $form)
 
showForm(?ilPropertyFormGUI $form=null)