ILIAS  release_7 Revision v7.30-3-g800a261c036
with_signal.php File Reference

Go to the source code of this file.

Functions

 with_signal ()
 

Function Documentation

◆ with_signal()

with_signal ( )

Definition at line 3 of file with_signal.php.

4{
5 global $DIC;
6 $factory = $DIC->ui()->factory();
7 $renderer = $DIC->ui()->renderer();
8
9 $image = $factory->image()->responsive("src/UI/examples/Image/mountains.jpg", "Image source: https://stocksnap.io, Creative Commons CC0 license");
10 $page = $factory->modal()->lightboxImagePage($image, 'Mountains');
11 $modal = $factory->modal()->lightbox($page);
12
13 $pagination = $factory->viewControl()->pagination()
14 ->withTotalEntries(98)
15 ->withPageSize(10)
16 ->withResetSignals()
17 ->withOnSelect($modal->getShowSignal());
18
19 return $renderer->render([$pagination, $modal]);
20}
global $DIC
Definition: goto.php:24
$factory
Definition: metadata.php:58

References $DIC, and $factory.