multiple_answer_combination_true_false.class.php 898 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Class MultipleAnswerCombinationTrueFalse.
  5. *
  6. * This class allows to instantiate an object of type MULTIPLE_ANSWER (MULTIPLE CHOICE, MULTIPLE ANSWER),
  7. * extending the class question
  8. *
  9. * @author Eric Marguin
  10. *
  11. * @package chamilo.exercise
  12. */
  13. class MultipleAnswerCombinationTrueFalse extends MultipleAnswerCombination
  14. {
  15. public $typePicture = 'mcmaco.png';
  16. public $explanationLangVar = 'MultipleAnswerCombinationTrueFalse';
  17. public $options;
  18. /**
  19. * Constructor.
  20. */
  21. public function __construct()
  22. {
  23. parent::__construct();
  24. $this->type = MULTIPLE_ANSWER_COMBINATION_TRUE_FALSE;
  25. $this->isContent = $this->getIsContent();
  26. $this->options = [
  27. '1' => get_lang('True'),
  28. '0' => get_lang('False'),
  29. '2' => get_lang('DontKnow'),
  30. ];
  31. }
  32. }