/** * Get columngui output */ function __forwardToColumnGUI() { global $ilCtrl, $ilAccess; include_once "Services/Block/classes/class.ilColumnGUI.php"; $obj_id = ilObject::_lookupObjId($this->container_obj->getRefId()); $obj_type = ilObject::_lookupType($obj_id); if (!$ilCtrl->isAsynch()) { //if ($column_gui->getScreenMode() != IL_SCREEN_SIDE) if (ilColumnGUI::getScreenMode() != IL_SCREEN_SIDE) { // right column wants center if (ilColumnGUI::getCmdSide() == IL_COL_RIGHT) { $column_gui = new ilColumnGUI($obj_type, IL_COL_RIGHT); $this->setColumnSettings($column_gui); $html = $ilCtrl->forwardCommand($column_gui); } // left column wants center if (ilColumnGUI::getCmdSide() == IL_COL_LEFT) { $column_gui = new ilColumnGUI($obj_type, IL_COL_LEFT); $this->setColumnSettings($column_gui); $html = $ilCtrl->forwardCommand($column_gui); } } else { if ($_GET["col_return"] == "objectives") { //return $this->__forwardToObjectivePresentation(); include_once 'Modules/Course/classes/class.ilCourseObjectivePresentationGUI.php'; $this->ctrl->setReturn($this, ''); $objectives_gui = new ilCourseObjectivePresentationGUI($this->container_gui); $this->ctrl->getHTML($objectives_gui); } else { $this->getDefaultView(); } } } return $html; }
/** * Get columngui output */ private final function __forwardToColumnGUI() { global $ilCtrl, $ilAccess; include_once "Services/Block/classes/class.ilColumnGUI.php"; // this gets us the subitems we need in setColumnSettings() // todo: this should be done in ilCourseGUI->getSubItems $obj_id = ilObject::_lookupObjId($this->getContainerObject()->getRefId()); $obj_type = ilObject::_lookupType($obj_id); if (!$ilCtrl->isAsynch()) { //if ($column_gui->getScreenMode() != IL_SCREEN_SIDE) if (ilColumnGUI::getScreenMode() != IL_SCREEN_SIDE) { // right column wants center if (ilColumnGUI::getCmdSide() == IL_COL_RIGHT) { $column_gui = new ilColumnGUI($obj_type, IL_COL_RIGHT); $this->getContainerGUI()->setColumnSettings($column_gui); $html = $ilCtrl->forwardCommand($column_gui); } // left column wants center if (ilColumnGUI::getCmdSide() == IL_COL_LEFT) { $column_gui = new ilColumnGUI($obj_type, IL_COL_LEFT); $this->getContainerGUI()->setColumnSettings($column_gui); $html = $ilCtrl->forwardCommand($column_gui); } } else { $html = $this->getMainContent(); } } return $html; }
/** * Get center column */ protected function getCenterColumnHTML() { global $ilCtrl; include_once "Services/Block/classes/class.ilColumnGUI.php"; $obj_id = ilObject::_lookupObjId($this->object->getRefId()); $obj_type = ilObject::_lookupType($obj_id); if ($ilCtrl->getNextClass() != "ilcolumngui") { // normal command processing return $this->getContent(); } else { if (!$ilCtrl->isAsynch()) { //if ($column_gui->getScreenMode() != IL_SCREEN_SIDE) if (ilColumnGUI::getScreenMode() != IL_SCREEN_SIDE) { // right column wants center if (ilColumnGUI::getCmdSide() == IL_COL_RIGHT) { $column_gui = new ilColumnGUI($obj_type, IL_COL_RIGHT); $this->setColumnSettings($column_gui); $this->html = $ilCtrl->forwardCommand($column_gui); } // left column wants center if (ilColumnGUI::getCmdSide() == IL_COL_LEFT) { $column_gui = new ilColumnGUI($obj_type, IL_COL_LEFT); $this->setColumnSettings($column_gui); $this->html = $ilCtrl->forwardCommand($column_gui); } } else { // normal command processing return $this->getContent(); } } } }