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
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}
global $tpl
Definition: ilias.php:8
$path
Definition: aliased.php:25
An exception for terminatinating execution or to throw for unit testing.
getTemplate($path, $purge_unfilled_vars, $purge_unused_blocks)
@inheritdocs
Wraps an ilTemplate to only provide smaller interface.
special template class to simplify handling of ITX/PEAR
Interface for a factory that provides templates.