ILIAS
trunk Revision v12.0_alpha-1227-g7ff6d300864
◀ ilDoc Overview
UIUtil.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Exercise
;
22
23
use
ILIAS\Exercise\Assignment\Mandatory\MandatoryAssignmentsManager
;
24
use
ILIAS\UI\Component\Component
;
25
use
ILIAS\UI\Component\Button\Button
;
26
use
ILIAS\UI\Component\Link\Link
;
27
28
use
function
PHPUnit\Framework\isInstanceOf;
29
30
class
UIUtil
31
{
32
public
function
__construct
(
33
) {
34
}
35
36
public
function
formatTextInput
(
string
$text
): string
37
{
38
$text
=
\ilRTE::_replaceMediaObjectImageSrc
(
$text
, 1);
39
if
(!str_contains(
$text
,
"<p>"
)) {
40
$text
= nl2br(
$text
);
41
}
42
return
$text
;
43
}
44
}
ILIAS\Exercise\Assignment\Mandatory\MandatoryAssignmentsManager
Manages random mandatory assignments of an exercise.
Definition:
class.MandatoryAssignmentsManager.php:29
ILIAS\Exercise\UIUtil
Definition:
UIUtil.php:31
ILIAS\Exercise\UIUtil\formatTextInput
formatTextInput(string $text)
Definition:
UIUtil.php:36
ILIAS\Exercise\UIUtil\__construct
__construct()
Definition:
UIUtil.php:32
ilRTE\_replaceMediaObjectImageSrc
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...
Definition:
class.ilRTE.php:228
ILIAS\UI\Component\Button\Button
This describes commonalities between standard and primary buttons.
Definition:
Button.php:34
ILIAS\UI\Component\Component
A component is the most general form of an entity in the UI.
Definition:
Component.php:28
ILIAS\UI\Component\Link\Link
Link base interface.
Definition:
Link.php:33
ILIAS\Exercise
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$text
$text
Definition:
xapiexit.php:21
components
ILIAS
Exercise
Service
classes
UIUtil.php
Generated on Wed Apr 8 2026 23:04:46 for ILIAS by
1.9.4 (using
Doxyfile
)