/**
  * 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;
 }
예제 #2
0
 /**
  * Display right column
  */
 protected function getRightColumnHTML()
 {
     global $ilUser, $lng, $ilCtrl;
     $obj_id = ilObject::_lookupObjId($this->object->getRefId());
     $obj_type = ilObject::_lookupType($obj_id);
     include_once "Services/Block/classes/class.ilColumnGUI.php";
     $column_gui = new ilColumnGUI($obj_type, IL_COL_RIGHT);
     if ($column_gui->getScreenMode() == IL_SCREEN_FULL) {
         return "";
     }
     $this->setColumnSettings($column_gui);
     if ($ilCtrl->getNextClass() == "ilcolumngui" && $column_gui->getCmdSide() == IL_COL_RIGHT && $column_gui->getScreenMode() == IL_SCREEN_SIDE) {
         $html = $ilCtrl->forwardCommand($column_gui);
     } else {
         if (!$ilCtrl->isAsynch()) {
             $html = $ilCtrl->getHTML($column_gui);
         }
     }
     return $html;
 }
 /**
  * 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;
 }
예제 #4
0
 public function setColumnSettings(ilColumnGUI $column_gui)
 {
     /** 
      * @var $lng ilLanguage
      * @var $ilAccess ilAccessHandler
      */
     global $lng, $ilAccess;
     $column_gui->setBlockProperty('news', 'title', $lng->txt('frm_latest_postings'));
     $column_gui->setBlockProperty('news', 'prevent_aggregation', true);
     $column_gui->setRepositoryMode(true);
     if ($ilAccess->checkAccess('write', '', $this->object->getRefId())) {
         $news_set = new ilSetting('news');
         $enable_internal_rss = $news_set->get('enable_rss_for_internal');
         if ($enable_internal_rss) {
             $column_gui->setBlockProperty('news', 'settings', true);
             $column_gui->setBlockProperty('news', 'public_notifications_option', true);
         }
     }
 }