ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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
4include_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;
22die("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.
Class ilTable2GUI.
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.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setLimit($a_limit=0, $a_default_limit=0)
set max.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
global $ilCtrl
Definition: ilias.php:18
global $lng
Definition: privfeed.php:40