mirror of
https://github.com/idanoo/nzart-exam-generator.git
synced 2024-12-04 22:26:58 +00:00
36 lines
515 B
PHP
Executable File
36 lines
515 B
PHP
Executable File
<?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;
|
|
}
|
|
|
|
public static function checkIfCorrect($answer)
|
|
{
|
|
|
|
}
|
|
} |