multiple_answer_combination_true_false.class.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. if(class_exists('MultipleAnswerCombinationTrueFalse')) { return true; }
  13. require_once 'multiple_answer_combination.class.php';
  14. /**
  15. CLASS MultipleAnswer
  16. *
  17. * This class allows to instantiate an object of type MULTIPLE_ANSWER (MULTIPLE CHOICE, MULTIPLE ANSWER),
  18. * extending the class question
  19. *
  20. * @author Eric Marguin
  21. * @package chamilo.exercise
  22. **/
  23. class MultipleAnswerCombinationTrueFalse extends MultipleAnswerCombination {
  24. static $typePicture = 'mcmaco.gif';
  25. static $explanationLangVar = 'MultipleAnswerCombinationTrueFalse';
  26. var $options;
  27. /**
  28. * Constructor
  29. */
  30. function MultipleAnswerCombinationTrueFalse(){
  31. parent::question();
  32. $this -> type = MULTIPLE_ANSWER_COMBINATION_TRUE_FALSE;
  33. $this -> isContent = $this-> getIsContent();
  34. $this->options = array('1'=>get_lang('True'),'0' =>get_lang('False'), '2' =>get_lang('DontKnow'));
  35. }
  36. }