ILIAS  trunk Revision v11.0_alpha-1753-gb21ca8c4367
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilTemplateWrapperFactory.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 use ilTemplate;
25 
30 {
34  public function getTemplate(string $path, bool $purge_unfilled_vars, bool $purge_unused_blocks): Template
35  {
36  $tpl = new ilTemplate($path, $purge_unfilled_vars, $purge_unused_blocks);
37  return new ilTemplateWrapper($tpl);
38  }
39 }
getTemplate(string $path, bool $purge_unfilled_vars, bool $purge_unused_blocks)
$path
Definition: ltiservices.php:29
Wraps an ilTemplate to only provide smaller interface.
Interface for a factory that provides templates.