ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 ?>
__construct($a_parent_obj, $a_parent_cmd, $a_slm)
Constructor.
global $ilCtrl
Definition: ilias.php:18
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
Class ilTable2GUI.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
global $lng
Definition: privfeed.php:17
setEnableHeader($a_enableheader)
Set Enable Header.
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.
setLimit($a_limit=0, $a_default_limit=0)