ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
4 include_once("Services/Table/classes/class.ilTable2GUI.php");
5 
15 {
16 
20  function __construct($a_parent_obj, $a_parent_cmd,
21  $a_content_obj)
22  {
23  global $ilCtrl, $lng;
24 
25  parent::__construct($a_parent_obj, $a_parent_cmd);
26 
27  $this->addColumn("", "", "1");
28  $this->addColumn($lng->txt("title"), "", "100%");
29  $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
30  $this->setRowTemplate("tpl.iim_popup_content_row.html",
31  "Services/COPage");
32 
33  $this->content_obj = $a_content_obj;
34  $this->setData($this->content_obj->getPopups());
35  $this->setLimit(0);
36 
37  $this->addMultiCommand("confirmPopupDeletion", $lng->txt("delete"));
38  $this->addCommandButton("savePopups", $lng->txt("cont_save_all_titles"));
39 
40  $this->setTitle($lng->txt("cont_content_popups"));
41  }
42 
46  protected function fillRow($a_set)
47  {
48  global $lng, $ilCtrl;
49 
50  $this->tpl->setVariable("TID", $a_set["hier_id"].":".$a_set["pc_id"]);
51  $this->tpl->setVariable("TITLE", ilUtil::prepareFormOutput($a_set["title"]));
52  }
53 
54 }
55 ?>
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 public
TableGUI class for content popup.
global $ilCtrl
Definition: ilias.php:18
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
Class ilTable2GUI.
addMultiCommand($a_cmd, $a_text)
Add Command button.
__construct($a_parent_obj, $a_parent_cmd, $a_content_obj)
Constructor.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
global $lng
Definition: privfeed.php:17
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.
fillRow($a_set)
Fill table row.
setLimit($a_limit=0, $a_default_limit=0)