multiple_answer_combination_true_false.class.php 978 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * File containing the MultipleAnswer class.
  5. * @package chamilo.exercise
  6. * @author Eric Marguin
  7. * @version $Id: admin.php 10680 2007-01-11 21:26:23Z pcool $
  8. */
  9. /**
  10. * Code
  11. */
  12. /**
  13. CLASS MultipleAnswer
  14. *
  15. * This class allows to instantiate an object of type MULTIPLE_ANSWER (MULTIPLE CHOICE, MULTIPLE ANSWER),
  16. * extending the class question
  17. *
  18. * @author Eric Marguin
  19. * @package chamilo.exercise
  20. **/
  21. class MultipleAnswerCombinationTrueFalse extends MultipleAnswerCombination
  22. {
  23. static $typePicture = 'mcmaco.gif';
  24. static $explanationLangVar = 'MultipleAnswerCombinationTrueFalse';
  25. var $options;
  26. /**
  27. * Constructor
  28. */
  29. function MultipleAnswerCombinationTrueFalse(){
  30. parent::question();
  31. $this -> type = MULTIPLE_ANSWER_COMBINATION_TRUE_FALSE;
  32. $this -> isContent = $this-> getIsContent();
  33. $this->options = array('1'=>get_lang('True'),'0' =>get_lang('False'), '2' =>get_lang('DontKnow'));
  34. }
  35. }