/** * Constructor. * @param string $hint The hint text * @param bool $shownumcorrect whether the number of right parts should be shown * @param bool $clearwrong whether the wrong parts should be reset. * @param bool $showchoicefeedback whether to show the feedback for each choice. */ public function __construct($id, $hint, $hintformat, $shownumcorrect, $clearwrong, $showchoicefeedback) { parent::__construct($id, $hint, $hintformat, $shownumcorrect, $clearwrong); $this->showchoicefeedback = $showchoicefeedback; }
/** * Constructor. * @param int the hint id from the database. * @param string $hint The hint text * @param int the corresponding text FORMAT_... type. * @param bool $shownumcorrect whether the number of right parts should be shown. * @param bool $clearwrong whether the wrong parts should be reset. * @param string options a number of specific hint keys, separated by line break character. */ public function __construct($id, $hint, $hintformat, $shownumcorrect, $clearwrong, $options) { parent::__construct($id, $hint, $hintformat, $shownumcorrect, $clearwrong); $this->options = $options; }
/** * Constructor. * @param int the hint id from the database. * @param string $hint The hint text * @param int the corresponding text FORMAT_... type. * @param bool $shownumcorrect whether the number of right parts should be shown * @param bool $clearwrong whether the wrong parts should be reset. */ public function __construct($id, $hint, $hintformat, $shownumcorrect, $clearwrong, $statewhichincorrect) { parent::__construct($id, $hint, $hintformat, $shownumcorrect, $clearwrong); $this->statewhichincorrect = $statewhichincorrect; }