ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilExtPublicProfilePageGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once("./Services/COPage/classes/class.ilPageObjectGUI.php");
5 include_once("./Services/User/classes/class.ilExtPublicProfilePage.php");
6 
19 {
23  function __construct($a_id = 0, $a_old_nr = 0)
24  {
25  global $tpl;
26 
27  parent::__construct("user", $a_id, $a_old_nr);
28 
29  // content style
30  include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
31 
32  $tpl->setCurrentBlock("SyntaxStyle");
33  $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET",
35  $tpl->parseCurrentBlock();
36 
37  $this->setEnabledMaps(true);
38  $this->setPreventHTMLUnmasking(true);
39  $this->setEnabledInternalLinks(false);
40  $this->setEnabledPCTabs(true);
41 // $this->initPageObject($a_id, $a_old_nr);
42 
43  }
44 
52  function initPageObject($a_parent_type, $a_id, $a_old_nr)
53  {
54  $page = new ilExtPublicProfilePage($a_id, $a_old_nr);
55  $this->setPageObject($page);
56  }
57 
61  function &executeCommand()
62  {
63  global $ilCtrl, $ilTabs, $ilUser;
64 
65  $next_class = $this->ctrl->getNextClass($this);
66  $cmd = $this->ctrl->getCmd();
67 
68  switch($next_class)
69  {
70  case "ilpageobjectgui":
71  $page_gui = new ilPageObjectGUI("user",
72  $this->getPageObject()->getId(), $this->getPageObject()->old_nr);
73  $page_gui->setPresentationTitle($this->getPageObject()->getTitle());
74  return $ilCtrl->forwardCommand($page_gui);
75 
76  default:
77  $this->setPresentationTitle($this->getPageObject()->getTitle());
78  return parent::executeCommand();
79  }
80  }
81 
87  function showPage()
88  {
89  global $tpl, $ilCtrl;
90 
91  $this->setTemplateOutput(false);
92  $this->setPresentationTitle($this->getPageObject()->getTitle());
93  $output = parent::showPage();
94 
95  return $output;
96  }
97 
104  function getTabs($a_activate = "")
105  {
106  global $ilTabs, $ilCtrl;
107 
108  parent::getTabs($a_activate);
109  }
110 
111 
112 }
113 ?>