12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- class HookWSRegistration extends HookEvent implements HookWSRegistrationEventInterface
- {
-
- protected function __construct()
- {
- parent::__construct('HookWSRegistration');
- }
-
- public function notifyWSRegistration($type)
- {
-
-
- if (isset($this->eventData['server'])) {
-
- $this->eventData['type'] = $type;
- foreach ($this->observers as $observer) {
-
- $data = $observer->hookWSRegistration($this);
-
- if (isset($data['server'])) {
-
- $this->eventData['server'] = $data['server'];
- }
- }
- return $this->eventData;
- }
- return 1;
- }
- }
|