ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Lightbox.php
Go to the documentation of this file.
1<?php
3
4use ILIAS\UI\Component as Component;
7
11class Lightbox extends Modal implements Component\Modal\Lightbox
12{
13
17 protected $pages;
18
19
25 {
26 parent::__construct($signal_generator);
27 $pages = $this->toArray($pages);
28 $types = array(LightboxPage::class);
29 $this->checkArgListElements('pages', $pages, $types);
30 $this->pages = $pages;
31 }
32
36 public function getPages()
37 {
38 return $this->pages;
39 }
40}
An exception for terminatinating execution or to throw for unit testing.
getPages()
Get the lightbox pages of this modal.LightboxPage[]
Definition: Lightbox.php:36
__construct($pages, SignalGeneratorInterface $signal_generator)
Definition: Lightbox.php:24
toArray($value)
Wrap the given value in an array if it is no array.
checkArgListElements($which, array &$values, &$classes)
Check every element of the list if it is an instance of one of the given classes.