Public Member Functions | |
ilObjAICCLearningModuleGUI ($a_data, $a_id, $a_call_by_reference, $a_prepare_output=true) | |
Constructor. | |
assignObject () | |
assign aicc object to aicc gui object | |
showTrackingItems () | |
save new learning module to db | |
showTrackingItem () | |
show tracking data |
Definition at line 42 of file class.ilObjAICCLearningModuleGUI.php.
ilObjAICCLearningModuleGUI::assignObject | ( | ) |
assign aicc object to aicc gui object
Reimplemented from ilObjSCORMLearningModuleGUI.
Reimplemented in ilObjHACPLearningModuleGUI.
Definition at line 64 of file class.ilObjAICCLearningModuleGUI.php.
{ if ($this->id != 0) { if ($this->call_by_reference) { $this->object =& new ilObjAICCLearningModule($this->id, true); } else { $this->object =& new ilObjAICCLearningModule($this->id, false); } } }
ilObjAICCLearningModuleGUI::ilObjAICCLearningModuleGUI | ( | $ | a_data, | |
$ | a_id, | |||
$ | a_call_by_reference, | |||
$ | a_prepare_output = true | |||
) |
Constructor.
public
Definition at line 49 of file class.ilObjAICCLearningModuleGUI.php.
References ilObjectGUI::$lng, and ilObjectGUI::ilObjectGUI().
{ global $lng; $lng->loadLanguageModule("content"); $this->type = "sahs"; $this->ilObjectGUI($a_data,$a_id,$a_call_by_reference,$a_prepare_output); #$this->tabs_gui =& new ilTabsGUI(); }
ilObjAICCLearningModuleGUI::showTrackingItem | ( | ) |
show tracking data
Reimplemented from ilObjSCORMLearningModuleGUI.
Definition at line 173 of file class.ilObjAICCLearningModuleGUI.php.
{ parent::showTrackingItem(); }
ilObjAICCLearningModuleGUI::showTrackingItems | ( | ) |
save new learning module to db
show tracking data
Reimplemented from ilObjSCORMLearningModuleGUI.
Definition at line 96 of file class.ilObjAICCLearningModuleGUI.php.
References $_GET, $tbl, and ilUtil::switchColor().
{ include_once "./classes/class.ilTableGUI.php"; // load template for table $this->tpl->addBlockfile("ADM_CONTENT", "adm_content", "tpl.table.html"); // load template for table content data $this->tpl->addBlockfile("TBL_CONTENT", "tbl_content", "tpl.scorm_track_items.html", true); $num = 1; $this->tpl->setVariable("FORMACTION", "adm_object.php?ref_id=".$this->ref_id."$obj_str&cmd=gateway"); // create table $tbl = new ilTableGUI(); // title & header columns $tbl->setTitle($this->lng->txt("cont_tracking_items")); $tbl->setHeaderNames(array($this->lng->txt("title"))); $header_params = array("ref_id" => $this->ref_id, "cmd" => $_GET["cmd"], "cmdClass" => get_class($this)); $cols = array("title"); $tbl->setHeaderVars($cols, $header_params); $tbl->setColumnWidth(array("100%")); // control $tbl->setOrderColumn($_GET["sort_by"]); $tbl->setOrderDirection($_GET["sort_order"]); $tbl->setLimit($_GET["limit"]); $tbl->setOffset($_GET["offset"]); $tbl->setMaxCount($this->maxcount); //$this->tpl->setVariable("COLUMN_COUNTS",count($this->data["cols"])); //$this->showActions(true); // footer $tbl->setFooter("tblfooter",$this->lng->txt("previous"),$this->lng->txt("next")); #$tbl->disable("footer"); //$items = $this->object->getTrackingItems(); $items = $this->object->getTrackedItems(); //$objs = ilUtil::sortArray($objs, $_GET["sort_by"], $_GET["sort_order"]); $tbl->setMaxCount(count($items)); $items = array_slice($items, $_GET["offset"], $_GET["limit"]); $tbl->render(); if (count($items) > 0) { foreach ($items as $item) { $this->tpl->setCurrentBlock("tbl_content"); $this->tpl->setVariable("TXT_ITEM_TITLE", $item->getTitle()); $this->ctrl->setParameter($this, "obj_id", $item->getId()); $this->tpl->setVariable("LINK_ITEM", $this->ctrl->getLinkTarget($this, "showTrackingItem")); $css_row = ilUtil::switchColor($i++, "tblrow1", "tblrow2"); $this->tpl->setVariable("CSS_ROW", $css_row); $this->tpl->parseCurrentBlock(); } } //if is_array else { $this->tpl->setCurrentBlock("notfound"); $this->tpl->setVariable("TXT_OBJECT_NOT_FOUND", $this->lng->txt("obj_not_found")); $this->tpl->setVariable("NUM_COLS", $num); $this->tpl->parseCurrentBlock(); } }