ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilPCPlaceHolderEditorGUI Class Reference
+ Inheritance diagram for ilPCPlaceHolderEditorGUI:
+ Collaboration diagram for ilPCPlaceHolderEditorGUI:

Public Member Functions

 __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...
 
- Public Member Functions inherited from ILIAS\COPage\Editor\Components\PageComponentEditor
 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...
 

Protected Attributes

ilCtrlInterface $ctrl
 
ilLanguage $lng
 

Detailed Description

Definition at line 24 of file class.ilPCPlaceHolderEditorGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilPCPlaceHolderEditorGUI::__construct ( )

Definition at line 29 of file class.ilPCPlaceHolderEditorGUI.php.

30 {
31 global $DIC;
32 $this->lng = $DIC->language();
33 $this->ctrl = $DIC->ctrl();
34 }
global $DIC
Definition: shib_login.php:26

References $DIC, ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

Member Function Documentation

◆ getEditComponentForm()

ilPCPlaceHolderEditorGUI::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 50 of file class.ilPCPlaceHolderEditorGUI.php.

56 : string {
59
60 $page = $page_gui->getPageObject();
61 $page->addHierIDs();
62 $hier_id = $page->getHierIdForPcId($pcid);
63 $ph = $page->getContentObjectForPcId($pcid);
64
65
66 $ph_gui = new ilPCPlaceHolderGUI($page_gui->getPageObject(), $ph, $hier_id, $pcid);
67 $ph_gui->setPageConfig($page_gui->getPageConfig());
68 $form = $ph_gui->initCreationForm();
69
70 $html = $ui_wrapper->getRenderedForm(
71 $form,
72 [
73 ["Page", "component.update", $lng->txt("save")],
74 ["Page", "component.cancel", $lng->txt("cancel")]
75 ]
76 );
77
78 return $html;
79 }
getRenderedForm(\ilPropertyFormGUI $form, array $buttons)
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...

◆ getEditorElements()

ilPCPlaceHolderEditorGUI::getEditorElements ( UIWrapper  $ui_wrapper,
string  $page_type,
ilPageObjectGUI  $page_gui,
int  $style_id 
)

Definition at line 36 of file class.ilPCPlaceHolderEditorGUI.php.

41 : array {
42 $form = $this->getCreationForm($page_gui, $ui_wrapper);
43
44 return [
45 "creation_form" => $form,
46 "icon" => $ui_wrapper->getRenderedIcon("peplh")
47 ];
48 }

Field Documentation

◆ $ctrl

ilCtrlInterface ilPCPlaceHolderEditorGUI::$ctrl
protected

Definition at line 26 of file class.ilPCPlaceHolderEditorGUI.php.

◆ $lng

ilLanguage ilPCPlaceHolderEditorGUI::$lng
protected

Definition at line 27 of file class.ilPCPlaceHolderEditorGUI.php.


The documentation for this class was generated from the following file: