4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
32 $database = $DIC->database();
33 $logger = $DIC->logger()->root();
40 parent::__construct($a_parent_obj, $a_parent_cmd);
42 $this->
addColumn($this->lng->txt(
"title"),
"title");
43 $this->
addColumn($this->lng->txt(
"passed"),
"passed");
44 $this->
addColumn($this->lng->txt(
"action"),
"");
46 $this->
setTitle($this->lng->txt(
"tstv_create"));
49 $this->
setRowTemplate(
"tpl.il_test_verification_row.html",
"Modules/Test");
66 $certificateArray = $this->userCertificateRepository->fetchActiveCertificatesByTypeForPresentation($userId,
'tst');
71 'id' => $certificate->getUserCertificate()->getObjId(),
72 'title' => $certificate->getObjectTitle(),
90 $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);
91 $this->tpl->setVariable(
"PASSED", ($a_set[
"passed"]) ? $this->lng->txt(
"yes") :
92 $this->lng->txt(
"no"));
94 if ($a_set[
"passed"]) {
95 $ilCtrl->setParameter($this->parent_obj,
"tst_id", $a_set[
"id"]);
97 $this->tpl->setVariable(
"URL_SELECT",
$action);
98 $this->tpl->setVariable(
"TXT_SELECT", $this->lng->txt(
"select"));
setDescription($a_val)
Set description.
$userCertificateRepository
fillRow($a_set)
Fill template row.
getItems()
Get all completed tests.
__construct( $a_parent_obj, $a_parent_cmd="", ilUserCertificateRepository $userCertificateRepository=null)
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
if(@file_exists(dirname(__FILE__).'/lang/eng.php')) $certificate
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
List all completed tests for current user.