4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
37 $this->ctrl = $DIC->ctrl();
38 $this->
user = $DIC->user();
39 $database = $DIC->database();
40 $logger = $DIC->logger()->root();
48 parent::__construct($a_parent_obj, $a_parent_cmd);
50 $this->
addColumn($this->lng->txt(
"title"),
"title");
51 $this->
addColumn($this->lng->txt(
"passed"),
"passed");
52 $this->
addColumn($this->lng->txt(
"action"),
"");
54 $this->
setTitle($this->lng->txt(
"excv_create"));
57 $this->
setRowTemplate(
"tpl.exc_verification_row.html",
"Modules/Exercise");
71 $certificateArray = $this->userCertificateRepository
72 ->fetchActiveCertificatesByTypeForPresentation($userId,
'exc');
78 'id' => $certificate->getUserCertificate()->getObjId(),
79 'title' => $certificate->getObjectTitle(),
96 $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);
97 $this->tpl->setVariable(
"PASSED", ($a_set[
"passed"]) ? $this->lng->txt(
"yes") :
98 $this->lng->txt(
"no"));
100 if ($a_set[
"passed"]) {
101 $ilCtrl->setParameter($this->parent_obj,
"exc_id", $a_set[
"id"]);
103 $this->tpl->setVariable(
"URL_SELECT",
$action);
104 $this->tpl->setVariable(
"TXT_SELECT", $this->lng->txt(
"select"));
setDescription($a_val)
Set description.
__construct( $a_parent_obj, $a_parent_cmd="", ilUserCertificateRepository $userCertificateRepository=null)
getItems()
Get all achieved test certificates for the current user.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
if(@file_exists(dirname(__FILE__).'/lang/eng.php')) $certificate
List all completed exercises for current user.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
fillRow($a_set)
Fill template row.
$userCertificateRepository
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.