models/classes/runner/rubric/QtiRunnerRubric.php
public function getRubrics(RunnerServiceContext $context, AssessmentItemRef $itemRef = null)
    {
        /* @var AssessmentTestSession $session */
        $session = $context->getTestSession();

        $routeItem = null;
        if (!is_null($itemRef)) {
            try {
                $routeItem = $session->getRoute()->getRouteItemsByAssessmentItemRef($itemRef);
                if ($routeItem) {
                    $routeItem = $routeItem[0];
                }
            } catch (OutOfBoundsException $obe) {
                \common_Logger::d("Could not retrieve the route for item '${itemRef}'.");
            }
        } else {
            $routeItem = $session->getRoute()->current();
        }

        return implode('', $this->getRubricBlock($routeItem, $session, $context->getCompilationDirectory()));
    }
public function getRubrics(RunnerServiceContext $context, AssessmentItemRef $itemRef = null)
    {
        /* @var AssessmentTestSession $session */
        $session = $context->getTestSession();

        $routeItem = null;
        if (!is_null($itemRef)) {
            try {
                $routeItem = $session->getRoute()->getRouteItemsByAssessmentItemRef($itemRef);
                if ($routeItem) {
                    $routeItem = $routeItem[0];
                }
            } catch (OutOfBoundsException $obe) {
                \common_Logger::d("Could not retrieve the route for item '${itemRef}'.");
            }
        } else {
            $routeItem = $session->getRoute()->current();
        }

        return implode('', $this->getRubricBlock($routeItem, $session, $context->getCompilationDirectory()));
    }
Gets the rubrics according to the current session state
The content is directly rendered into the page
@param RunnerServiceContext $context
@param AssessmentItemRef $itemRef (optional) otherwise use the current
@return mixed