/** * Do the move * @param RunnerServiceContext $context * @param mixed $ref * @return boolean * @throws \common_Exception */ public function move(RunnerServiceContext $context, $ref) { /* @var AssessmentTestSession $session */ $session = $context->getTestSession(); $nextPosition = $session->getRoute()->getPosition() + 1; QtiRunnerNavigation::checkTimedSectionExit($context, $nextPosition); $session->moveNext(); return true; }
/** * Do the move * @param RunnerServiceContext $context * @param mixed $ref * @return boolean * @throws \common_Exception */ public function move(RunnerServiceContext $context, $ref) { QtiRunnerNavigation::checkTimedSectionExit($context, $ref); $context->getTestSession()->jumpTo(intval($ref)); return true; }