ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Lightbox.php
Go to the documentation of this file.
1 <?php
3 
7 
11 class 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 }
checkArgListElements($which, array &$values, &$classes)
Check every element of the list if it is an instance of one of the given classes. ...
__construct($pages, SignalGeneratorInterface $signal_generator)
Definition: Lightbox.php:24
getPages()
Get the lightbox pages of this modal.LightboxPage[]
Definition: Lightbox.php:36
toArray($value)
Wrap the given value in an array if it is no array.