mirror of
https://github.com/idanoo/nzart-exam-generator
synced 2025-07-02 14:22:17 +00:00
progress
This commit is contained in:
parent
b6876e601e
commit
0824aca6b9
4 changed files with 42 additions and 9 deletions
|
@ -38,6 +38,11 @@ class Question extends DataItem {
|
|||
return Answer::getAllWhere("answerdata_question = ".$this->getId());
|
||||
}
|
||||
|
||||
public function getCorrectAnswer()
|
||||
{
|
||||
return Answer::getWhere("answerdata_question = ".$this->getId()." and answerdata_correct = 1");
|
||||
}
|
||||
|
||||
public function getImage()
|
||||
{
|
||||
return $this->questiondata_image;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue