ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
multiple_glyphs.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
17 function multiple_glyphs()
18 {
19  global $DIC;
20  $f = $DIC->ui()->factory();
21  $renderer = $DIC->ui()->renderer();
22 
23  $note = $f->symbol()->glyph()->note("#")
24  ->withCounter($f->counter()->novelty(100))
25  ->withCounter($f->counter()->status(8));
26 
27  $tag = $f->symbol()->glyph()->tag("#")
28  ->withCounter($f->counter()->novelty(1))
29  ->withCounter($f->counter()->status(800));
30 
31  $comment = $f->symbol()->glyph()->comment("#")
32  ->withCounter($f->counter()->novelty(1))
33  ->withCounter($f->counter()->status(8));
34 
35  return $renderer->render($note) . $renderer->render($tag) . $renderer->render($comment);
36 }
$renderer
multiple_glyphs()
description: > Example for rendering multiple glyphs with status counters
global $DIC
Definition: shib_login.php:25
$comment
Definition: buildRTE.php:72