ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ILIAS\Questions\Presentation\Layout\Async Class Reference
+ Collaboration diagram for ILIAS\Questions\Presentation\Layout\Async:

Public Member Functions

 __construct (private readonly HttpService $http, private readonly InterruptiveModal|RoundTripModal|MessageBox|State|array|string $content)
 
 render (UIRenderer $ui_renderer)
 

Detailed Description

Definition at line 31 of file Async.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Questions\Presentation\Layout\Async::__construct ( private readonly HttpService  $http,
private readonly InterruptiveModal|RoundTripModal|MessageBox|State|array|string  $content 
)

Definition at line 33 of file Async.php.

36 {
37 }

Member Function Documentation

◆ 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
44 : $ui_renderer->renderAsync($this->content);
45
46 $this->http->saveResponse(
47 $this->http->response()->withBody(
49 $rendered_content
50 )
51 )
52 );
53 $this->http->sendResponse();
54 $this->http->close();
55 }
static ofString(string $string)
Creates a new stream with an initial value.
Definition: Streams.php:41
static http()
Fetches the global http state from ILIAS.

The documentation for this class was generated from the following file: