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/main/inc/ajax/events.ajax.php

25 lines
727 B

<?php
/* For licensing terms, see /license.txt */
require_once '../global.inc.php';
$id = isset($_REQUEST['id']) ? $_REQUEST['id'] : null;
$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : null;
$event_name = isset($_REQUEST['eventName']) ? $_REQUEST['eventName'] : null;
api_protect_admin_script();
switch ($action) {
case 'getEventTypes':
$events = get_all_event_types();
print json_encode($events);
break;
case 'getUsers':
$users = UserManager::get_user_list();
print json_encode($users);
break;
case 'get_event_users':
$users = get_event_users($event_name);
print json_encode($users);
break;
}
exit;