1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- class HookNotificationTitle extends HookEvent implements HookNotificationTitleEventInterface
- {
-
- protected function __construct()
- {
- parent::__construct('HookNotificationTitle');
- }
-
- public function notifyNotificationTitle($type)
- {
-
-
- if (isset($this->eventData['title'])) {
-
- $this->eventData['type'] = $type;
-
- foreach ($this->observers as $observer) {
-
- $data = $observer->hookNotificationTitle($this);
-
- if (isset($data['title'])) {
-
- $this->setEventData($data);
- }
- }
- return $this->eventData;
- }
- return null;
- }
- }
|