Fuente: https://github.com/chamilo/chamilo-lms/releases/download/v1.11.40/chamilo-1.11.40.zip sha256: 1cf4bf2cc7bae1ef1a1eff643235db1d552f78ddf4b6dd1e2d2dac9868679439 Snapshot independiente (rama huerfana); diffable vs 1.11.38. vendor incluido.
34 lines
746 B
PHP
34 lines
746 B
PHP
<?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();
|