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(
"wsp");
47 $newObj->setTitle($a_test->
getTitle());
57 include_once
"Services/Certificate/classes/class.ilCertificate.php";
58 include_once
"Modules/Test/classes/class.ilTestCertificateAdapter.php";
60 $certificate = $certificate->outCertificate(array(
"active_id" => $active_id,
"pass" =>
$pass),
false);
70 $file_name =
"tst_".$a_test->getId().
"_".$a_user_id.
"_".$active_id.
".pdf";
71 if(file_put_contents(
$path.$file_name, $certificate))
73 $newObj->setProperty(
"file", $file_name);