ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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)
 
 create_plug ()
 
 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.

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

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

+ Here is the call graph for this function:

Member Function Documentation

◆ addCreationButton()

ilPageComponentPluginGUI::addCreationButton ( ilPropertyFormGUI  $a_form)
finalprotected

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

130 : void
131 {
133
134 $a_form->addCommandButton("create_plug", $lng->txt("save"));
135 }
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="")

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

+ Here is the call graph for this function:

◆ create()

ilPageComponentPluginGUI::create ( )
abstract

Referenced by create_plug().

+ Here is the caller graph for this function:

◆ create_plug()

ilPageComponentPluginGUI::create_plug ( )

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

90 : void
91 {
92 $this->create();
93 }

References create().

+ Here is the call graph for this function:

◆ createElement()

ilPageComponentPluginGUI::createElement ( array  $a_properties)

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

95 : bool
96 {
97 return $this->getPCGUI()->createElement($a_properties);
98 }

References getPCGUI().

+ 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

◆ getElementHTML()

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

◆ getHTML()

ilPageComponentPluginGUI::getHTML ( )

Get HTML.

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

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

+ Here is the call graph for this function:

◆ getMode()

ilPageComponentPluginGUI::getMode ( )
final

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

62 : string
63 {
64 return $this->mode;
65 }

References $mode.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ getPCGUI()

ilPageComponentPluginGUI::getPCGUI ( )

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

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...

References $pc_gui.

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

+ Here is the caller graph for this function:

◆ getPlugin()

ilPageComponentPluginGUI::getPlugin ( )

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

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

References $plugin.

◆ getProperties()

ilPageComponentPluginGUI::getProperties ( )

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

121 : array
122 {
123 $co = $this->getPCGUI()->getContentObject();
124 if (is_object($co)) {
125 return $co->getProperties();
126 }
127 return array();
128 }

References getPCGUI().

+ 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 105 of file class.ilPageComponentPluginGUI.php.

105 : void
106 {
107 $this->getPCGUI()->returnToParent();
108 }

References getPCGUI().

+ 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 113 of file class.ilPageComponentPluginGUI.php.

113 : void
114 {
115 $co = $this->getPCGUI()->getContentObject();
116 if (is_object($co)) {
117 $co->setProperties($a_val);
118 }
119 }

References getPCGUI().

+ Here is the call graph for this function:

◆ updateElement()

ilPageComponentPluginGUI::updateElement ( array  $a_properties)

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

100 : bool
101 {
102 return $this->getPCGUI()->updateElement($a_properties);
103 }

References getPCGUI().

+ 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: