ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilPCIIMPopupTableGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4include_once("Services/Table/classes/class.ilTable2GUI.php");
5
15{
19 protected $ctrl;
20
21
25 public function __construct($a_parent_obj, $a_parent_cmd, $a_content_obj)
26 {
27 global $DIC;
28
29 $this->ctrl = $DIC->ctrl();
30 $this->lng = $DIC->language();
31 $ilCtrl = $DIC->ctrl();
32 $lng = $DIC->language();
33
34 parent::__construct($a_parent_obj, $a_parent_cmd);
35
36 $this->addColumn("", "", "1");
37 $this->addColumn($lng->txt("title"), "", "100%");
38 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
39 $this->setRowTemplate(
40 "tpl.iim_popup_content_row.html",
41 "Services/COPage"
42 );
43
44 $this->content_obj = $a_content_obj;
45 $this->setData($this->content_obj->getPopups());
46 $this->setLimit(0);
47
48 $this->addMultiCommand("confirmPopupDeletion", $lng->txt("delete"));
49 $this->addCommandButton("savePopups", $lng->txt("cont_save_all_titles"));
50
51 $this->setTitle($lng->txt("cont_content_popups"));
52 }
53
57 protected function fillRow($a_set)
58 {
61
62 $this->tpl->setVariable("TID", $a_set["hier_id"] . ":" . $a_set["pc_id"]);
63 $this->tpl->setVariable("TITLE", ilUtil::prepareFormOutput($a_set["title"]));
64 }
65}
An exception for terminatinating execution or to throw for unit testing.
TableGUI class for content popup.
__construct($a_parent_obj, $a_parent_cmd, $a_content_obj)
Constructor.
fillRow($a_set)
Fill table row.
Class ilTable2GUI.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
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.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public
global $ilCtrl
Definition: ilias.php:18
global $DIC
Definition: saml.php:7