plugin->loadType("candidateAssessment", 0); //$assessment = $TeKe->plugin->assessments->getAssessmentByUserToken($token)->getId(); $candidate_id = $TeKe->plugin->assessments->getCandidateByToken($token); $candidate = $TeKe->plugin->loadType("candidate", $candidate_id); $candidate->startAssessment(); //$obj_id = $obj->build(array("assessment"=>$assessment, "candidate"=>$candidate)); } else if ($token && get_input("give_up_button", "")) { $candidate_id = $TeKe->plugin->assessments->getCandidateByToken($token); $candidate = $TeKe->plugin->loadType("candidate", $candidate_id); $candidate->GiveUpAssessment(); } forward(WWW_ROOT."assessment?token=${token}"); ?>