24 require_once(
"./Services/COPage/classes/class.ilPCPlugged.php");
25 require_once(
"./Services/COPage/classes/class.ilPageContentGUI.php");
45 $a_plugin_name =
"", $a_pc_id =
"")
52 if ($a_plugin_name !=
"")
54 $ilCtrl->setParameter($this,
"plugin_name", rawurlencode($a_plugin_name));
56 $ilCtrl->saveParameter($this,
"plugin_name");
66 $this->pluginname = $a_pluginname;
76 return $this->pluginname;
85 $next_class = $this->ctrl->getNextClass($this);
88 $cmd = $this->ctrl->getCmd();
111 function edit($a_insert =
false)
124 $plugin_name = $this->content_obj->getPluginName();
126 if ($ilPluginAdmin->isActive(
IL_COMP_SERVICE,
"COPage",
"pgcp", $plugin_name))
128 $plugin_obj = $ilPluginAdmin->getPluginObject(
IL_COMP_SERVICE,
"COPage",
129 "pgcp", $plugin_name);
138 $html = $ilCtrl->getHTML($plugin_obj);
141 $tpl->setContent($html);
151 $this->content_obj->create($this->pg_obj, $this->hier_id, $this->pc_id);
153 "Table" => $_POST[
"table"]
155 $this->content_obj->setProperties($properties);
156 $this->updated = $this->pg_obj->update();
157 if ($this->updated ===
true)
159 $this->ctrl->returnToParent($this,
"jump".$this->hier_id);
173 "Table" => $_POST[
"table"]);
174 $this->content_obj->setProperties($properties);
175 $this->updated = $this->pg_obj->update();
176 if ($this->updated ===
true)
178 $this->ctrl->returnToParent($this,
"jump".$this->hier_id);
182 $this->pg_obj->addHierIDs();