ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 {
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
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
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.