ILIAS  release_8 Revision v8.24
TemplateFactoryMock Class Reference
+ Inheritance diagram for TemplateFactoryMock:
+ Collaboration diagram for TemplateFactoryMock:

Public Member Functions

 getTemplate (string $path, bool $purge_unfilled_vars, bool $purge_unused_blocks)
 Get template instance. More...
 
 getTemplate (string $path, bool $purge_unfilled_vars, bool $purge_unused_blocks)
 Get template instance. More...
 

Data Fields

array $files = array()
 

Detailed Description

Definition at line 146 of file AbstractRendererTest.php.

Member Function Documentation

◆ getTemplate()

TemplateFactoryMock::getTemplate ( string  $path,
bool  $purge_unfilled_vars,
bool  $purge_unused_blocks 
)

Get template instance.

Exceptions
InvalidArgumentExceptionif there is no such template

Implements ILIAS\UI\Implementation\Render\TemplateFactory.

Definition at line 150 of file AbstractRendererTest.php.

150 : Template
151 {
152 $file_name = realpath(__DIR__ . "/../../../" . $path);
153 $this->files[$file_name] = array($purge_unfilled_vars, $purge_unused_blocks);
154
155 if (!file_exists($file_name)) {
156 throw new InvalidArgumentException();
157 }
158
159 return new NullTemplate();
160 }
Interface to templating as it is used in the UI framework.
Definition: Template.php:29
$path
Definition: ltiservices.php:32

References $path.

Field Documentation

◆ $files

array TemplateFactoryMock::$files = array()

Definition at line 148 of file AbstractRendererTest.php.


The documentation for this class was generated from the following file: