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/reports/reports.cli.php

58 lines
1.2 KiB

<?php
/* For licensing terms, see /license.txt */
require_once 'reports.lib.php';
$longopts = array(
'course:',
'tool:',
'ci:',
'cn:',
'sci:',
'scn:',
'ssci:',
'sscn:',
'link:',
'addValue',
'addKey',
'help',
'clearAll',
'score:',
'progress:',
'time:',
'attempt:',
'session:',
'attempt:',
'uid:',
'key:',
'addDBKeys',
'build');
$options = getopt("", $longopts);
echo "\n\n";
if (array_key_exists('help', $options))
echo "help message\n";
else if (array_key_exists('clearAll', $options)) {
reports_clearAll();
} else if (array_key_exists('build', $options)) {
reports_build();
} else if (array_key_exists('addDBKeys', $options)) {
reports_addDBKeys();
} else if (array_key_exists('addValue', $options)) {
reports_addValue($options['key'], $options['session'], $options['uid'],
$options['attempt'], $options['score'],
$options['progress'], $options['time']);
} else if (array_key_exists('addKey', $options)) {
echo reports_addKey($options['course'], $options['tool'],
$options['ci'], $options['cn'],
$options['sci'], $options['scn'],
$options['ssci'], $options['sscn'],
$options['link']);
echo "\n";
} else
echo "action not found\n";
echo "\n";
?>