| Code Coverage | ||||||||||
| Lines | Functions and Methods | Classes and Traits | ||||||||
| Total |  | 0.00% | 0 / 11 |  | 0.00% | 0 / 3 | CRAP |  | 0.00% | 0 / 1 | 
| taoResultServer_actions_RestResults |  | 0.00% | 0 / 11 |  | 0.00% | 0 / 3 | 12 |  | 0.00% | 0 / 1 | 
| __construct |  | 0.00% | 0 / 2 |  | 0.00% | 0 / 1 | 2 | |||
| getParametersAliases |  | 0.00% | 0 / 2 |  | 0.00% | 0 / 1 | 2 | |||
| getParametersRequirements |  | 0.00% | 0 / 7 |  | 0.00% | 0 / 1 | 2 | |||
| 1 | <?php | 
| 2 | |
| 3 | /** | 
| 4 | * This program is free software; you can redistribute it and/or | 
| 5 | * modify it under the terms of the GNU General Public License | 
| 6 | * as published by the Free Software Foundation; under version 2 | 
| 7 | * of the License (non-upgradable). | 
| 8 | * | 
| 9 | * This program is distributed in the hope that it will be useful, | 
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 
| 12 | * GNU General Public License for more details. | 
| 13 | * | 
| 14 | * You should have received a copy of the GNU General Public License | 
| 15 | * along with this program; if not, write to the Free Software | 
| 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 
| 17 | * | 
| 18 | * Copyright (c) 2013 (original work) Open Assessment Technologies SA (under the project TAO-PRODUCT); | 
| 19 | * | 
| 20 | */ | 
| 21 | |
| 22 | use oat\taoResultServer\models\classes\CrudResultsService; | 
| 23 | use oat\tao\model\routing\AnnotationReader\security; | 
| 24 | |
| 25 | class taoResultServer_actions_RestResults extends \tao_actions_CommonRestModule | 
| 26 | { | 
| 27 | /** | 
| 28 | * taoResultServer_actions_RestResults constructor. | 
| 29 | * @security("hide") | 
| 30 | */ | 
| 31 | public function __construct() | 
| 32 | { | 
| 33 | parent::__construct(); | 
| 34 | $this->service = CrudResultsService::singleton(); | 
| 35 | } | 
| 36 | |
| 37 | /** | 
| 38 | * Optionnaly a specific rest controller may declare | 
| 39 | * aliases for parameters used for the rest communication | 
| 40 | */ | 
| 41 | protected function getParametersAliases() | 
| 42 | { | 
| 43 | return array_merge(parent::getParametersAliases(), [ | 
| 44 | |
| 45 | ]); | 
| 46 | } | 
| 47 | /** | 
| 48 | * Optionnal Requirements for parameters to be sent on every service | 
| 49 | * | 
| 50 | */ | 
| 51 | protected function getParametersRequirements() | 
| 52 | { | 
| 53 | return [ | 
| 54 | /** you may use either the alias or the uri, if the parameter identifier | 
| 55 | * is set it will become mandatory for the operation in $key | 
| 56 | * Default Parameters Requirents are applied | 
| 57 | * type by default is not required and the root class type is applied | 
| 58 | */ | 
| 59 | ]; | 
| 60 | } | 
| 61 | } |