ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTemplateWrapperFactory.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 2016 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4 
6 
11 {
15  protected $global_tpl;
16 
18  {
19  $this->global_tpl = $global_tpl;
20  }
21 
25  public function getTemplate($path, $purge_unfilled_vars, $purge_unused_blocks)
26  {
27  $tpl = new \ilTemplate($path, $purge_unfilled_vars, $purge_unused_blocks);
28  return new ilTemplateWrapper($this->global_tpl, $tpl);
29  }
30 }
getTemplate($path, $purge_unfilled_vars, $purge_unused_blocks)
Wraps an ilTemplate to only provide smaller interface.
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41
Interface for a factory that provides templates.