ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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...
 

Data Fields

array $files = array()
 

Detailed Description

Definition at line 134 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 138 of file AbstractRendererTest.php.

138  : Template
139  {
140  $file_name = realpath(__DIR__ . "/../../../../../" . $path);
141  $this->files[$file_name] = array($purge_unfilled_vars, $purge_unused_blocks);
142 
143  if (!file_exists($file_name)) {
144  throw new InvalidArgumentException();
145  }
146 
147  return new NullTemplate();
148  }
$path
Definition: ltiservices.php:30

Field Documentation

◆ $files

array TemplateFactoryMock::$files = array()

Definition at line 136 of file AbstractRendererTest.php.


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