ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
with_signal.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
33 function 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
with_signal()
description: > Example for rendering a pagination view control with a signal
Definition: with_signal.php:33
global $DIC
Definition: shib_login.php:22