Search in sources :

Example 1 with StatisticMainController

use of org.olat.course.statistic.StatisticMainController in project OpenOLAT by OpenOLAT.

the class CourseRuntimeController method doCourseStatistics.

private void doCourseStatistics(UserRequest ureq) {
    if (delayedClose == Delayed.courseStatistics || requestForClose(ureq)) {
        if (reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_STATISTICS)) {
            removeCustomCSS();
            ICourse course = CourseFactory.loadCourse(getRepositoryEntry());
            StatisticMainController ctrl = new StatisticMainController(ureq, getWindowControl(), course);
            listenTo(ctrl);
            statisticsCtrl = pushController(ureq, translate("command.openstatistic"), ctrl);
            setActiveTool(courseStatisticLink);
            currentToolCtr = statisticsCtrl;
        }
    } else {
        delayedClose = Delayed.courseStatistics;
    }
}
Also used : StatisticMainController(org.olat.course.statistic.StatisticMainController) ICourse(org.olat.course.ICourse)

Example 2 with StatisticMainController

use of org.olat.course.statistic.StatisticMainController in project openolat by klemens.

the class CourseRuntimeController method doCourseStatistics.

private void doCourseStatistics(UserRequest ureq) {
    if (delayedClose == Delayed.courseStatistics || requestForClose(ureq)) {
        if (reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_STATISTICS)) {
            removeCustomCSS();
            ICourse course = CourseFactory.loadCourse(getRepositoryEntry());
            StatisticMainController ctrl = new StatisticMainController(ureq, getWindowControl(), course);
            listenTo(ctrl);
            statisticsCtrl = pushController(ureq, translate("command.openstatistic"), ctrl);
            setActiveTool(courseStatisticLink);
            currentToolCtr = statisticsCtrl;
        }
    } else {
        delayedClose = Delayed.courseStatistics;
    }
}
Also used : StatisticMainController(org.olat.course.statistic.StatisticMainController) ICourse(org.olat.course.ICourse)

Aggregations

ICourse (org.olat.course.ICourse)2 StatisticMainController (org.olat.course.statistic.StatisticMainController)2