Пример #1
0
 public function getTestResult()
 {
     global $db;
     $result = TestResult::getInstance()->calculateResult($this->getAnswers(), $this->getSex());
     $db->update('mbti_student', array('person_formula' => $result['formula']), array('user_id' => $this->id));
     $result['name'] = $this->getName();
     return $result;
 }