4 include_once(
'./Services/Verification/classes/class.ilVerificationObject.php');
24 return array(
"issued_on" => self::TYPE_DATE,
25 "file" => self::TYPE_STRING
44 $lng = $DIC->language();
46 $lng->loadLanguageModule(
"exercise");
49 $newObj->setTitle($a_exercise->
getTitle());
52 include_once
"Services/Tracking/classes/class.ilLPMarks.php";
60 include_once
"Services/Certificate/classes/class.ilCertificate.php";
61 include_once
"Modules/Exercise/classes/class.ilExerciseCertificateAdapter.php";
70 $path = self::initStorage($newObj->getId(),
"certificate");
72 $file_name =
"exc_" . $a_exercise->
getId() .
"_" . $a_user_id .
".pdf";
74 $newObj->setProperty(
"file", $file_name);
static createFromExercise(ilObjExercise $a_exercise, $a_user_id)
Import relevant properties from given exercise.
if(@file_exists(dirname(__FILE__).'/lang/eng.php')) $certificate
Verification object base class.
getId()
get object id public
getTitle()
get object title public
getDescription()
get object description
Create styles array
The data for the language used.
Exercise certificate adapter.