123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- class HookAdminBlock extends HookEvent implements HookAdminBlockEventInterface
- {
-
- protected function __construct()
- {
- parent::__construct('HookAdminBlock');
- }
-
- public function notifyAdminBlock($type)
- {
-
-
- if (isset($this->eventData['blocks'])) {
- $this->eventData['type'] = $type;
-
- foreach ($this->observers as $observer) {
- $data = $observer->hookAdminBlock($this);
- if (isset($data['blocks'])) {
-
- $this->eventData['blocks'] = $data['blocks'];
- }
- }
- return $this->eventData;
- }
- return 0;
- }
- }
|