ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
with_signal.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
33function with_signal()
34{
35 global $DIC;
36 $factory = $DIC->ui()->factory();
37 $renderer = $DIC->ui()->renderer();
38
39 $image = $factory->image()->responsive("assets/ui-examples/images/Image/mountains.jpg", "Image source: https://stocksnap.io, Creative Commons CC0 license");
40 $page = $factory->modal()->lightboxImagePage($image, 'Mountains');
41 $modal = $factory->modal()->lightbox($page);
42
43 $pagination = $factory->viewControl()->pagination()
44 ->withTotalEntries(98)
45 ->withPageSize(10)
46 ->withResetSignals()
47 ->withOnSelect($modal->getShowSignal());
48
49 return $renderer->render([$pagination, $modal]);
50}
$renderer
global $DIC
Definition: shib_login.php:26