4 include_once (
'./Services/Verification/classes/class.ilVerificationObject.php');
24 return array(
"issued_on" => self::TYPE_DATE,
25 "file" => self::TYPE_STRING
39 $lng->loadLanguageModule(
"crs");
42 $newObj->setTitle($a_course->
getTitle());
45 include_once
"Services/Tracking/classes/class.ilLPMarks.php";
47 $newObj->setProperty(
"issued_on",
51 include_once
"Services/Certificate/classes/class.ilCertificate.php";
52 include_once
"Modules/Course/classes/class.ilCourseCertificateAdapter.php";
54 $certificate = $certificate->outCertificate(array(
"user_id" => $a_user_id),
false);
64 $file_name =
"crs_".$a_course->getId().
"_".$a_user_id.
".pdf";
65 if(file_put_contents(
$path.$file_name, $certificate))
67 $newObj->setProperty(
"file", $file_name);