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.
26 lines
619 B
26 lines
619 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();
|
|
|
|
$accessUrlId = api_get_current_access_url_id();
|
|
|
|
$categories = array(
|
|
'capacitaciones',
|
|
'programas',
|
|
'especializaciones',
|
|
'cursos prácticos'
|
|
);
|
|
$tableSessionCategory = Database::get_main_table(TABLE_MAIN_SESSION_CATEGORY);
|
|
foreach ($categories as $category) {
|
|
Database::insert(
|
|
$tableSessionCategory,
|
|
[
|
|
'name' => $category,
|
|
'access_url_id' => $accessUrlId
|
|
]
|
|
);
|
|
}
|
|
|