Search in sources :

Example 1 with TeacherOverviewController

use of org.olat.modules.lecture.ui.TeacherOverviewController in project OpenOLAT by OpenOLAT.

the class CourseRuntimeController method doLectures.

private TeacherOverviewController doLectures(UserRequest ureq) {
    if (delayedClose == Delayed.lectures || requestForClose(ureq)) {
        removeCustomCSS();
        OLATResourceable ores = OresHelper.createOLATResourceableType("lectures");
        WindowControl swControl = addToHistory(ureq, ores, null);
        TeacherOverviewController ctrl = new TeacherOverviewController(ureq, swControl, toolbarPanel, getRepositoryEntry(), reSecurity.isEntryAdmin());
        lecturesCtrl = pushController(ureq, translate("command.lectures"), ctrl);
        setActiveTool(lecturesLink);
        currentToolCtr = lecturesCtrl;
        return lecturesCtrl;
    } else {
        delayedClose = Delayed.lectures;
        return null;
    }
}
Also used : TeacherOverviewController(org.olat.modules.lecture.ui.TeacherOverviewController) OLATResourceable(org.olat.core.id.OLATResourceable) WindowControl(org.olat.core.gui.control.WindowControl)

Example 2 with TeacherOverviewController

use of org.olat.modules.lecture.ui.TeacherOverviewController in project openolat by klemens.

the class CourseRuntimeController method doLectures.

private TeacherOverviewController doLectures(UserRequest ureq) {
    if (delayedClose == Delayed.lectures || requestForClose(ureq)) {
        removeCustomCSS();
        OLATResourceable ores = OresHelper.createOLATResourceableType("lectures");
        WindowControl swControl = addToHistory(ureq, ores, null);
        TeacherOverviewController ctrl = new TeacherOverviewController(ureq, swControl, toolbarPanel, getRepositoryEntry(), reSecurity.isEntryAdmin());
        lecturesCtrl = pushController(ureq, translate("command.lectures"), ctrl);
        setActiveTool(lecturesLink);
        currentToolCtr = lecturesCtrl;
        return lecturesCtrl;
    } else {
        delayedClose = Delayed.lectures;
        return null;
    }
}
Also used : TeacherOverviewController(org.olat.modules.lecture.ui.TeacherOverviewController) OLATResourceable(org.olat.core.id.OLATResourceable) WindowControl(org.olat.core.gui.control.WindowControl)

Aggregations

WindowControl (org.olat.core.gui.control.WindowControl)2 OLATResourceable (org.olat.core.id.OLATResourceable)2 TeacherOverviewController (org.olat.modules.lecture.ui.TeacherOverviewController)2