ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTemplateWrapperFactory.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 
24 use ilTemplate;
25 
30 {
32 
33  public function __construct(ilGlobalTemplateInterface $global_tpl)
34  {
35  $this->global_tpl = $global_tpl;
36  }
37 
41  public function getTemplate(string $path, bool $purge_unfilled_vars, bool $purge_unused_blocks): Template
42  {
43  $tpl = new ilTemplate($path, $purge_unfilled_vars, $purge_unused_blocks);
44  return new ilTemplateWrapper($this->global_tpl, $tpl);
45  }
46 }
getTemplate(string $path, bool $purge_unfilled_vars, bool $purge_unused_blocks)
$path
Definition: ltiservices.php:32
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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.