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());
53 $date = $a_test->getPassFinishDate($active_id,
$pass);
57 include_once
"Services/Certificate/classes/class.ilCertificate.php";
58 include_once
"Modules/Test/classes/class.ilTestCertificateAdapter.php";
67 $path = self::initStorage($newObj->getId(),
"certificate");
69 $file_name =
"tst_" . $a_test->
getId() .
"_" . $a_user_id .
"_" . $active_id .
".pdf";
71 $newObj->setProperty(
"file", $file_name);
static createFromTest(ilObjTest $a_test, $a_user_id)
Import relevant properties from given test.
getActiveIdOfUser($user_id="", $anonymous_id="")
Gets the active id of a given user.
if(@file_exists(dirname(__FILE__).'/lang/eng.php')) $certificate
Verification object base class.
getId()
get object id public
static _getResultPass($active_id)
Retrieves the pass number that should be counted for a given user.
getTitle()
get object title public
getDescription()
get object description
Create styles array
The data for the language used.
Test certificate adapter.