ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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 }
__construct($pages, SignalGeneratorInterface $signal_generator)
Definition: Lightbox.php:24
getPages()
Get the lightbox pages of this modal.LightboxPage[]
Definition: Lightbox.php:36
__construct(Container $dic, ilPlugin $plugin)
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. ...