ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
TemplateFactoryMock Class Reference
+ Inheritance diagram for TemplateFactoryMock:
+ Collaboration diagram for TemplateFactoryMock:

Public Member Functions

 getTemplate ($file_name, $purge_unfilled_vars, $purge_unused_blocks)
 Get template instance. More...
 

Data Fields

 $files = array()
 

Detailed Description

Definition at line 66 of file AbstractRendererTest.php.

Member Function Documentation

◆ getTemplate()

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

Get template instance.

Parameters
string$path
bool$purge_unfilled_vars
bool$purge_unused_blocks
Exceptions

Implements ILIAS\UI\Implementation\Render\TemplateFactory.

Definition at line 68 of file AbstractRendererTest.php.

References array.

68  {
69  $file_name = realpath(__DIR__."/../../../".$file_name);
70  $this->files[$file_name] = array($purge_unfilled_vars, $purge_unused_blocks);
71 
72  if (!file_exists($file_name)) {
73  throw new \InvalidArgumentException();
74  }
75 
76  return new NullTemplate();
77  }
Create styles array
The data for the language used.

Field Documentation

◆ $files

TemplateFactoryMock::$files = array()

Definition at line 67 of file AbstractRendererTest.php.


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