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