data_courses.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * This script contains the data to fill (or empty) the database using
  5. * the fillers in this directory.
  6. * It contains more than 10 courses, to enable testing pagination in the
  7. * courses catalog. Courses are distributed in several languages and categories.
  8. * @author Yannick Warnier <yannick.warnier@dokeos.com>
  9. *
  10. */
  11. $courses = array();
  12. // 1
  13. $courses[] = array(
  14. 'code' => 'ENGLISH101',
  15. 'title' => 'English for beginners',
  16. 'description' => 'English course',
  17. 'category_code' => 'LANG',
  18. 'course_language' => 'english',
  19. 'user_id' => 1,
  20. 'expiration_date' => '2020-09-01 00:00:00',
  21. 'exemplary_content' => true,
  22. );
  23. // 2
  24. $courses[] = array(
  25. 'code' => 'SPANISH101',
  26. 'title' => 'Español para iniciantes',
  27. 'description' => 'Curso de español',
  28. 'category_code' => 'LANG',
  29. 'course_language' => 'spanish',
  30. 'user_id' => 1,
  31. 'expiration_date' => '2020-09-01 00:00:00',
  32. 'exemplary_content' => true,
  33. );
  34. // 3
  35. $courses[] = array(
  36. 'code' => 'FRENCH101',
  37. 'title' => 'Français pour débutants',
  38. 'description' => 'Cours de français',
  39. 'category_code' => 'LANG',
  40. 'course_language' => 'french',
  41. 'user_id' => 1,
  42. 'expiration_date' => '2020-09-01 00:00:00',
  43. 'exemplary_content' => true,
  44. );
  45. // 4
  46. $courses[] = array(
  47. 'code' => 'HISTLIT',
  48. 'title' => 'History of litterature',
  49. 'description' => 'History of English litterature from the Middle Ages to our times',
  50. 'category_code' => 'PROJ',
  51. 'course_language' => 'english',
  52. 'user_id' => 1,
  53. 'expiration_date' => '2020-09-01 00:00:00',
  54. 'exemplary_content' => true,
  55. );
  56. // 5
  57. $courses[] = array(
  58. 'code' => 'SOLARSYSTEM',
  59. 'title' => 'Our solar system',
  60. 'description' => 'Introduction to our solar system and the interactions between planets',
  61. 'category_code' => 'PROJ',
  62. 'course_language' => 'english',
  63. 'user_id' => 1,
  64. 'expiration_date' => '2020-09-01 00:00:00',
  65. 'exemplary_content' => true,
  66. );
  67. // 6
  68. $courses[] = array(
  69. 'code' => 'MARNAVIGATION',
  70. 'title' => 'Maritime Navigation',
  71. 'description' => 'Preparation course for the International Maritime Navigation exam',
  72. 'category_code' => 'PROJ',
  73. 'course_language' => 'english',
  74. 'user_id' => 1,
  75. 'expiration_date' => '2020-09-01 00:00:00',
  76. 'exemplary_content' => true,
  77. );
  78. // 7
  79. $courses[] = array(
  80. 'code' => 'NATGEO',
  81. 'title' => 'National Geography',
  82. 'description' => 'Introduction to geography at a national level',
  83. 'category_code' => 'PROJ',
  84. 'course_language' => 'english',
  85. 'user_id' => 1,
  86. 'expiration_date' => '2020-09-01 00:00:00',
  87. 'exemplary_content' => true,
  88. );
  89. // 8
  90. $courses[] = array(
  91. 'code' => 'JAPANESE101',
  92. 'title' => '日本語',
  93. 'description' => 'Japanese course for beginners',
  94. 'category_code' => 'LANG',
  95. 'course_language' => 'japanese',
  96. 'user_id' => 1,
  97. 'expiration_date' => '2020-09-01 00:00:00',
  98. 'exemplary_content' => true,
  99. );
  100. // 9
  101. $courses[] = array(
  102. 'code' => 'TIMEMGMT',
  103. 'title' => 'Time management',
  104. 'description' => 'Learn to manage your time efficiently',
  105. 'category_code' => 'PROJ',
  106. 'course_language' => 'english',
  107. 'user_id' => 1,
  108. 'expiration_date' => '2020-09-01 00:00:00',
  109. 'exemplary_content' => true,
  110. );
  111. // 10
  112. $courses[] = array(
  113. 'code' => 'SCRUM',
  114. 'title' => 'SCRUM project management basics',
  115. 'description' => 'Introduction to SCRUM project management for busy people',
  116. 'category_code' => 'PROJ',
  117. 'course_language' => 'english',
  118. 'user_id' => 1,
  119. 'expiration_date' => '2020-09-01 00:00:00',
  120. 'exemplary_content' => true,
  121. );
  122. // 11
  123. $courses[] = array(
  124. 'code' => 'D2DMATHS',
  125. 'title' => 'Day to day mathematics',
  126. 'description' => 'Mathematics for busy people',
  127. 'category_code' => 'PROJ',
  128. 'course_language' => 'english',
  129. 'user_id' => 1,
  130. 'expiration_date' => '2020-09-01 00:00:00',
  131. 'exemplary_content' => true
  132. );