|
|
|
<?php
|
|
|
|
|
|
|
|
/* For licensing terms, see /license.txt */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This script contains the data to fill (or empty) the database using
|
|
|
|
* the fillers in this directory.
|
|
|
|
* It contains more than 10 courses, to enable testing pagination in the
|
|
|
|
* courses catalog. Courses are distributed in several languages and categories.
|
|
|
|
*
|
|
|
|
* @author Yannick Warnier <yannick.warnier@beeznest.com>
|
|
|
|
*/
|
|
|
|
$courses = [];
|
|
|
|
// 1
|
|
|
|
$courses[] = [
|
|
|
|
'code' => 'ENGLISH101',
|
|
|
|
'title' => 'English for beginners',
|
|
|
|
'description' => 'English course',
|
|
|
|
'category_code' => 'LANG',
|
|
|
|
'course_language' => 'english',
|
|
|
|
'user_id' => 1,
|
|
|
|
'expiration_date' => '2020-09-01 00:00:00',
|
|
|
|
'exemplary_content' => true,
|
|
|
|
];
|
|
|
|
// 2
|
|
|
|
$courses[] = [
|
|
|
|
'code' => 'SPANISH101',
|
|
|
|
'title' => 'Español para iniciantes',
|
|
|
|
'description' => 'Curso de español',
|
|
|
|
'category_code' => 'LANG',
|
|
|
|
'course_language' => 'spanish',
|
|
|
|
'user_id' => 1,
|
|
|
|
'expiration_date' => '2020-09-01 00:00:00',
|
|
|
|
'exemplary_content' => true,
|
|
|
|
];
|
|
|
|
// 3
|
|
|
|
$courses[] = [
|
|
|
|
'code' => 'FRENCH101',
|
|
|
|
'title' => 'Français pour débutants',
|
|
|
|
'description' => 'Cours de français',
|
|
|
|
'category_code' => 'LANG',
|
|
|
|
'course_language' => 'french',
|
|
|
|
'user_id' => 1,
|
|
|
|
'expiration_date' => '2020-09-01 00:00:00',
|
|
|
|
'exemplary_content' => true,
|
|
|
|
];
|
|
|
|
// 4
|
|
|
|
$courses[] = [
|
|
|
|
'code' => 'HISTLIT',
|
|
|
|
'title' => 'History of litterature',
|
|
|
|
'description' => 'History of English litterature from the Middle Ages to our times',
|
|
|
|
'category_code' => 'PROJ',
|
|
|
|
'course_language' => 'english',
|
|
|
|
'user_id' => 1,
|
|
|
|
'expiration_date' => '2020-09-01 00:00:00',
|
|
|
|
'exemplary_content' => true,
|
|
|
|
];
|
|
|
|
// 5
|
|
|
|
$courses[] = [
|
|
|
|
'code' => 'SOLARSYSTEM',
|
|
|
|
'title' => 'Our solar system',
|
|
|
|
'description' => 'Introduction to our solar system and the interactions between planets',
|
|
|
|
'category_code' => 'PROJ',
|
|
|
|
'course_language' => 'english',
|
|
|
|
'user_id' => 1,
|
|
|
|
'expiration_date' => '2020-09-01 00:00:00',
|
|
|
|
'exemplary_content' => true,
|
|
|
|
];
|
|
|
|
// 6
|
|
|
|
$courses[] = [
|
|
|
|
'code' => 'MARNAVIGATION',
|
|
|
|
'title' => 'Maritime Navigation',
|
|
|
|
'description' => 'Preparation course for the International Maritime Navigation exam',
|
|
|
|
'category_code' => 'PROJ',
|
|
|
|
'course_language' => 'english',
|
|
|
|
'user_id' => 1,
|
|
|
|
'expiration_date' => '2020-09-01 00:00:00',
|
|
|
|
'exemplary_content' => true,
|
|
|
|
];
|
|
|
|
// 7
|
|
|
|
$courses[] = [
|
|
|
|
'code' => 'NATGEO',
|
|
|
|
'title' => 'National Geography',
|
|
|
|
'description' => 'Introduction to geography at a national level',
|
|
|
|
'category_code' => 'PROJ',
|
|
|
|
'course_language' => 'english',
|
|
|
|
'user_id' => 1,
|
|
|
|
'expiration_date' => '2020-09-01 00:00:00',
|
|
|
|
'exemplary_content' => true,
|
|
|
|
];
|
|
|
|
// 8
|
|
|
|
$courses[] = [
|
|
|
|
'code' => 'JAPANESE101',
|
|
|
|
'title' => '日本語',
|
|
|
|
'description' => 'Japanese course for beginners',
|
|
|
|
'category_code' => 'LANG',
|
|
|
|
'course_language' => 'japanese',
|
|
|
|
'user_id' => 1,
|
|
|
|
'expiration_date' => '2020-09-01 00:00:00',
|
|
|
|
'exemplary_content' => true,
|
|
|
|
];
|
|
|
|
// 9
|
|
|
|
$courses[] = [
|
|
|
|
'code' => 'TIMEMGMT',
|
|
|
|
'title' => 'Time management',
|
|
|
|
'description' => 'Learn to manage your time efficiently',
|
|
|
|
'category_code' => 'PROJ',
|
|
|
|
'course_language' => 'english',
|
|
|
|
'user_id' => 1,
|
|
|
|
'expiration_date' => '2020-09-01 00:00:00',
|
|
|
|
'exemplary_content' => true,
|
|
|
|
];
|
|
|
|
// 10
|
|
|
|
$courses[] = [
|
|
|
|
'code' => 'SCRUM',
|
|
|
|
'title' => 'SCRUM project management basics',
|
|
|
|
'description' => 'Introduction to SCRUM project management for busy people',
|
|
|
|
'category_code' => 'PROJ',
|
|
|
|
'course_language' => 'english',
|
|
|
|
'user_id' => 1,
|
|
|
|
'expiration_date' => '2020-09-01 00:00:00',
|
|
|
|
'exemplary_content' => true,
|
|
|
|
];
|
|
|
|
// 11
|
|
|
|
$courses[] = [
|
|
|
|
'code' => 'D2DMATHS',
|
|
|
|
'title' => 'Day to day mathematics',
|
|
|
|
'description' => 'Mathematics for busy people',
|
|
|
|
'category_code' => 'PROJ',
|
|
|
|
'course_language' => 'english',
|
|
|
|
'user_id' => 1,
|
|
|
|
'expiration_date' => '2020-09-01 00:00:00',
|
|
|
|
'exemplary_content' => true,
|
|
|
|
];
|