ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
ILIAS\UI\examples\Counter\Novelty Namespace Reference

Functions

 base ()
 

description: > Base example for rendering a novelty counter. More...

 

Function Documentation

◆ base()

ILIAS\UI\examples\Counter\Novelty\base ( )


description: > Base example for rendering a novelty counter.

expected output: >

ILIAS shows a glyph with a counter. The counter consists of a white colored number within a red/orange circle.

Definition at line 32 of file base.php.

References $DIC, Vendor\Package\$f, and $renderer.

33 {
34  global $DIC;
35  $f = $DIC->ui()->factory();
36  $renderer = $DIC->ui()->renderer();
37 
38  return $renderer->render($f->symbol()->glyph()->mail("#")
39  ->withCounter($f->counter()->novelty(3)));
40 }
$renderer
global $DIC
Definition: shib_login.php:26