4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
20 public function __construct($a_parent_obj, $a_parent_cmd =
"")
24 parent::__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(
"excv_create"));
33 $this->
setRowTemplate(
"tpl.exc_verification_row.html",
"Modules/Exercise");
34 $this->
setFormAction($ilCtrl->getFormAction($a_parent_obj, $a_parent_cmd));
46 include_once
"Modules/Exercise/classes/class.ilObjExercise.php";
47 include_once
"./Modules/Exercise/classes/class.ilExerciseCertificateAdapter.php";
48 include_once
"./Services/Certificate/classes/class.ilCertificate.php";
55 if($exc->hasUserCertificate($ilUser->getId()))
79 $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);
80 $this->tpl->setVariable(
"PASSED", ($a_set[
"passed"]) ? $this->lng->txt(
"yes") :
81 $this->lng->txt(
"no"));
85 $ilCtrl->setParameter($this->parent_obj,
"exc_id", $a_set[
"id"]);
86 $action = $ilCtrl->getLinkTarget($this->parent_obj,
"save");
87 $this->tpl->setVariable(
"URL_SELECT", $action);
88 $this->tpl->setVariable(
"TXT_SELECT", $this->lng->txt(
"select"));
setDescription($a_val)
Set description.
static _isComplete($adapter)
Checks the status of the certificate.
static _lookupTitle($a_id)
lookup object title
getItems()
Get all completed tests.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
List all completed exercises for current user.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
fillRow($a_set)
Fill template row.
static _lookupFinishedUserExercises($a_user_id)
Get all exercises for user.
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.
__construct($a_parent_obj, $a_parent_cmd="")
Constructor.
Exercise certificate adapter.