ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 {
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  {
59  $lng = $this->lng;
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 }
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
global $DIC
Definition: saml.php:7
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.
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)