multiple_answer_combination_true_false.class.php 912 B

1234567891011121314151617181920212223242526272829303132333435
  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 static $typePicture = 'mcmaco.png';
  16. public static $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. }