/** * 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) { parent::__construct($id, $hint, $hintformat); $this->shownumcorrect = $shownumcorrect; $this->clearwrong = $clearwrong; }