ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
with_signal.php
Go to the documentation of this file.
1 <?php
2 
3 function with_signal()
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: saml.php:7
$factory
Definition: metadata.php:43
with_signal()
Definition: with_signal.php:3