ILIAS  release_8 Revision v8.24
Template.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
22
28interface 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}
Interface to templating as it is used in the UI framework.
Definition: Template.php:29
setVariable(string $name, $value)
Set a variable in the current block.
setCurrentBlock(string $name)
Set the block to work on.
addOnLoadCode(string $code)
Add some javascript to be executed on_load of the rendered page.
touchBlock(string $name)
Touch a block without working further on it.
parseCurrentBlock()
Parse the block that is currently worked on.
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...