This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/ext/view/events/displaying_image_event.php

27 lines
590 B
PHP
Raw Normal View History

2020-01-26 13:19:35 +00:00
<?php declare(strict_types=1);
/*
* DisplayingImageEvent:
* $image -- the image being displayed
* $page -- the page to display on
*
* Sent when an image is ready to display. Extensions who
* wish to appear on the "view" page should listen for this,
* which only appears when an image actually exists.
*/
class DisplayingImageEvent extends Event
{
public Image $image;
public function __construct(Image $image)
{
2020-01-26 13:19:35 +00:00
parent::__construct();
$this->image = $image;
}
public function get_image(): Image
{
return $this->image;
}
}