ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.ilPCInteractiveImageEditorGUI.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
23 
28 {
29  protected \ILIAS\COPage\InternalGUIService $gui;
30 
31  public function getEditorElements(
32  UIWrapper $ui_wrapper,
33  string $page_type,
34  ilPageObjectGUI $page_gui,
35  int $style_id
36  ): array {
37  global $DIC;
38  $lng = $DIC->language();
39  $lng->loadLanguageModule("content");
40 
41  $this->gui = $DIC->copage()->internal()->gui();
42 
43  return [
44  "creation_form" => $this->getRenderedCreationForm(
45  $ui_wrapper,
46  $lng,
47  $page_gui
48  ),
49  "icon" => $ui_wrapper->getRenderedIcon("peim")
50  ];
51  }
52 
53  protected function getRenderedCreationForm(
54  UIWrapper $ui_wrapper,
56  ilPageObjectGUI $page_gui
57  ): string {
58  $iim_gui = new ilPCInteractiveImageGUI($page_gui->getPageObject(), null, "", "");
59  $form = $iim_gui->getImportFormAdapter();
60  $html = $ui_wrapper->getRenderedAdapterForm(
61  $form,
62  [["Page", "component.save", $lng->txt("insert")],
63  ["Page", "component.cancel", $lng->txt("cancel")]
64  ]
65  );
66  return $html;
67  }
68 
69  public function getEditComponentForm(
70  UIWrapper $ui_wrapper,
71  string $page_type,
72  \ilPageObjectGUI $page_gui,
73  int $style_id,
74  string $pcid
75  ): string {
76  $html = "";
77  return $html;
78  }
79 
80 }
getEditorElements(UIWrapper $ui_wrapper, string $page_type, ilPageObjectGUI $page_gui, int $style_id)
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
getRenderedAdapterForm(FormAdapterGUI $form, array $buttons, string $id="", bool $in_modal=false)
Class ilPageObjectGUI.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
global $DIC
Definition: shib_login.php:26
getRenderedCreationForm(UIWrapper $ui_wrapper, ilLanguage $lng, ilPageObjectGUI $page_gui)
global $lng
Definition: privfeed.php:31
User interface class for interactive images.
getEditComponentForm(UIWrapper $ui_wrapper, string $page_type, \ilPageObjectGUI $page_gui, int $style_id, string $pcid)
Get rendered editor elements.