/** * This function set all certificates * * @param $referentiel_instance reference an instance of referentiel !) * @return bolean * @todo Finish documenting this function **/ function referentiel_regenere_certificats($referentiel_instance) { if ($referentiel_instance) { $records_users = referentiel_get_course_users($referentiel_instance); // echo "<br /> lib.php :: referentiel_get_course_users() :: 2018<br />\n"; if ($records_users) { foreach ($records_users as $record_u) { // echo "<br />DEBUG :: lib.php :: LIGNE 2948 \n"; // print_r($record_u); referentiel_regenere_certificat_user($record_u->id, $referentiel_instance->ref_referentiel); } } } }
function referentiel_liste_tous_etudiants($referentiel_instance) { // $records = referentiel_get_course_users($referentiel_instance); if (!$records) { error(get_string('noetudiant', 'referentiel'), "etudiant.php?d=" . $referentiel_instance->id . "&mode=add"); } else { // afficher // DEBUG // echo "<br/>DEBUG ::<br />\n"; // print_r($records); foreach ($records as $record) { referentiel_print_etudiant($record->id, "etudiant.php?d=" . $referentiel_instance->id . "&mode=selectetab"); } } }