ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
14  protected $global_tpl;
15 
16  public function __construct(\ilTemplate $global_tpl) {
17  $this->global_tpl = $global_tpl;
18  }
19 
23  public function getTemplate($path, $purge_unfilled_vars, $purge_unused_blocks) {
24  $tpl = new \ilTemplate($path, $purge_unfilled_vars, $purge_unused_blocks);
25  return new ilTemplateWrapper($this->global_tpl, $tpl);
26  }
27 }
$path
Definition: aliased.php:25
global $tpl
Definition: ilias.php:8
special template class to simplify handling of ITX/PEAR
getTemplate($path, $purge_unfilled_vars, $purge_unused_blocks)
Wraps an ilTemplate to only provide smaller interface.
Interface for a factory that provides templates.