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(
"scov_create"));
33 $this->
setRowTemplate(
"tpl.sahs_verification_row.html",
"Modules/ScormAicc");
34 $this->
setFormAction($ilCtrl->getFormAction($a_parent_obj, $a_parent_cmd));
48 include_once
"Services/Certificate/classes/class.ilCertificate.php";
52 $root = $tree->getNodeData($tree->getRootId());
53 foreach($tree->getSubTree($root,
true,
"sahs") as $node)
55 $obj_ids[] = $node[
"obj_id"];
59 include_once
"./Services/Tracking/classes/class.ilObjUserTracking.php";
60 include_once
"./Services/Tracking/classes/class.ilLPStatus.php";
61 include_once
"./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php";
62 include_once
"./Modules/ScormAicc/classes/class.ilObjSCORMLearningModule.php";
63 include_once
"./Modules/Scorm2004/classes/class.ilObjSCORM2004LearningModule.php";
64 include_once
"./Modules/ScormAicc/classes/class.ilSCORMCertificateAdapter.php";
66 foreach(ilCertificate::areObjectsActive($obj_ids) as $obj_id => $active)
82 $lpdata = $completed =
false;
104 "passed" => (
bool)$completed);
123 $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);
124 $this->tpl->setVariable(
"PASSED", ($a_set[
"passed"]) ? $this->lng->txt(
"yes") :
125 $this->lng->txt(
"no"));
129 $ilCtrl->setParameter($this->parent_obj,
"lm_id", $a_set[
"id"]);
130 $action = $ilCtrl->getLinkTarget($this->parent_obj,
"save");
131 $this->tpl->setVariable(
"URL_SELECT", $action);
132 $this->tpl->setVariable(
"TXT_SELECT", $this->lng->txt(
"select"));
setDescription($a_val)
Set description.
List all completed learning modules for current user.
fillRow($a_set)
Fill template row.
static _isComplete($adapter)
Checks the status of the certificate.
static _getCourseCompletionForUser($a_id, $a_user)
Get the completion of a SCORM module for a given user.
__construct($a_parent_obj, $a_parent_cmd="")
Constructor.
static _lookupTitle($a_id)
lookup object title
static _lookupSubType($a_obj_id)
lookup subtype id (scorm, aicc, hacp)
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
static _enabledLearningProgress()
check wether learing progress is enabled or not
static _hasUserCompleted($a_obj_id, $a_user_id)
Lookup user object completion.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
Class ilObjSCORM2004LearningModule.
getItems()
Get all completed tests.
SCORM certificate adapter.
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.
Class ilObjSCORMLearningModule.
static _getCourseCompletionForUser($a_id, $a_user)
Get the completion of a SCORM module for a given user.