ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 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  }
$path
Definition: ltiservices.php:29

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: