aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/course/evaluation.php
blob: 7f7d3010fb24482e454f0edb8203c91fd79bc269 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
class Course_EvaluationController extends AuthenticatedController
{
    public function index_action()
    {
        Navigation::activateItem('course/evaluation');
        $this->evaluations = Questionnaire::findBySQL(
            "INNER JOIN `questionnaire_eval_assignments` USING(`questionnaire_id`)
            WHERE `course_id` = ? AND `applied` = 1
            ORDER BY `questionnaires`.`startdate` DESC",
            [Context::getId()]);
        $this->render_template('course/evaluation/index', $this->layout);
    }
}