multiple_answer_combination_true_false.class.php 803 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Class MultipleAnswer
  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. static $typePicture = 'mcmaco.png';
  15. static $explanationLangVar = 'MultipleAnswerCombinationTrueFalse';
  16. var $options;
  17. /**
  18. * Constructor
  19. */
  20. function MultipleAnswerCombinationTrueFalse()
  21. {
  22. parent::question();
  23. $this -> type = MULTIPLE_ANSWER_COMBINATION_TRUE_FALSE;
  24. $this -> isContent = $this-> getIsContent();
  25. $this->options = array('1'=>get_lang('True'),'0' =>get_lang('False'), '2' =>get_lang('DontKnow'));
  26. }
  27. }