You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.1 KiB
56 lines
1.1 KiB
<?php
|
|
/* For licensing terms, see /license.txt */
|
|
|
|
/**
|
|
* @author Claro Team <cvs@claroline.net>
|
|
* @author Yannick Warnier <yannick.warnier@beeznest.com> - updated ImsAnswerHotspot to match QTI norms
|
|
* @author César Perales <cesar.perales@gmail.com> Updated function names and import files for Aiken format support
|
|
*
|
|
* @package chamilo.exercise
|
|
*/
|
|
|
|
/**
|
|
* Aiken2Question transformation class.
|
|
*/
|
|
class Aiken2Question extends Question
|
|
{
|
|
/**
|
|
* Include the correct answer class and create answer.
|
|
*/
|
|
public function setAnswer()
|
|
{
|
|
switch ($this->type) {
|
|
case MCUA:
|
|
$answer = new AikenAnswerMultipleChoice($this->id);
|
|
|
|
return $answer;
|
|
default:
|
|
$answer = null;
|
|
break;
|
|
}
|
|
|
|
return $answer;
|
|
}
|
|
|
|
public function createAnswersForm($form)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function processAnswersCreation($form, $exercise)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Class.
|
|
*
|
|
* @package chamilo.exercise
|
|
*/
|
|
class AikenAnswerMultipleChoice extends Answer
|
|
{
|
|
}
|
|
|