/** * Constructor. * @param string $mode which report these options are for. * @param object $quiz the settings for the quiz being reported on. * @param object $cm the course module objects for the quiz being reported on. * @param object $coures the course settings for the coures this quiz is in. */ public function __construct($mode, $quiz, $cm, $course) { $this->mode = $mode; $this->quiz = $quiz; $this->cm = $cm; $this->course = $course; $this->usercanseegrades = quiz_report_should_show_grades($quiz, context_module::instance($cm->id)); }
/** * Constructor. * @param string $mode which report these options are for. * @param object $quiz the settings for the quiz being reported on. * @param object $cm the course module objects for the quiz being reported on. * @param object $coures the course settings for the coures this quiz is in. */ public function __construct($mode, $quiz, $cm, $course) { $this->mode = $mode; $this->quiz = $quiz; $this->cm = $cm; $this->course = $course; $this->usercanseegrades = quiz_report_should_show_grades($quiz); }