ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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.

References $DIC, and $factory.

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