data_exe.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php //$id$
  2. /**
  3. * This script contains the data to fill (or empty) the database with using
  4. * the fillers in this directory.
  5. * @author Yannick Warnier <yannick.warnier@dokeos.com>
  6. *
  7. */
  8. /**
  9. * Initialisation section
  10. */
  11. $courses = array();
  12. $courses[] = array(
  13. 'code' => 'ENGLISH101',
  14. 'title' => 'English for beginners',
  15. 'description' => 'English course',
  16. 'category_code' => 'PROJ',
  17. 'course_language' => 'english',
  18. 'user_id' => 1,
  19. 'expiration_date' => '2020-09-01 00:00:00',
  20. 'exemplary_content' => true,
  21. 'exes' => array(
  22. 'exe' => array(
  23. 'title' => 'Demo',
  24. 'time' => 180,
  25. 'attempts' => 1,
  26. 'random' => 100,
  27. 'pass_percentage' => 70,
  28. 'review_answers' => 1,
  29. ),
  30. ),
  31. );
  32. $qst = array(
  33. 0 => array(
  34. 'title' => 'Demo question',
  35. 'desc' => 'What do you think about XYZ?',
  36. 'type' => 1, //1=Unique answer, see question.class.php
  37. 'answers' => array(
  38. 0 => array (
  39. 'title' => 'A',
  40. 'correct' => 1,
  41. 'score' => 1,
  42. ),
  43. 1 => array (
  44. 'title' => 'B',
  45. 'correct' => 0,
  46. 'score' => 0,
  47. ),
  48. 2 => array (
  49. 'title' => 'C',
  50. 'correct' => 0,
  51. 'score' => 0,
  52. ),
  53. 3 => array (
  54. 'title' => 'D',
  55. 'correct' => 0,
  56. 'score' => 0,
  57. ),
  58. ),
  59. ),
  60. );