Chamilo is a learning management system focused on ease of use and accessibility
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.
 
 
 
 
 
 
chamilo-lms/main/inc/lib/hook/HookDocumentAction.php

39 lines
841 B

<?php
/* For licensing terms, see /license.txt */
/**
* Class HookDocumentAction.
*/
class HookDocumentAction extends HookEvent implements HookDocumentActionEventInterface
{
/**
* HookDocumentAction constructor.
*
* @throws \Exception
*/
protected function __construct()
{
parent::__construct('HookDocumentAction');
}
/**
* Update all the observers.
*
* @param int $type
*
* @return array
*/
public function notifyDocumentAction($type)
{
$this->eventData['type'] = $type;
/** @var \HookDocumentActionObserverInterface $observer */
foreach ($this->observers as $observer) {
$data = $observer->notifyDocumentAction($this);
$this->setEventData($data);
}
return $this->eventData;
}
}