1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?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;
- }
- }
|