1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- class HookNotificationContent extends HookEvent implements HookNotificationContentEventInterface
- {
-
- protected function __construct()
- {
- parent::__construct('HookNotificationContent');
- }
-
- public function notifyNotificationContent($type)
- {
-
-
- if (isset($this->eventData['content'])) {
-
- $this->eventData['type'] = $type;
-
- foreach ($this->observers as $observer) {
- $data = $observer->hookNotificationContent($this);
-
- if (isset($data['content'])) {
-
- $this->setEventData($data);
- }
- }
- return $this->eventData;
- }
- return null;
- }
- }
|