Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 8
0.00% covered (danger)
0.00%
0 / 3
CRAP
0.00% covered (danger)
0.00%
0 / 1
taoQtiTest_actions_ItemRunner
0.00% covered (danger)
0.00%
0 / 8
0.00% covered (danger)
0.00%
0 / 3
12
0.00% covered (danger)
0.00%
0 / 1
 getResultServerEndpoint
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getResultServerParams
0.00% covered (danger)
0.00%
0 / 5
0.00% covered (danger)
0.00%
0 / 1
2
 selectView
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3use oat\taoQtiItem\controller\AbstractQtiItemRunner;
4
5class taoQtiTest_actions_ItemRunner extends AbstractQtiItemRunner
6{
7    /**
8     * The endpoint specific to QTI Items in a QTI Test runner context
9     * @return string
10     */
11    protected function getResultServerEndpoint()
12    {
13        return _url('', 'TestRunner', 'taoQtiTest');
14    }
15
16    /**
17     * Define additional parameters for the result server
18     * @return array
19     */
20    protected function getResultServerParams()
21    {
22        return [
23            'testServiceCallId' => $this->getRequestParameter('QtiTestParentServiceCallId'),
24            'testDefinition'    => $this->getRequestParameter('QtiTestDefinition'),
25            'itemDataPath'      => $this->getRequestParameter('itemDataPath')
26        ];
27    }
28
29    protected function selectView()
30    {
31        $this->setInitialVariableElements();
32        $this->setView('item_runner.tpl');
33    }
34}