Skip to content
Snippets Groups Projects
Commit 7ccfb8f4 authored by DELARUELLE Myriam's avatar DELARUELLE Myriam
Browse files

fix récupération des activités manuelles

parent 3ce5f9e8
Branches
No related tags found
No related merge requests found
...@@ -210,7 +210,8 @@ $tool_lp_renderer = $PAGE->get_renderer('tool_lp'); ...@@ -210,7 +210,8 @@ $tool_lp_renderer = $PAGE->get_renderer('tool_lp');
$user_competency = \core_competency\api::get_user_competency($studentid, $competencyid); $user_competency = \core_competency\api::get_user_competency($studentid, $competencyid);
//Evidences : on met la requête en sale ici pour le moment... //Evidences : on met la requête en sale ici pour le moment...
if ($user_competency) { //Ne récupère pas les infos sur les activités manuelle
/*if ($user_competency) {
$params=array('usercompid'=> $user_competency->get('id')); $params=array('usercompid'=> $user_competency->get('id'));
$sql = 'SELECT e.*, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename $sql = 'SELECT e.*, u.firstname, u.lastname, u.firstnamephonetic, u.lastnamephonetic, u.middlename, u.alternatename
FROM {competency_evidence} e FROM {competency_evidence} e
...@@ -219,13 +220,13 @@ if ($user_competency) { ...@@ -219,13 +220,13 @@ if ($user_competency) {
WHERE e.usercompetencyid = :usercompid WHERE e.usercompetencyid = :usercompid
'; ';
$all_evidences = $DB->get_records_sql($sql, $params); $all_evidences = $DB->get_records_sql($sql, $params);
} }*/
//Pour récupérer l'user : user_summary_exporter::read_properties_definition() //Pour récupérer l'user : user_summary_exporter::read_properties_definition()
/*$user_cpt_all_data = new \tool_lp\output\user_competency_summary($user_competency); $user_cpt_all_data = new \tool_lp\output\user_competency_summary($user_competency);
$user_cpt_all_data = $user_cpt_all_data->export_for_template($tool_lp_renderer); $user_cpt_all_data = $user_cpt_all_data->export_for_template($tool_lp_renderer);
$all_evidences = $user_cpt_all_data->evidence;*/ $all_evidences = $user_cpt_all_data->evidence;
foreach($all_evidences as $evidence){ foreach($all_evidences as $evidence){
$userObj = $DB->get_record("user", array('id' => $evidence->actionuserid)); $userObj = $DB->get_record("user", array('id' => $evidence->actionuserid));
$evidence->actionuser=array(); $evidence->actionuser=array();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment