module/User/src/Grid/User/Datasheet/EventHandler.php
public function onRegister(Event\Register $event)
    {
        $userModel = $this->getServiceLocator()
                          ->get('Grid\User\Model\User\Model');
        $user      = $userModel->register( $event->getData() );
        $event->setUser($user);
        if( is_null($event->getUser()) )
        {
            $event->stopPropagation(true);
        }
        return $event;
    }
public function onRegister(Event\Register $event)
    {
        $userModel = $this->getServiceLocator()
                          ->get('Grid\User\Model\User\Model');
        $user      = $userModel->register( $event->getData() );
        $event->setUser($user);
        if( is_null($event->getUser()) )
        {
            $event->stopPropagation(true);
        }
        return $event;
    }
public function onRegister ( Event \ Register $ event ) { $ userModel = $ this -> getServiceLocator ( ) -> get ( 'Grid\User\Model\User\Model' ) ; $ user = $ userModel -> register ( $ event -> getData ( ) ) ; $ event -> setUser ( $ user ) ; if ( is_null ( $ event -> getUser ( ) ) ) { $ event -> stopPropagation ( true ) ; } return $ event ; }
Handles register event

@param \Grid\User\Datasheet\Event\Register $event
@return \Grid\User\Datasheet\Event\Register
Handles register event