parent
c0df68672f
commit
218dbd3c89
@ -0,0 +1,29 @@ |
|||||||
|
<?php |
||||||
|
/* For licensing terms, see /license.txt */ |
||||||
|
|
||||||
|
/** |
||||||
|
* Class HookLearningPathItemViewed. |
||||||
|
*/ |
||||||
|
class HookLearningPathItemViewed extends HookEvent implements HookLearningPathItemViewedEventInterface |
||||||
|
{ |
||||||
|
/** |
||||||
|
* HookLearningPathItemViewed constructor. |
||||||
|
* |
||||||
|
* @throws \Exception |
||||||
|
*/ |
||||||
|
protected function __construct() |
||||||
|
{ |
||||||
|
parent::__construct('HookLearningPathItemViewed'); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* @inheritDoc |
||||||
|
*/ |
||||||
|
public function notifyLearningPathItemViewed() |
||||||
|
{ |
||||||
|
/** @var \HookLearningPathItemViewedObserverInterface $observer */ |
||||||
|
foreach ($this->observers as $observer) { |
||||||
|
$observer->hookLearningPathItemViewed($this); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,13 @@ |
|||||||
|
<?php |
||||||
|
/* For licensing terms, see /license.txt */ |
||||||
|
|
||||||
|
/** |
||||||
|
* Interface HookLearningPathItemViewedEventInterface. |
||||||
|
*/ |
||||||
|
interface HookLearningPathItemViewedEventInterface extends HookEventInterface |
||||||
|
{ |
||||||
|
/** |
||||||
|
* @return mixed |
||||||
|
*/ |
||||||
|
public function notifyLearningPathItemViewed(); |
||||||
|
} |
||||||
@ -0,0 +1,15 @@ |
|||||||
|
<?php |
||||||
|
/* For licensing terms, see /license.txt */ |
||||||
|
|
||||||
|
/** |
||||||
|
* Interface HookLearningPathItemViewedObserverInterface. |
||||||
|
*/ |
||||||
|
interface HookLearningPathItemViewedObserverInterface extends HookObserverInterface |
||||||
|
{ |
||||||
|
/** |
||||||
|
* @param \HookLearningPathItemViewedEventInterface $event |
||||||
|
* |
||||||
|
* @return mixed |
||||||
|
*/ |
||||||
|
public function hookLearningPathItemViewed(HookLearningPathItemViewedEventInterface $event); |
||||||
|
} |
||||||
Loading…
Reference in new issue