ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
Template.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 
28 interface Template
29 {
33  public function setCurrentBlock(string $name): bool;
34 
38  public function parseCurrentBlock(): bool;
39 
43  public function touchBlock(string $name): bool;
44 
49  public function setVariable(string $name, $value): void;
50 
54  public function get(string $block = null): string;
55 
61  public function addOnLoadCode(string $code): void;
62 }
setCurrentBlock(string $name)
Set the block to work on.
setVariable(string $name, $value)
Set a variable in the current block.
if($format !==null) $name
Definition: metadata.php:247
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
parseCurrentBlock()
Parse the block that is currently worked on.
touchBlock(string $name)
Touch a block without working further on it.
addOnLoadCode(string $code)
Add some javascript to be executed on_load of the rendered page.