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; } }
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; } }
public function isEvaluation() { return $this->question_helper->isEvaluation(); }