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";
51 $root = $tree->getNodeData($tree->getRootId());
52 foreach ($tree->getSubTree($root,
true,
"sahs") as $node) {
53 $obj_ids[] = $node[
"obj_id"];
56 include_once
"./Services/Tracking/classes/class.ilObjUserTracking.php";
57 include_once
"./Services/Tracking/classes/class.ilLPStatus.php";
58 include_once
"./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php";
59 include_once
"./Modules/ScormAicc/classes/class.ilObjSCORMLearningModule.php";
60 include_once
"./Modules/Scorm2004/classes/class.ilObjSCORM2004LearningModule.php";
61 include_once
"./Modules/ScormAicc/classes/class.ilSCORMCertificateAdapter.php";
63 foreach (ilCertificate::areObjectsActive($obj_ids) as $obj_id => $active) {
66 if (
$type ==
"scorm") {
73 $lpdata = $completed =
false;
92 "passed" => (
bool) $completed);
111 $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);
112 $this->tpl->setVariable(
"PASSED", ($a_set[
"passed"]) ? $this->lng->txt(
"yes") :
113 $this->lng->txt(
"no"));
115 if ($a_set[
"passed"]) {
116 $ilCtrl->setParameter($this->parent_obj,
"lm_id", $a_set[
"id"]);
117 $action = $ilCtrl->getLinkTarget($this->parent_obj,
"save");
118 $this->tpl->setVariable(
"URL_SELECT",
$action);
119 $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, )
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.
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.
getItems()
Get all completed tests.
SCORM certificate adapter.
Class ilObjSCORMLearningModule.
static _getCourseCompletionForUser($a_id, $a_user)
Get the completion of a SCORM module for a given user.