Exemplo n.º 1
0
 protected function buildInternal()
 {
     parent::buildInternal();
     // hide hints frame for CME quizzes and evaluations
     if ($this->helper->isEvaluation() || $this->helper->isQuiz()) {
         $this->ui->getWidget('hints_frame')->visible = false;
     }
 }
Exemplo n.º 2
0
 protected function initInternal()
 {
     parent::initInternal();
     $this->helper = $this->getQuestionHelper($this->inquisition);
     $this->helper->initInternal();
     // for evaluations, hide correct option column
     if ($this->helper->isEvaluation()) {
         $view = $this->ui->getWidget('question_option_table_view');
         $correct_column = $view->getColumn('correct_option');
         $correct_column->visible = false;
     }
 }
Exemplo n.º 3
0
 public function isEvaluation()
 {
     return $this->question_helper->isEvaluation();
 }