aiken_classes.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. *
  8. * @package chamilo.exercise
  9. */
  10. /**
  11. * Aiken2Question transformation class.
  12. */
  13. class Aiken2Question extends Question
  14. {
  15. /**
  16. * Include the correct answer class and create answer.
  17. */
  18. public function setAnswer()
  19. {
  20. switch ($this->type) {
  21. case MCUA:
  22. $answer = new AikenAnswerMultipleChoice($this->id);
  23. return $answer;
  24. default:
  25. $answer = null;
  26. break;
  27. }
  28. return $answer;
  29. }
  30. public function createAnswersForm($form)
  31. {
  32. return true;
  33. }
  34. /**
  35. * {@inheritdoc}
  36. */
  37. public function processAnswersCreation($form, $exercise)
  38. {
  39. return true;
  40. }
  41. }
  42. /**
  43. * Class.
  44. *
  45. * @package chamilo.exercise
  46. */
  47. class AikenAnswerMultipleChoice extends Answer
  48. {
  49. }