Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 4 |
|
0.00% |
0 / 4 |
CRAP | |
0.00% |
0 / 1 |
| taoResultServer_models_classes_Context | |
0.00% |
0 / 4 |
|
0.00% |
0 / 4 |
20 | |
0.00% |
0 / 1 |
| addSessionIdentifier | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getSessionIdentifiers | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setSourcedID | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getSourcedID | |
0.00% |
0 / 1 |
|
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 S.A. |
| 19 | * |
| 20 | */ |
| 21 | |
| 22 | /** |
| 23 | * An Assessment Result is used to report the results of a candidate's interaction |
| 24 | * with a test and/or one or more items attempted. |
| 25 | * Information about the test is optional, |
| 26 | * in some systems it may be possible to interact with items that are not organized into |
| 27 | * a test at all. For example, items that are organized with learning resources and presented |
| 28 | * individually in a formative context. |
| 29 | * |
| 30 | * @author |
| 31 | * |
| 32 | * |
| 33 | */ |
| 34 | class taoResultServer_models_classes_Context |
| 35 | { |
| 36 | /** |
| 37 | * The system that creates the result (for example, the test delivery system) should assign a session identifier |
| 38 | * that it can use to identify the session. |
| 39 | * Subsequent systems that process the result might assign their own identifier to the session which should be |
| 40 | * added to the context if the result is modified and exported for transport again. |
| 41 | * |
| 42 | * @var sessionIdentifier |
| 43 | */ |
| 44 | private $sessionIdentifiers; |
| 45 | |
| 46 | /** |
| 47 | * A unique identifier for the test candidate. |
| 48 | * The attribute is defined by the IMS Learning Information Services specification [IMS_LIS]. |
| 49 | * |
| 50 | * @var string (an uri) |
| 51 | */ |
| 52 | private $sourcedID; |
| 53 | |
| 54 | public function addSessionIdentifier(taoResultServer_models_classes_SessionIdentifier $sessionIdentifier) |
| 55 | { |
| 56 | $this->sessionIdentifiers[] = $sessionIdentifier; |
| 57 | } |
| 58 | |
| 59 | public function getSessionIdentifiers() |
| 60 | { |
| 61 | return $this->sessionIdentifiers; |
| 62 | } |
| 63 | |
| 64 | public function setSourcedID($sourcedID) |
| 65 | { |
| 66 | $this->sourcedID = $sourcedID; |
| 67 | } |
| 68 | |
| 69 | public function getSourcedID() |
| 70 | { |
| 71 | return $this->sourcedID; |
| 72 | } |
| 73 | } |