|
| | __construct (private readonly HttpService $http, private readonly InterruptiveModal|RoundTripModal|MessageBox|State|array|string $content) |
| |
| | render (UIRenderer $ui_renderer) |
| |
Definition at line 31 of file Async.php.
◆ __construct()
| ILIAS\Questions\Presentation\Layout\Async::__construct |
( |
private readonly HttpService |
$http, |
|
|
private readonly InterruptiveModal|RoundTripModal|MessageBox|State|array|string |
$content |
|
) |
| |
◆ render()
| ILIAS\Questions\Presentation\Layout\Async::render |
( |
UIRenderer |
$ui_renderer | ) |
|
Definition at line 39 of file Async.php.
41 : void {
42 $rendered_content = is_string($this->content)
43 ? $this->content
45
46 $this->
http->saveResponse(
47 $this->
http->response()->withBody(
49 $rendered_content
50 )
51 )
52 );
53 $this->
http->sendResponse();
55 }
static ofString(string $string)
Creates a new stream with an initial value.
readonly UIRenderer $ui_renderer
static http()
Fetches the global http state from ILIAS.
The documentation for this class was generated from the following file:
- components/ILIAS/Questions/src/Presentation/Layout/Async.php