You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
873 B
39 lines
873 B
<?php
|
|
|
|
/* For licensing terms, see /license.txt */
|
|
|
|
/**
|
|
* Class HookDocumentItemAction.
|
|
*/
|
|
class HookDocumentItemAction extends HookEvent implements HookDocumentItemActionEventInterface
|
|
{
|
|
/**
|
|
* HookDocumentItemAction constructor.
|
|
*
|
|
* @throws \Exception
|
|
*/
|
|
protected function __construct()
|
|
{
|
|
parent::__construct('HookDocumentItemAction');
|
|
}
|
|
|
|
/**
|
|
* Update all the observers.
|
|
*
|
|
* @param int $type
|
|
*
|
|
* @return array
|
|
*/
|
|
public function notifyDocumentItemAction($type)
|
|
{
|
|
$this->eventData['type'] = $type;
|
|
|
|
/** @var \HookDocumentItemActionObserverInterface $observer */
|
|
foreach ($this->observers as $observer) {
|
|
$data = $observer->notifyDocumentItemAction($this);
|
|
$this->setEventData($data);
|
|
}
|
|
|
|
return $this->eventData;
|
|
}
|
|
}
|
|
|