6 require_once(
"./Services/COPage/classes/class.ilPCPlugged.php");
7 require_once(
"./Services/COPage/classes/class.ilPageContentGUI.php");
28 $a_plugin_name =
"", $a_pc_id =
"")
32 parent::ilPageContentGUI($a_pg_obj, $a_content_obj, $a_hier_id, $a_pc_id);
42 $this->pluginname = $a_pluginname;
52 return $this->pluginname;
62 $ilTabs->setBackTarget($lng->txt(
"pg"), $ilCtrl->getLinkTarget($this,
"returnToParent"));
65 $next_class = $this->ctrl->getNextClass($this);
71 foreach ($pl_names as $pl_name)
73 if ($next_class == strtolower(
"il".$pl_name.
"plugingui"))
76 "COPage",
"pgcp", $pl_name);
77 $this->current_plugin = $plugin;
79 $gui_obj = $plugin->getUIClassInstance();
80 $gui_obj->setPCGUI($this);
81 $ret = $this->ctrl->forwardCommand($gui_obj);
86 $cmd = $this->ctrl->getCmd();
88 if ($next_class ==
"" || $next_class ==
"ilpcpluggedgui")
107 function edit($a_insert =
false)
120 $plugin_name = $this->content_obj->getPluginName();
122 if ($ilPluginAdmin->isActive(
IL_COMP_SERVICE,
"COPage",
"pgcp", $plugin_name))
124 $plugin_obj = $ilPluginAdmin->getPluginObject(
IL_COMP_SERVICE,
"COPage",
125 "pgcp", $plugin_name);
126 $gui_obj = $plugin_obj->getUIClassInstance();
127 $gui_obj->setPCGUI($this);
136 $html = $ilCtrl->getHTML($gui_obj);
139 $tpl->setContent($html);
149 $this->content_obj->create($this->pg_obj, $this->hier_id, $this->pc_id,
150 $this->current_plugin->getPluginName(), $this->current_plugin->getVersion());
151 $this->content_obj->setProperties($a_properties);
152 $this->updated = $this->pg_obj->update();
153 if ($this->updated ===
true)
165 $this->content_obj->setProperties($a_properties);
166 $this->content_obj->setPluginVersion($this->current_plugin->getVersion());
167 $this->updated = $this->pg_obj->update();
168 if ($this->updated ===
true)
180 $this->ctrl->returnToParent($this,
"jump".$this->hier_id);
createElement(array $a_properties)
Create new element.
setPluginName($a_pluginname)
Set PluginName.
Class ilPCPlugged Plugged content object (see ILIAS DTD)
updateElement(array $a_properties)
Update element.
User Interface for Editing of Page Content Objects (Paragraphs, Tables, ...)
& executeCommand()
execute command
displayValidationError()
display validation errors
returnToParent()
Return to parent.
edit($a_insert=false)
Edit section form.
insert()
Insert new section form.
getPluginName()
Get PluginName.
ilPCPluggedGUI(&$a_pg_obj, &$a_content_obj, $a_hier_id, $a_plugin_name="", $a_pc_id="")
Constructor public.