protected function validateLtiParams(LtiLaunchData $launchData)
    {
        if ($launchData->hasVariable(self::CUSTOM_LTI_SECURE)) {
            $val = mb_strtolower($launchData->getVariable(self::CUSTOM_LTI_SECURE));
            if ($val !== 'true' && $val !== 'false') {
                throw new LtiException(
                    __('Wrong value of "secure" variable.'),
                    LtiErrorMessage::ERROR_INVALID_PARAMETER
                );
            }
        }
    }
protected function validateLtiParams(LtiLaunchData $launchData)
    {
        if ($launchData->hasVariable(self::CUSTOM_LTI_SECURE)) {
            $val = mb_strtolower($launchData->getVariable(self::CUSTOM_LTI_SECURE));
            if ($val !== 'true' && $val !== 'false') {
                throw new LtiException(
                    __('Wrong value of "secure" variable.'),
                    LtiErrorMessage::ERROR_INVALID_PARAMETER
                );
            }
        }
    }
protected function validateLtiParams ( LtiLaunchData $ launchData ) { if ( $ launchData -> hasVariable ( self :: CUSTOM_LTI_SECURE ) ) { $ val = mb_strtolower ( $ launchData -> getVariable ( self :: CUSTOM_LTI_SECURE ) ) ; if ( $ val !== 'true' && $ val !== 'false' ) { throw new LtiException ( __ ( 'Wrong value of "secure" variable.' ) , LtiErrorMessage :: ERROR_INVALID_PARAMETER ) ; } } }
Validate and prepare launch variables
@param LtiLaunchData $launchData
@throws LtiException
@throws \oat\taoLti\models\classes\LtiVariableMissingException
Validate and prepare launch variables