Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/tests/scripts/insert_sessions_categories.php

17 lines
498 B

<?php
/* For licensing terms, see /license.txt */
/**
* This script generates four session categories.
*/
require_once '../../main/inc/global.inc.php';
api_protect_admin_script();
$categories = array(
'capacitaciones',
'programas',
'especializaciones',
'cursos prácticos'
);
$tableSessionCategory = Database::get_main_table(TABLE_MAIN_SESSION_CATEGORY);
foreach ($categories as $category) {
Database::query("INSERT INTO $tableSessionCategory (name) VALUES ('$category')");
}