ILIAS  release_7 Revision v7.30-3-g800a261c036
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 protected $access;
20
24 public function __construct($a_parent_obj, $a_parent_cmd, $a_slm)
25 {
26 global $DIC;
27
28 $this->ctrl = $DIC->ctrl();
29 $this->lng = $DIC->language();
30 $this->access = $DIC->access();
31 $ilCtrl = $DIC->ctrl();
32 $lng = $DIC->language();
33 $ilAccess = $DIC->access();
34 $lng = $DIC->language();
35 die("deprecated");
36 $this->slm = $a_slm;
37 parent::__construct($a_parent_obj, $a_parent_cmd);
38 $this->getSpecialPages();
39 $this->setTitle($lng->txt("cont_special_pages"));
40 $this->setLimit(9999);
41
42 $this->addColumn("", "", "1");
43 $this->addColumn($this->lng->txt("cont_purpose"));
44 $this->addColumn($this->lng->txt("actions"));
45
46 $this->setEnableHeader(true);
47 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
48 $this->setRowTemplate("tpl.scorm_sp_row.html", "Modules/Scorm2004");
49 // $this->disable("footer");
50 // $this->setEnableTitle(true);
51
52 $this->addMultiCommand("confirmSpecialPageDeletion", $lng->txt("delete"));
53 }
54
55
59 protected function fillRow($a_set)
60 {
62 $ilCtrl = $this->ctrl;
63
64 $ilCtrl->setParameterByClass(
65 "ilscorm2004pagenodegui",
66 "obj_id",
67 $a_set["page_id"]
68 );
69 $this->tpl->setCurrentBlock("action");
70 $this->tpl->setVariable(
71 "HREF_CMD",
72 $ilCtrl->getLinkTargetByClass("ilscorm2004pagenodegui", "edit")
73 );
74 $this->tpl->setVariable(
75 "TXT_CMD",
76 $lng->txt("edit")
77 );
78 $this->tpl->parseCurrentBlock();
79
80 $this->tpl->setVariable("PAGE_ID", $a_set["page_id"]);
81 $this->tpl->setVariable("VAL_TITLE", $a_set["purpose"]);
82 }
83}
An exception for terminatinating execution or to throw for unit testing.
__construct($a_parent_obj, $a_parent_cmd, $a_slm)
Constructor.
Class ilTable2GUI.
setEnableHeader($a_enableheader)
Set Enable 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.
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.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
global $DIC
Definition: goto.php:24
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc