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/public/main/gradebook/personal_stats.php

34 lines
747 B

<?php
/* See license terms in /license.txt */
require_once __DIR__.'/../inc/global.inc.php';
$categoryId = isset($_GET['selectcat']) ? intval($_GET['selectcat']) : false;
if (empty($categoryId)) {
api_not_allowed(false);
}
$userId = api_get_user_id();
$cats = Category::load($categoryId);
if (isset($cats[0])) {
$cat = $cats[0];
}
$allcat = $cats[0]->get_subcategories($userId, api_get_course_id(), api_get_session_id());
$alleval = $cats[0]->get_evaluations($userId);
$alllink = $cats[0]->get_links($userId);
$gradebooktable = new GradebookTable(
$cat,
$allcat,
$alleval,
$alllink,
[],
false
);
$gradebooktable->userId = $userId;
$table = $gradebooktable->return_table();
echo $gradebooktable->getGraph();