ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilRepDependenciesTableGUI.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
5 include_once("./Services/Table/classes/class.ilTable2GUI.php");
6 
16 {
17 
21  function __construct($a_deps)
22  {
23  global $ilCtrl, $lng, $ilAccess, $lng;
24 
25  parent::__construct(null, "");
26  $lng->loadLanguageModule("rep");
27 
28  $this->setTitle($lng->txt("rep_dependencies"));
29  $this->setLimit(9999);
30 
31  $this->addColumn($this->lng->txt("rep_object_to_delete"));
32  $this->addColumn($this->lng->txt("rep_dependent_object"));
33  $this->addColumn($this->lng->txt("rep_dependency"));
34 
35  $this->setEnableHeader(true);
36  //$this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
37  $this->setRowTemplate("tpl.rep_dep_row.html", "Services/Repository");
38  $this->disable("footer");
39  $this->setEnableTitle(true);
40 
41  $deps = array();
42  foreach ($a_deps as $id => $d)
43  {
44  foreach ($d as $id2 => $ms)
45  {
46  foreach ($ms as $m)
47  {
48  $deps[] = array("dep_obj" => $id2, "del_obj" => $id, "message" => $m);
49  }
50  }
51  }
52  $this->setData($deps);
53  }
54 
58  protected function fillRow($a_set)
59  {
60  global $lng;
61  $this->tpl->setVariable("TXT_DEP_OBJ",
62  $lng->txt("obj_".ilObject::_lookupType($a_set["dep_obj"])).": ".ilObject::_lookupTitle($a_set["dep_obj"]));
63  $this->tpl->setVariable("TXT_DEL_OBJ",
64  $lng->txt("obj_".ilObject::_lookupType($a_set["del_obj"])).": ".ilObject::_lookupTitle($a_set["del_obj"]));
65  $this->tpl->setVariable("TXT_MESS", $a_set["message"]);
66  }
67 
68 }
69 ?>
static _lookupTitle($a_id)
lookup object title
for($col=0; $col< 50; $col++) $d
global $ilCtrl
Definition: ilias.php:18
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
Class ilTable2GUI.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
disable($a_module_name)
diesables particular modules of table
global $lng
Definition: privfeed.php:17
setEnableHeader($a_enableheader)
Set Enable Header.
setEnableTitle($a_enabletitle)
Set Enable Title.
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)