| Total Complexity | 3 |
| Total Lines | 59 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class Answers extends ActiveRecordModel |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string $tableName name of the database table. |
||
| 14 | */ |
||
| 15 | protected $tableName = "Answers"; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Columns in the table. |
||
| 19 | * |
||
| 20 | * @var integer $id primary key auto incremented. |
||
| 21 | */ |
||
| 22 | public $id; |
||
| 23 | public $questionId; |
||
| 24 | public $acronym; |
||
| 25 | public $answer; |
||
| 26 | public $points; |
||
| 27 | public $created; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Verify the acronym and the password, if successful the object |
||
| 31 | * contains all details from the databse row. |
||
| 32 | * |
||
| 33 | * @param string $acronym acronym to check. |
||
| 34 | * @param string $question the question asked. |
||
| 35 | * |
||
| 36 | * @return boolean true if okey, false if something went wrong. |
||
| 37 | */ |
||
| 38 | public function saveAnswer($di) |
||
| 44 | } |
||
| 45 | |||
| 46 | |||
| 47 | /** |
||
| 48 | * Change character to ÅÄÖ if needed. |
||
| 49 | * |
||
| 50 | * @param string $text The string/text to be checked. |
||
| 51 | * |
||
| 52 | * @return array |
||
| 53 | */ |
||
| 54 | public function changeCharacter($text) |
||
| 71 |