ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 118 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 122 of file AbstractRendererTest.php.

122 : Template
123 {
124 $file_name = realpath(__DIR__ . "/../../../../../" . $path);
125 $this->files[$file_name] = array($purge_unfilled_vars, $purge_unused_blocks);
126
127 if (!file_exists($file_name)) {
128 throw new InvalidArgumentException();
129 }
130
131 return new NullTemplate();
132 }
Interface to templating as it is used in the UI framework.
Definition: Template.php:29
$path
Definition: ltiservices.php:30

References $path.

Field Documentation

◆ $files

array TemplateFactoryMock::$files = array()

Definition at line 120 of file AbstractRendererTest.php.


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