multiple_answer_combination_true_false.class.php 913 B

123456789101112131415161718192021222324252627282930313233
  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. * @package chamilo.exercise
  11. **/
  12. class MultipleAnswerCombinationTrueFalse extends MultipleAnswerCombination
  13. {
  14. public static $typePicture = 'mcmaco.png';
  15. public static $explanationLangVar = 'MultipleAnswerCombinationTrueFalse';
  16. public $options;
  17. /**
  18. * Constructor
  19. */
  20. public function __construct()
  21. {
  22. parent::__construct();
  23. $this->type = MULTIPLE_ANSWER_COMBINATION_TRUE_FALSE;
  24. $this->isContent = $this->getIsContent();
  25. $this->options = array(
  26. '1' => get_lang('True'),
  27. '0' => get_lang('False'),
  28. '2' => get_lang('DontKnow'),
  29. );
  30. }
  31. }