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.
		
		
		
		
		
			
		
			
				
					
					
						
							27 lines
						
					
					
						
							724 B
						
					
					
				
			
		
		
	
	
							27 lines
						
					
					
						
							724 B
						
					
					
				<?php
 | 
						|
/* For licensing terms, see /license.txt */
 | 
						|
/**
 | 
						|
 * This script generates four session categories.
 | 
						|
 */
 | 
						|
die('Remove the "die()" statement on line '.__LINE__.' to execute this script'.PHP_EOL);
 | 
						|
require_once __DIR__.'/../../public/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
 | 
						|
        ]
 | 
						|
    );
 | 
						|
}
 | 
						|
 |