public function registerHook($eventType, IEventHook $hook)
    {
        switch ($eventType) {
            case IEventHook::EVENT_SAVE_CHANGES:
                $this->getDataUpdater()->registerSaveChangesEventHook($hook);
                break;
            default:
                throw new Exception("Unrecognised type $eventType whilst registering event hook");
        }
    }
public function registerHook($eventType, IEventHook $hook)
    {
        switch ($eventType) {
            case IEventHook::EVENT_SAVE_CHANGES:
                $this->getDataUpdater()->registerSaveChangesEventHook($hook);
                break;
            default:
                throw new Exception("Unrecognised type $eventType whilst registering event hook");
        }
    }
public function registerHook ( $ eventType , IEventHook $ hook ) { switch ( $ eventType ) { case IEventHook :: EVENT_SAVE_CHANGES : $ this -> getDataUpdater ( ) -> registerSaveChangesEventHook ( $ hook ) ; break ; default : throw new Exception ( "Unrecognised type $eventType whilst registering event hook" ) ; } }
Register an event hook, which
@param $eventType
@param IEventHook $
@return mixed
Register an event hook which