|
| __construct () |
|
| getEditorElements (UIWrapper $ui_wrapper, string $page_type, ilPageObjectGUI $page_gui, int $style_id) |
|
| getEditComponentForm (UIWrapper $ui_wrapper, string $page_type, \ilPageObjectGUI $page_gui, int $style_id, string $pcid) |
| Get rendered editor elements. More...
|
|
| getEditorElements (UIWrapper $ui_wrapper, string $page_type, \ilPageObjectGUI $page_gui, int $style_id) |
| Get rendered editor elements. More...
|
|
| getEditComponentForm (UIWrapper $ui_wrapper, string $page_type, \ilPageObjectGUI $page_gui, int $style_id, string $pcid) |
| Get rendered editor elements. More...
|
|
◆ __construct()
ilPCSectionEditorGUI::__construct |
( |
| ) |
|
◆ getCreationForm()
Definition at line 50 of file class.ilPCSectionEditorGUI.php.
54 : string {
57
59 $sec_gui->setStyleId($style_id);
61
63 $sec_gui,
64 [
65 "form" => true,
66 "ui_wrapper" => $ui_wrapper,
67 "insert" => true,
68 "buttons" => [[
"Page",
"component.save",
$lng->
txt(
"insert")],
69 [
"Page",
"component.cancel",
$lng->
txt(
"cancel")]]
70 ]
71 );
72
73 return $html;
74 }
getHTML(object $a_gui_object, ?array $a_parameters=null)
@inheritDoc
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ getEditComponentForm()
ilPCSectionEditorGUI::getEditComponentForm |
( |
UIWrapper |
$ui_wrapper, |
|
|
string |
$page_type, |
|
|
\ilPageObjectGUI |
$page_gui, |
|
|
int |
$style_id, |
|
|
string |
$pcid |
|
) |
| |
Get rendered editor elements.
Implements ILIAS\COPage\Editor\Components\PageComponentEditor.
Definition at line 76 of file class.ilPCSectionEditorGUI.php.
82 : string {
85
86 $page = $page_gui->getPageObject();
87 $page->addHierIDs();
88 $hier_id = $page->getHierIdForPcId($pcid);
89 $sec = $page->getContentObjectForPcId($pcid);
90
91
92 $sec_gui =
new ilPCSectionGUI($page_gui->getPageObject(), $sec, $hier_id, $pcid);
93 $sec_gui->setStyleId($style_id);
94 $sec_gui->setPageConfig($page_gui->getPageConfig());
95
97 $sec_gui,
98 [
99 "form" => true,
100 "ui_wrapper" => $ui_wrapper,
101 "buttons" => [[
"Page",
"component.update",
$lng->
txt(
"save")],
102 [
"Page",
"component.cancel",
$lng->
txt(
"cancel")]]
103 ]
104 );
105
106 return $html;
107 }
◆ getEditorElements()
ilPCSectionEditorGUI::getEditorElements |
( |
UIWrapper |
$ui_wrapper, |
|
|
string |
$page_type, |
|
|
ilPageObjectGUI |
$page_gui, |
|
|
int |
$style_id |
|
) |
| |
Definition at line 37 of file class.ilPCSectionEditorGUI.php.
42 : array {
44 return [
45 "creation_form" => $form,
47 ];
48 }
getRenderedIcon(string $type)
getCreationForm(ilPageObjectGUI $page_gui, UIWrapper $ui_wrapper, int $style_id)
◆ $ctrl
ilCtrl ilPCSectionEditorGUI::$ctrl |
|
protected |
◆ $lng
The documentation for this class was generated from the following file: