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.
25 lines
728 B
25 lines
728 B
<?php
|
|
/* For licensing terms, see /license.txt */
|
|
/**
|
|
* Show information about the OpenBadge class
|
|
* @author Angel Fernando Quiroz Campos <angel.quiroz@beeznest.com>
|
|
* @package chamilo.badge
|
|
*/
|
|
header('Content-Type: application/json');
|
|
|
|
require_once '../inc/global.inc.php';
|
|
|
|
$skillId = isset($_GET['id']) ? intval($_GET['id']) : 0;
|
|
|
|
$objSkill = new Skill();
|
|
$skill = $objSkill->get($skillId);
|
|
|
|
$json = array(
|
|
'name' => $skill['name'],
|
|
'description' => $skill['description'],
|
|
'image' => api_get_path(WEB_UPLOAD_PATH) . $skill['icon'],
|
|
'criteria' => api_get_path(WEB_CODE_PATH) . "badge/criteria.php?id=$skillId",
|
|
'issuer' => api_get_path(WEB_CODE_PATH) . "badge/issuer.php",
|
|
);
|
|
|
|
echo json_encode($json);
|
|
|