4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
20 public function __construct($a_parent_obj, $a_parent_cmd =
"")
26 $this->
addColumn($this->lng->txt(
"title"),
"title");
27 $this->
addColumn($this->lng->txt(
"passed"),
"passed");
28 $this->
addColumn($this->lng->txt(
"action"),
"");
30 $this->
setTitle($this->lng->txt(
"tstv_create"));
33 $this->
setRowTemplate(
"tpl.il_test_verification_row.html",
"Modules/Test");
34 $this->
setFormAction($ilCtrl->getFormAction($a_parent_obj, $a_parent_cmd));
46 include_once
"Modules/Test/classes/class.ilObjTest.php";
53 $active_id =
$test->getActiveIdOfUser($ilUser->getId());
54 if(
$test->canShowCertificate($ilUser->getId(), $active_id))
56 $data[] = array(
"id" => $test_id,
74 $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);
75 $this->tpl->setVariable(
"PASSED", ($a_set[
"passed"]) ? $this->lng->txt(
"yes") :
76 $this->lng->txt(
"no"));
80 $ilCtrl->setParameter($this->parent_obj,
"tst_id", $a_set[
"id"]);
81 $action = $ilCtrl->getLinkTarget($this->parent_obj,
"save");
82 $this->tpl->setVariable(
"URL_SELECT", $action);
83 $this->tpl->setVariable(
"TXT_SELECT", $this->lng->txt(
"select"));