6require_once(
"./Services/COPage/classes/class.ilPCPlugged.php");
 
    7require_once(
"./Services/COPage/classes/class.ilPageContentGUI.php");
 
   37    public function __construct(&$a_pg_obj, &$a_content_obj, $a_hier_id, $a_plugin_name = 
"", $a_pc_id = 
"")
 
   41        $this->ctrl = 
$DIC->ctrl();
 
   42        $this->plugin_admin = 
$DIC[
"ilPluginAdmin"];
 
   43        $this->tabs = 
$DIC->tabs();
 
   44        $this->lng = 
$DIC->language();
 
   45        $this->tpl = 
$DIC[
"tpl"];
 
   48        parent::__construct($a_pg_obj, $a_content_obj, $a_hier_id, $a_pc_id);
 
   58        $this->pluginname = $a_pluginname;
 
   68        return $this->pluginname;
 
   81        $ilTabs->setBackTarget(
$lng->txt(
"pg"), 
$ilCtrl->getLinkTarget($this, 
"returnToParent"));
 
   84        $next_class = $this->ctrl->getNextClass($this);
 
   88        $pl_names = $ilPluginAdmin->getActivePluginsForSlot(
 
   93        foreach ($pl_names as $pl_name) {
 
   94            if ($next_class == strtolower(
"il" . $pl_name . 
"plugingui")) {
 
   95                $plugin = $ilPluginAdmin->getPluginObject(
 
  101                $plugin->setPageObj($this->
getPage());
 
  102                $this->current_plugin = $plugin;
 
  104                $gui_obj = $plugin->getUIClassInstance();
 
  105                $gui_obj->setPCGUI($this);
 
  106                $ret = $this->ctrl->forwardCommand($gui_obj);
 
  111        $cmd = $this->ctrl->getCmd();
 
  113        if ($next_class == 
"" || $next_class == 
"ilpcpluggedgui") {
 
  114            $ret = $this->$cmd();
 
  131    public function edit($a_insert = 
false)
 
  144            $plugin_name = $this->content_obj->getPluginName();
 
  146        if ($ilPluginAdmin->isActive(
IL_COMP_SERVICE, 
"COPage", 
"pgcp", $plugin_name)) {
 
  147            $plugin_obj = $ilPluginAdmin->getPluginObject(
 
  153            $plugin_obj->setPageObj($this->
getPage());
 
  154            $gui_obj = $plugin_obj->getUIClassInstance();
 
  155            $gui_obj->setPCGUI($this);
 
  174        $this->content_obj->create(
 
  178            $this->current_plugin->getPluginName(),
 
  179            $this->current_plugin->getVersion()
 
  181        $this->content_obj->setProperties($a_properties);
 
  182        $this->updated = $this->pg_obj->update();
 
  183        if ($this->updated === 
true) {
 
  194        $this->content_obj->setProperties($a_properties);
 
  195        $this->content_obj->setPluginVersion($this->current_plugin->getVersion());
 
  196        $this->updated = $this->pg_obj->update();
 
  197        if ($this->updated === 
true) {
 
  208        $this->ctrl->returnToParent($this, 
"jump" . $this->hier_id);
 
An exception for terminatinating execution or to throw for unit testing.
insert()
Insert new section form.
__construct(&$a_pg_obj, &$a_content_obj, $a_hier_id, $a_plugin_name="", $a_pc_id="")
Constructor @access public.
createElement(array $a_properties)
Create new element.
getPluginName()
Get PluginName.
executeCommand()
execute command
updateElement(array $a_properties)
Update element.
returnToParent()
Return to parent.
setPluginName($a_pluginname)
Set PluginName.
edit($a_insert=false)
Edit section form.
Class ilPCPlugged Plugged content object (see ILIAS DTD)
User Interface for Editing of Page Content Objects (Paragraphs, Tables, ...)
displayValidationError()
display validation errors