aiken_classes.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * @author Claro Team <cvs@claroline.net>
  5. * @author Yannick Warnier <yannick.warnier@beeznest.com> - updated ImsAnswerHotspot to match QTI norms
  6. * @author César Perales <cesar.perales@gmail.com> Updated function names and import files for Aiken format support
  7. * @package chamilo.exercise
  8. */
  9. /**
  10. * Aiken2Question transformation class
  11. */
  12. class Aiken2Question extends Question
  13. {
  14. /**
  15. * Include the correct answer class and create answer
  16. */
  17. function setAnswer()
  18. {
  19. switch ($this->type) {
  20. case MCUA:
  21. $answer = new AikenAnswerMultipleChoice($this->id);
  22. return $answer;
  23. default:
  24. $answer = null;
  25. break;
  26. }
  27. return $answer;
  28. }
  29. public function createAnswersForm($form)
  30. {
  31. return true;
  32. }
  33. /**
  34. * @inheritdoc
  35. */
  36. public function processAnswersCreation($form, $exercise)
  37. {
  38. return true;
  39. }
  40. }
  41. /**
  42. * Class
  43. * @package chamilo.exercise
  44. */
  45. class AikenAnswerMultipleChoice extends Answer
  46. {
  47. }