mirror of
https://github.com/idanoo/nzart-exam-generator
synced 2025-07-01 05:42:16 +00:00
Initial Commit
This commit is contained in:
commit
391177596e
41 changed files with 1233 additions and 0 deletions
31
includes/classes/class.answer.php
Executable file
31
includes/classes/class.answer.php
Executable file
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: daniel
|
||||
* Date: 12/30/16
|
||||
* Time: 2:09 PM
|
||||
*/
|
||||
|
||||
class Answer extends DataItem
|
||||
{
|
||||
|
||||
public static function _getClass()
|
||||
{
|
||||
return "Answer";
|
||||
}
|
||||
|
||||
public static function _getType()
|
||||
{
|
||||
return "answer";
|
||||
}
|
||||
|
||||
public function getAnswer()
|
||||
{
|
||||
return $this->answerdata_content;
|
||||
}
|
||||
|
||||
public function isCorrect()
|
||||
{
|
||||
return $this->answerdata_correct;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue