ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilPageComponentPluginGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilPageComponentPluginGUI:

Public Member Functions

 __construct ()
 
 setPCGUI (ilPCPluggedGUI $a_val)
 
 getPCGUI ()
 
 setPlugin (ilPageComponentPlugin $a_val)
 
 getPlugin ()
 
 setMode (string $a_mode)
 
 getMode ()
 
 getHTML ()
 Get HTML. More...
 
 executeCommand ()
 
 insert ()
 
 edit ()
 
 create ()
 
 getElementHTML (string $a_mode, array $a_properties, string $plugin_version)
 
 createElement (array $a_properties)
 
 updateElement (array $a_properties)
 
 returnToParent ()
 
 setProperties (array $a_val)
 Set properties. More...
 
 getProperties ()
 

Protected Member Functions

 addCreationButton (ilPropertyFormGUI $a_form)
 

Protected Attributes

string $mode
 
ilLanguage $lng
 
ilPageComponentPlugin $plugin
 
ilPCPluggedGUI $pc_gui
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Abstract parent class for all page component plugin gui classes.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 23 of file class.ilPageComponentPluginGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilPageComponentPluginGUI::__construct ( )

Definition at line 30 of file class.ilPageComponentPluginGUI.php.

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

31  {
32  global $DIC;
33 
34  $this->lng = $DIC->language();
35  }
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

Member Function Documentation

◆ addCreationButton()

ilPageComponentPluginGUI::addCreationButton ( ilPropertyFormGUI  $a_form)
finalprotected

Definition at line 125 of file class.ilPageComponentPluginGUI.php.

References $lng, ilPropertyFormGUI\addCommandButton(), and ilLanguage\txt().

125  : void
126  {
127  $lng = $this->lng;
128 
129  $a_form->addCommandButton("create_plug", $lng->txt("save"));
130  }
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...
addCommandButton(string $a_cmd, string $a_text, string $a_id="")
+ Here is the call graph for this function:

◆ create()

ilPageComponentPluginGUI::create ( )
abstract

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ createElement()

ilPageComponentPluginGUI::createElement ( array  $a_properties)

Definition at line 90 of file class.ilPageComponentPluginGUI.php.

References getPCGUI().

90  : bool
91  {
92  return $this->getPCGUI()->createElement($a_properties);
93  }
+ Here is the call graph for this function:

◆ edit()

ilPageComponentPluginGUI::edit ( )
abstract

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ executeCommand()

ilPageComponentPluginGUI::executeCommand ( )
abstract

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ getElementHTML()

ilPageComponentPluginGUI::getElementHTML ( string  $a_mode,
array  $a_properties,
string  $plugin_version 
)
abstract

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ getHTML()

ilPageComponentPluginGUI::getHTML ( )

Get HTML.

Definition at line 70 of file class.ilPageComponentPluginGUI.php.

References ilPageComponentPlugin\CMD_EDIT, ilPageComponentPlugin\CMD_INSERT, create(), edit(), executeCommand(), getElementHTML(), getMode(), and insert().

70  : string
71  {
73  $this->insert();
74  } elseif ($this->getMode() == ilPageComponentPlugin::CMD_EDIT) {
75  $this->edit();
76  }
77  return "";
78  }
+ Here is the call graph for this function:

◆ getMode()

ilPageComponentPluginGUI::getMode ( )
final

Definition at line 62 of file class.ilPageComponentPluginGUI.php.

References $mode.

Referenced by getHTML().

62  : string
63  {
64  return $this->mode;
65  }
+ Here is the caller graph for this function:

◆ getPCGUI()

ilPageComponentPluginGUI::getPCGUI ( )

Definition at line 42 of file class.ilPageComponentPluginGUI.php.

References $pc_gui.

Referenced by createElement(), getProperties(), returnToParent(), setProperties(), and updateElement().

43  {
44  return $this->pc_gui;
45  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the caller graph for this function:

◆ getPlugin()

ilPageComponentPluginGUI::getPlugin ( )

Definition at line 52 of file class.ilPageComponentPluginGUI.php.

References $plugin.

53  {
54  return $this->plugin;
55  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ getProperties()

ilPageComponentPluginGUI::getProperties ( )

Definition at line 116 of file class.ilPageComponentPluginGUI.php.

References getPCGUI().

116  : array
117  {
118  $co = $this->getPCGUI()->getContentObject();
119  if (is_object($co)) {
120  return $co->getProperties();
121  }
122  return array();
123  }
+ Here is the call graph for this function:

◆ insert()

ilPageComponentPluginGUI::insert ( )
abstract

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ returnToParent()

ilPageComponentPluginGUI::returnToParent ( )

Definition at line 100 of file class.ilPageComponentPluginGUI.php.

References getPCGUI().

100  : void
101  {
102  $this->getPCGUI()->returnToParent();
103  }
+ Here is the call graph for this function:

◆ setMode()

ilPageComponentPluginGUI::setMode ( string  $a_mode)
final

Definition at line 57 of file class.ilPageComponentPluginGUI.php.

57  : void
58  {
59  $this->mode = $a_mode;
60  }

◆ setPCGUI()

ilPageComponentPluginGUI::setPCGUI ( ilPCPluggedGUI  $a_val)

Definition at line 37 of file class.ilPageComponentPluginGUI.php.

37  : void
38  {
39  $this->pc_gui = $a_val;
40  }

◆ setPlugin()

ilPageComponentPluginGUI::setPlugin ( ilPageComponentPlugin  $a_val)

Definition at line 47 of file class.ilPageComponentPluginGUI.php.

47  : void
48  {
49  $this->plugin = $a_val;
50  }

◆ setProperties()

ilPageComponentPluginGUI::setProperties ( array  $a_val)

Set properties.

Definition at line 108 of file class.ilPageComponentPluginGUI.php.

References getPCGUI().

108  : void
109  {
110  $co = $this->getPCGUI()->getContentObject();
111  if (is_object($co)) {
112  $co->setProperties($a_val);
113  }
114  }
+ Here is the call graph for this function:

◆ updateElement()

ilPageComponentPluginGUI::updateElement ( array  $a_properties)

Definition at line 95 of file class.ilPageComponentPluginGUI.php.

References getPCGUI().

95  : bool
96  {
97  return $this->getPCGUI()->updateElement($a_properties);
98  }
+ Here is the call graph for this function:

Field Documentation

◆ $lng

ilLanguage ilPageComponentPluginGUI::$lng
protected

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

Referenced by addCreationButton().

◆ $mode

string ilPageComponentPluginGUI::$mode
protected

Definition at line 25 of file class.ilPageComponentPluginGUI.php.

Referenced by getMode().

◆ $pc_gui

ilPCPluggedGUI ilPageComponentPluginGUI::$pc_gui
protected

Definition at line 28 of file class.ilPageComponentPluginGUI.php.

Referenced by getPCGUI().

◆ $plugin

ilPageComponentPlugin ilPageComponentPluginGUI::$plugin
protected

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

Referenced by getPlugin().


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