/** * returns boolean wether the question * is answered during test pass or not * * (overwrites method in class assQuestion) * * @param integer $active_id * @param integer $pass * * @return boolean $answered */ public function isAnswered($active_id, $pass) { $numExistingSolutionRecords = assQuestion::getNumExistingSolutionRecords($active_id, $pass, $this->getId()); return $numExistingSolutionRecords > 0; }