ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilContainerPageGUI.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
5 include_once("./Services/COPage/classes/class.ilPageObjectGUI.php");
6 include_once("./Services/Container/classes/class.ilContainerPage.php");
7 
20 {
24  public function __construct($a_id = 0, $a_old_nr = 0, $a_lang = "")
25  {
26  global $DIC;
27 
28  $this->tpl = $DIC["tpl"];
29  $tpl = $DIC["tpl"];
30 
31  parent::__construct("cont", $a_id, $a_old_nr, false, $a_lang);
32  }
33 
37  public function getProfileBackUrl()
38  {
39  include_once("./Services/Link/classes/class.ilLink.php");
40  $link = ilLink::_getLink((int) $_GET["ref_id"]);
41  // make it relative, since profile only accepts relative links as back links
42  $link = substr($link, strpos($link, "//") + 2);
43  $link = substr($link, strpos($link, "/"));
44  return $link;
45  }
46 }
global $DIC
Definition: saml.php:7
Container page GUI class.
$_GET["client_id"]
Class ilPageObjectGUI.
__construct($a_id=0, $a_old_nr=0, $a_lang="")
Constructor.
getProfileBackUrl()
Get profile back url.