ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilTemplate.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 namespace LTI;
4 
6 
7 include_once("./Services/UICore/lib/html-it/IT.php");
8 include_once("./Services/UICore/lib/html-it/ITX.php");
9 require_once("./Services/UICore/classes/class.ilTemplate.php");
10 
16 class ilTemplate extends \ilTemplate
17 {
18  public function __construct(
19  $file,
20  $flag1,
21  $flag2,
22  $in_module = false,
23  $vars = "DEFAULT",
24  $plugin = false,
25  $a_use_cache = false
26  ) {
27  parent::__construct(
28  $file,
29  $flag1,
30  $flag2,
31  $in_module,
32  $vars,
33  $plugin,
34  $a_use_cache
35  );
36  }
37 
38  public function getMainMenu()
39  {
40  global $ilMainMenu;
41  //$ilMainMenu->setLoginTargetPar($this->getLoginTargetPar());
42  $this->main_menu = $ilMainMenu->getHTML();
43  $this->main_menu_spacer = $ilMainMenu->getSpacerClass();
44  }
45 }
__construct( $file, $flag1, $flag2, $in_module=false, $vars="DEFAULT", $plugin=false, $a_use_cache=false)
special template class to simplify handling of ITX/PEAR
special template class to simplify handling of ITX/PEAR