*/ namespace oat\taoQtiTest\models\runner\map; use oat\taoQtiTest\models\runner\config\RunnerConfig; use oat\taoQtiTest\models\runner\RunnerServiceContext; /** * Interface RunnerMap * @package oat\taoQtiTest\models\runner\map */ interface RunnerMap { //available scopes const SCOPE_TEST = 'test'; const SCOPE_PART = 'part'; const SCOPE_SECTION = 'section'; const MAP_ATTRIBUTE_PARTS = 'parts'; const MAP_ATTRIBUTE_SECTIONS = 'sections'; const MAP_ATTRIBUTE_ITEMS = 'items'; /** * Builds the map of an assessment test * @param RunnerServiceContext $context The test context * @param RunnerConfig $config The runner config * @return mixed */ public function getMap(RunnerServiceContext $context, RunnerConfig $config); /** * Get the testMap for the current context but limited to the given scope * @param RunnerServiceContext $context The test context * @param RunnerConfig $config The runner config * @param string $scope the target scope, section by default * @return mixed */ public function getScopedMap(RunnerServiceContext $context, RunnerConfig $config, $scope = self::SCOPE_SECTION); }