ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Template.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
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}
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.
touchBlock(string $name)
Touch a block without working further on it.
parseCurrentBlock()
Parse the block that is currently worked on.