public function getTemplateContent(){

        $standardRpTemplateFolder = dirname(__FILE__).'/../data/qtiv2p1/rptemplates/';
        switch($this->uri){
            case self::MATCH_CORRECT:
                $returnValue = file_get_contents($standardRpTemplateFolder.'match_correct.xml');
                break;
            case self::MAP_RESPONSE:
                $returnValue = file_get_contents($standardRpTemplateFolder.'map_response.xml');
                break;
            case self::MAP_RESPONSE_POINT:
                $returnValue = file_get_contents($standardRpTemplateFolder.'map_response_point.xml');
                break;
            case self::NONE:
                $returnValue = '';
                break;
            default:
                throw new QtiModelException('unknown rp template');
        }
        return $returnValue;
    }
public function getTemplateContent(){

        $standardRpTemplateFolder = dirname(__FILE__).'/../data/qtiv2p1/rptemplates/';
        switch($this->uri){
            case self::MATCH_CORRECT:
                $returnValue = file_get_contents($standardRpTemplateFolder.'match_correct.xml');
                break;
            case self::MAP_RESPONSE:
                $returnValue = file_get_contents($standardRpTemplateFolder.'map_response.xml');
                break;
            case self::MAP_RESPONSE_POINT:
                $returnValue = file_get_contents($standardRpTemplateFolder.'map_response_point.xml');
                break;
            case self::NONE:
                $returnValue = '';
                break;
            default:
                throw new QtiModelException('unknown rp template');
        }
        return $returnValue;
    }
public function getTemplateContent ( ) { $ standardRpTemplateFolder = dirname ( __FILE__ ) . '/../data/qtiv2p1/rptemplates/' ; switch ( $ this -> uri ) { case self :: MATCH_CORRECT : $ returnValue = file_get_contents ( $ standardRpTemplateFolder . 'match_correct.xml' ) ; break ; case self :: MAP_RESPONSE : $ returnValue = file_get_contents ( $ standardRpTemplateFolder . 'map_response.xml' ) ; break ; case self :: MAP_RESPONSE_POINT : $ returnValue = file_get_contents ( $ standardRpTemplateFolder . 'map_response_point.xml' ) ; break ; case self :: NONE : $ returnValue = '' ; break ; default : throw new QtiModelException ( 'unknown rp template' ) ; } return $ returnValue ; }
Get the content of the response processing template identified by its uri

@todo make it dynamic in the future
@return string
@throws \oat\taoQtiItem\model\qti\exception\QtiModelException
Get the content of the response processing template identified by its uri