public function executeCommand() { // $this->prepareOutput(); switch ($this->ctrl->getNextClass($this)) { case "ilcontainerstartobjectspagegui": $this->checkPermission("write"); $this->tabs_gui->clearTargets(); $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTarget($this, "listStructure")); include_once "Services/Container/classes/class.ilContainerStartObjectsPage.php"; if (!ilContainerStartObjectsPage::_exists("cstr", $this->object->getId())) { // doesn't exist -> create new one $new_page_object = new ilContainerStartObjectsPage(); $new_page_object->setParentId($this->object->getId()); $new_page_object->setId($this->object->getId()); $new_page_object->createFromXML(); unset($new_page_object); } $this->ctrl->setReturnByClass("ilcontainerstartobjectspagegui", "edit"); include_once "Services/Container/classes/class.ilContainerStartObjectsPageGUI.php"; $pgui = new ilContainerStartObjectsPageGUI($this->object->getId()); // needed for editor? include_once "./Services/Style/classes/class.ilObjStyleSheet.php"; $pgui->setStyleId(ilObjStyleSheet::getEffectiveContentStyleId(0)); $ret = $this->ctrl->forwardCommand($pgui); if ($ret) { $this->tpl->setContent($ret); } break; default: $cmd = $this->ctrl->getCmd("listStructure"); $cmd .= "Object"; $this->{$cmd}(); break; } }