ILIAS  release_7 Revision v7.30-3-g800a261c036
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
5include_once("./Services/Table/classes/class.ilTable2GUI.php");
6
16{
20 protected $ctrl;
21
25 protected $access;
26
27
31 public function __construct($a_deps)
32 {
33 global $DIC;
34
35 $this->ctrl = $DIC->ctrl();
36 $this->lng = $DIC->language();
37 $this->access = $DIC->access();
38 $ilCtrl = $DIC->ctrl();
39 $lng = $DIC->language();
40 $ilAccess = $DIC->access();
41 $lng = $DIC->language();
42
43 parent::__construct(null, "");
44 $lng->loadLanguageModule("rep");
45
46 $this->setTitle($lng->txt("rep_dependencies"));
47 $this->setLimit(9999);
48
49 $this->addColumn($this->lng->txt("rep_object_to_delete"));
50 $this->addColumn($this->lng->txt("rep_dependent_object"));
51 $this->addColumn($this->lng->txt("rep_dependency"));
52
53 $this->setEnableHeader(true);
54 //$this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
55 $this->setRowTemplate("tpl.rep_dep_row.html", "Services/Repository");
56 $this->disable("footer");
57 $this->setEnableTitle(true);
58
59 $deps = array();
60 foreach ($a_deps as $id => $d) {
61 foreach ($d as $id2 => $ms) {
62 foreach ($ms as $m) {
63 $deps[] = array("dep_obj" => $id2, "del_obj" => $id, "message" => $m);
64 }
65 }
66 }
67 $this->setData($deps);
68 }
69
73 protected function fillRow($a_set)
74 {
76 $this->tpl->setVariable(
77 "TXT_DEP_OBJ",
78 $lng->txt("obj_" . ilObject::_lookupType($a_set["dep_obj"])) . ": " . ilObject::_lookupTitle($a_set["dep_obj"])
79 );
80 $this->tpl->setVariable(
81 "TXT_DEL_OBJ",
82 $lng->txt("obj_" . ilObject::_lookupType($a_set["del_obj"])) . ": " . ilObject::_lookupTitle($a_set["del_obj"])
83 );
84 $this->tpl->setVariable("TXT_MESS", $a_set["message"]);
85 }
86}
An exception for terminatinating execution or to throw for unit testing.
static _lookupTitle($a_id)
lookup object title
static _lookupType($a_id, $a_reference=false)
lookup object type
Class ilTable2GUI.
setEnableHeader($a_enableheader)
Set Enable Header.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setEnableTitle($a_enabletitle)
Set Enable Title.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setLimit($a_limit=0, $a_default_limit=0)
set max.
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.
disable($a_module_name)
diesables particular modules of table
for( $i=6;$i< 13;$i++) for($i=1; $i< 13; $i++) $d
Definition: date.php:296
global $DIC
Definition: goto.php:24
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc