ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilPageComponentPluginGUI Class Reference

Abstract parent class for all page component plugin gui classes. More...

+ Collaboration diagram for ilPageComponentPluginGUI:

Public Member Functions

 __construct ()
 Constructor. More...
 
 setPCGUI ($a_val)
 Set pc gui object. More...
 
 getPCGUI ()
 Get pc gui object. More...
 
 setPlugin ($a_val)
 Set plugin object. More...
 
 getPlugin ()
 Get plugin object. More...
 
 setMode ($a_mode)
 Set Mode. More...
 
 getMode ()
 Get Mode. More...
 
 getHTML ()
 Get HTML. More...
 
 executeCommand ()
 
 insert ()
 
 edit ()
 
 create ()
 
 getElementHTML ($a_mode, array $a_properties, $plugin_version)
 
 createElement (array $a_properties)
 
 updateElement (array $a_properties)
 
 returnToParent ()
 Return to parent. More...
 
 setProperties (array $a_val)
 Set properties. More...
 
 getProperties ()
 Get properties. More...
 

Protected Member Functions

 addCreationButton ($a_form)
 Add creation button. More...
 

Protected Attributes

 $lng
 
 $plugin
 
 $pc_gui
 
 $pc
 

Detailed Description

Abstract parent class for all page component plugin gui classes.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

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

Constructor & Destructor Documentation

◆ __construct()

ilPageComponentPluginGUI::__construct ( )

Constructor.

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

References $DIC.

25  {
26  global $DIC;
27 
28  $this->lng = $DIC->language();
29  }
global $DIC
Definition: saml.php:7

Member Function Documentation

◆ addCreationButton()

ilPageComponentPluginGUI::addCreationButton (   $a_form)
finalprotected

Add creation button.

Parameters

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

References $lng.

168  {
169  $lng = $this->lng;
170 
171  $a_form->addCommandButton("create_plug", $lng->txt("save"));
172  }

◆ create()

ilPageComponentPluginGUI::create ( )
abstract

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ createElement()

ilPageComponentPluginGUI::createElement ( array  $a_properties)

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

References getPCGUI().

117  {
118  return $this->getPCGUI()->createElement($a_properties);
119  }
+ 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 (   $a_mode,
array  $a_properties,
  $plugin_version 
)
abstract

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ getHTML()

ilPageComponentPluginGUI::getHTML ( )

Get HTML.

Parameters

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

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

+ Here is the call graph for this function:

◆ getMode()

ilPageComponentPluginGUI::getMode ( )
final

Get Mode.

Returns
string Mode

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

Referenced by getHTML().

91  {
92  return $this->mode;
93  }
+ Here is the caller graph for this function:

◆ getPCGUI()

ilPageComponentPluginGUI::getPCGUI ( )

Get pc gui object.

Returns
object pc gui object

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

References $pc_gui.

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

+ Here is the caller graph for this function:

◆ getPlugin()

ilPageComponentPluginGUI::getPlugin ( )

Get plugin object.

Returns
object plugin object

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

References $plugin.

◆ getProperties()

ilPageComponentPluginGUI::getProperties ( )

Get properties.

Returns
array properties array

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

References array, and getPCGUI().

153  {
154  $co = $this->getPCGUI()->getContentObject();
155  if (is_object($co)) {
156  return $co->getProperties($a_val);
157  }
158  return array();
159  }
Create styles array
The data for the language used.
+ 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 ( )

Return to parent.

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

References getPCGUI().

130  {
131  $this->getPCGUI()->returnToParent();
132  }
+ Here is the call graph for this function:

◆ setMode()

ilPageComponentPluginGUI::setMode (   $a_mode)
final

Set Mode.

Parameters
string$a_modeMode

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

81  {
82  $this->mode = $a_mode;
83  }

◆ setPCGUI()

ilPageComponentPluginGUI::setPCGUI (   $a_val)

Set pc gui object.

Parameters
object$a_valpc gui object

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

41  {
42  $this->pc_gui = $a_val;
43  }

◆ setPlugin()

ilPageComponentPluginGUI::setPlugin (   $a_val)

Set plugin object.

Parameters
object$a_valplugin object

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

61  {
62  $this->plugin = $a_val;
63  }

◆ setProperties()

ilPageComponentPluginGUI::setProperties ( array  $a_val)

Set properties.

Parameters
array$a_valproperties array

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

References getPCGUI().

140  {
141  $co = $this->getPCGUI()->getContentObject();
142  if (is_object($co)) {
143  $co->setProperties($a_val);
144  }
145  }
+ Here is the call graph for this function:

◆ updateElement()

ilPageComponentPluginGUI::updateElement ( array  $a_properties)

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

References getPCGUI().

122  {
123  return $this->getPCGUI()->updateElement($a_properties);
124  }
+ Here is the call graph for this function:

Field Documentation

◆ $lng

ilPageComponentPluginGUI::$lng
protected

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

Referenced by addCreationButton().

◆ $pc

ilPageComponentPluginGUI::$pc
protected

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

◆ $pc_gui

ilPageComponentPluginGUI::$pc_gui
protected

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

Referenced by getPCGUI().

◆ $plugin

ilPageComponentPluginGUI::$plugin
protected

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

Referenced by getPlugin().


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