ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 ?>