public function displayFeedbacks(RunnerServiceContext $context)
    {
        $displayFeedbacks = false;

        if ($context instanceof QtiRunnerServiceContext) {
            /* @var TestSession $session */
            $session = $context->getTestSession();

            if($session->getCurrentSubmissionMode() !== SubmissionMode::SIMULTANEOUS){
                $displayFeedbacks = true;
            }
        } else {
            throw new \common_exception_InvalidArgumentType(
                'QtiRunnerService',
                'displayFeedbacks',
                0,
                'oat\taoQtiTest\models\runner\QtiRunnerServiceContext',
                $context
            );
        }
        return $displayFeedbacks;
    }
public function displayFeedbacks(RunnerServiceContext $context)
    {
        $displayFeedbacks = false;

        if ($context instanceof QtiRunnerServiceContext) {
            
            $session = $context->getTestSession();

            if($session->getCurrentSubmissionMode() !== SubmissionMode::SIMULTANEOUS){
                $displayFeedbacks = true;
            }
        } else {
            throw new \common_exception_InvalidArgumentType(
                'QtiRunnerService',
                'displayFeedbacks',
                0,
                'oat\taoQtiTest\models\runner\QtiRunnerServiceContext',
                $context
            );
        }
        return $displayFeedbacks;
    }
public function displayFeedbacks ( RunnerServiceContext $ context ) { $ displayFeedbacks = false ; if ( $ context instanceof QtiRunnerServiceContext ) { /* @var TestSession $session */ $ session = $ context -> getTestSession ( ) ; if ( $ session -> getCurrentSubmissionMode ( ) !== SubmissionMode :: SIMULTANEOUS ) { $ displayFeedbacks = true ; } } else { throw new \ common_exception_InvalidArgumentType ( 'QtiRunnerService' , 'displayFeedbacks' , 0 , 'oat\taoQtiTest\models\runner\QtiRunnerServiceContext' , $ context ) ; } return $ displayFeedbacks ; }
Should we display feedbacks
@param RunnerServiceContext $context
@return boolean
@throws \common_exception_InvalidArgumentType
Should we display feedbacks