public function findUser(LtiLaunchData $ltiContext)
    {
        $ltiConsumer = $ltiContext->getLtiConsumer();
        $taoUserId = $this->getUserIdentifier($ltiContext->getUserID(), $ltiConsumer->getUri());
        if (is_null($taoUserId)) {
            return null;
        }

        $ltiUser = $this->createLtiUser($ltiContext, $taoUserId);

        \common_Logger::t("LTI User '" . $ltiUser->getIdentifier() . "' found.");

        $this->updateUser($ltiUser, $ltiContext);

        return $ltiUser;
    }
public function findUser(LtiLaunchData $ltiContext)
    {
        $ltiConsumer = $ltiContext->getLtiConsumer();
        $taoUserId = $this->getUserIdentifier($ltiContext->getUserID(), $ltiConsumer->getUri());
        if (is_null($taoUserId)) {
            return null;
        }

        $ltiUser = $this->createLtiUser($ltiContext, $taoUserId);

        \common_Logger::t("LTI User '" . $ltiUser->getIdentifier() . "' found.");

        $this->updateUser($ltiUser, $ltiContext);

        return $ltiUser;
    }
public function findUser ( LtiLaunchData $ ltiContext ) { $ ltiConsumer = $ ltiContext -> getLtiConsumer ( ) ; $ taoUserId = $ this -> getUserIdentifier ( $ ltiContext -> getUserID ( ) , $ ltiConsumer -> getUri ( ) ) ; if ( is_null ( $ taoUserId ) ) { return null ; } $ ltiUser = $ this -> createLtiUser ( $ ltiContext , $ taoUserId ) ; \ common_Logger :: t ( "LTI User '" . $ ltiUser -> getIdentifier ( ) . "' found." ) ; $ this -> updateUser ( $ ltiUser , $ ltiContext ) ; return $ ltiUser ; }
Searches if this user was already created in TAO

@param LtiLaunchData $ltiContext
@return LtiUser
@throws \common_Exception
@throws \common_exception_Error
@throws \core_kernel_users_CacheException
@throws \core_kernel_users_Exception
@throws \oat\taoLti\models\classes\LtiVariableMissingException
@throws \Exception
Searches if this user was already created in TAO