ILIAS  trunk Revision v12.0_alpha-1227-g7ff6d300864
UIUtil.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Exercise;
22
27
28use function PHPUnit\Framework\isInstanceOf;
29
30class UIUtil
31{
32 public function __construct(
33 ) {
34 }
35
36 public function formatTextInput(string $text): string
37 {
39 if (!str_contains($text, "<p>")) {
40 $text = nl2br($text);
41 }
42 return $text;
43 }
44}
formatTextInput(string $text)
Definition: UIUtil.php:36
static _replaceMediaObjectImageSrc(string $a_text, int $a_direction=0, string $nic='')
Replaces image source from mob image urls with the mob id or replaces mob id with the correct image s...
This describes commonalities between standard and primary buttons.
Definition: Button.php:34
A component is the most general form of an entity in the UI.
Definition: Component.php:28
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$text
Definition: xapiexit.php:21