4 include_once (
'./Services/Verification/classes/class.ilVerificationObject.php');
24 return array(
"issued_on" => self::TYPE_DATE,
25 "file" => self::TYPE_STRING
44 $lng->loadLanguageModule(
"exercise");
47 $newObj->setTitle($a_exercise->
getTitle());
50 include_once
"Services/Tracking/classes/class.ilLPMarks.php";
52 $newObj->setProperty(
"issued_on",
56 include_once
"Services/Certificate/classes/class.ilCertificate.php";
57 include_once
"Modules/Exercise/classes/class.ilExerciseCertificateAdapter.php";
59 $certificate = $certificate->outCertificate(array(
"user_id" => $a_user_id),
false);
69 $file_name =
"exc_".$a_exercise->getId().
"_".$a_user_id.
".pdf";
70 if(file_put_contents(
$path.$file_name, $certificate))
72 $newObj->setProperty(
"file", $file_name);