ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilScormSpecialPagesTableGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2011 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once("./Services/Table/classes/class.ilTable2GUI.php");
5 
15 {
19  function __construct($a_parent_obj, $a_parent_cmd, $a_slm)
20  {
21  global $ilCtrl, $lng, $ilAccess, $lng;
22 die("deprecated");
23  $this->slm = $a_slm;
24  parent::__construct($a_parent_obj, $a_parent_cmd);
25  $this->getSpecialPages();
26  $this->setTitle($lng->txt("cont_special_pages"));
27  $this->setLimit(9999);
28 
29  $this->addColumn("", "", "1");
30  $this->addColumn($this->lng->txt("cont_purpose"));
31  $this->addColumn($this->lng->txt("actions"));
32 
33  $this->setEnableHeader(true);
34  $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
35  $this->setRowTemplate("tpl.scorm_sp_row.html", "Modules/Scorm2004");
36 // $this->disable("footer");
37 // $this->setEnableTitle(true);
38 
39  $this->addMultiCommand("confirmSpecialPageDeletion", $lng->txt("delete"));
40  }
41 
42 
46  protected function fillRow($a_set)
47  {
48  global $lng, $ilCtrl;
49 
50  $ilCtrl->setParameterByClass("ilscorm2004pagenodegui",
51  "obj_id", $a_set["page_id"]);
52  $this->tpl->setCurrentBlock("action");
53  $this->tpl->setVariable("HREF_CMD",
54  $ilCtrl->getLinkTargetByClass("ilscorm2004pagenodegui", "edit"));
55  $this->tpl->setVariable("TXT_CMD",
56  $lng->txt("edit"));
57  $this->tpl->parseCurrentBlock();
58 
59  $this->tpl->setVariable("PAGE_ID", $a_set["page_id"]);
60  $this->tpl->setVariable("VAL_TITLE", $a_set["purpose"]);
61  }
62 
63 }
64 ?>