ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilExtendedProfileTableGUI.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  {
22  global $ilCtrl, $lng, $ilAccess, $lng, $ilUser;
23 
24  parent::__construct($a_parent_obj, $a_parent_cmd);
25 
26  include_once("./Services/User/classes/class.ilExtPublicProfilePage.php");
27  $this->setData(ilExtPublicProfilePage::getPagesOfUser($ilUser->getId()));
28 
29  $this->setTitle($lng->txt("pages"));
30 
31  $this->addColumn($this->lng->txt(""), "", "1");
32  $this->addColumn($this->lng->txt("user_order"));
33  $this->addColumn($this->lng->txt("title"));
34  $this->addColumn($this->lng->txt("actions"));
35 
36  $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
37  $this->setRowTemplate("tpl.ext_user_profile_row.html", "Services/User");
38 
39  $this->addMultiCommand("confirmProfilePageDeletion", $lng->txt("delete"));
40  $this->addCommandButton("saveExtProfilePagesOrdering",
41  $lng->txt("user_save_ordering_and_titles"));
42  }
43 
47  protected function fillRow($a_set)
48  {
49  global $lng, $lng, $ilCtrl;
50 
51  $this->tpl->setVariable("VAL_TITLE", ilUtil::prepareFormOutput($a_set["title"]));
52  $this->tpl->setVariable("TXT_EDIT", $lng->txt("edit"));
53  $ilCtrl->setParameterByClass("ilextpublicprofilepagegui",
54  "user_page", $a_set["id"]);
55  $this->tpl->setVariable("CMD_EDIT",
56  $ilCtrl->getLinkTargetByClass("ilextpublicprofilepagegui", "edit"));
57  $this->tpl->setVariable("ID", $a_set["id"]);
58  $this->tpl->setVariable("VAL_ORDER_NR", $a_set["order_nr"]);
59  }
60 
61 }?>