12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- class HookCreateCourse extends HookEvent implements HookCreateCourseEventInterface
- {
-
- protected function __construct()
- {
- parent::__construct('HookCreateCourse');
- }
-
- public function notifyCreateCourse($type)
- {
- $this->eventData['type'] = $type;
-
- foreach ($this->observers as $observer) {
- $observer->hookCreateCourse($this);
- }
- return 1;
- }
- }
|