ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilQTIAssessment.php
Go to the documentation of this file.
1<?php
2/*
3 +-----------------------------------------------------------------------------+
4 | ILIAS open source |
5 +-----------------------------------------------------------------------------+
6 | Copyright (c) 1998-2001 ILIAS open source, University of Cologne |
7 | |
8 | This program is free software; you can redistribute it and/or |
9 | modify it under the terms of the GNU General Public License |
10 | as published by the Free Software Foundation; either version 2 |
11 | of the License, or (at your option) any later version. |
12 | |
13 | This program is distributed in the hope that it will be useful, |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | GNU General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU General Public License |
19 | along with this program; if not, write to the Free Software |
20 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21 +-----------------------------------------------------------------------------+
22*/
23
24require_once 'Services/QTI/interfaces/interface.ilQTIPresentationMaterialAware.php';
25
35{
36 public $ident;
37 public $title;
38 public $xmllang;
39 public $comment;
40 public $duration;
44 public $rubric;
53 public $reference;
55 public $section;
56
57 public function __construct()
58 {
59 $this->qtimetadata = array();
60 $this->objectives = array();
61 $this->assessmentcontrol = array();
62 $this->rubric = array();
63 $this->outcomes_processing = array();
64 $this->assessfeedback = array();
65 $this->sectionref = array();
66 $this->section = array();
67 }
68
69 public function setIdent($a_ident)
70 {
71 $this->ident = $a_ident;
72 }
73
74 public function getIdent()
75 {
76 return $this->ident;
77 }
78
79 public function setTitle($a_title)
80 {
81 $this->title = $a_title;
82 }
83
84 public function getTitle()
85 {
86 return $this->title;
87 }
88
89 public function setComment($a_comment)
90 {
91 $this->comment = $a_comment;
92 }
93
94 public function getComment()
95 {
96 return $this->comment;
97 }
98
99 public function setDuration($a_duration)
100 {
101 if (preg_match("/P(\d+)Y(\d+)M(\d+)DT(\d+)H(\d+)M(\d+)S/", $a_duration, $matches)) {
102 $this->duration = array(
103 "h" => $matches[4],
104 "m" => $matches[5],
105 "s" => $matches[6]
106 );
107 }
108 }
109
110 public function getDuration()
111 {
112 return $this->duration;
113 }
114
115 public function setXmllang($a_xmllang)
116 {
117 $this->xmllang = $a_xmllang;
118 }
119
120 public function getXmllang()
121 {
122 return $this->xmllang;
123 }
124
125 public function addQtiMetadata($a_metadata)
126 {
127 array_push($this->qtimetadata, $a_metadata);
128 }
129
130 public function addObjectives($a_objectives)
131 {
132 array_push($this->objectives, $a_objectives);
133 }
134
135 public function addAssessmentcontrol($a_assessmentcontrol)
136 {
137 array_push($this->assessmentcontrol, $a_assessmentcontrol);
138 }
139
140 public function addRubric($a_rubric)
141 {
142 array_push($this->rubric, $a_rubric);
143 }
144
149 {
150 $this->presentation_material = $a_material;
151 }
152
156 public function getPresentationMaterial()
157 {
159 }
160
161 public function addOutcomesProcessing($a_outcomes_processing)
162 {
163 array_push($this->outcomes_processing, $a_outcomes_processing);
164 }
165
166 public function setAssessprocExtension($a_assessproc_extension)
167 {
168 $this->assessproc_extension = $a_assessproc_extension;
169 }
170
171 public function getAssessprocExtension()
172 {
174 }
175
176 public function addAssessfeedback($a_assessfeedback)
177 {
178 array_push($this->assessfeedback, $a_assessfeedback);
179 }
180
181 public function setSelectionOrdering($a_selection_ordering)
182 {
183 $this->selection_ordering = $a_selection_ordering;
184 }
185
186 public function getSelectionOrdering()
187 {
189 }
190
191 public function setReference($a_reference)
192 {
193 $this->reference = $a_reference;
194 }
195
196 public function getReference()
197 {
198 return $this->reference;
199 }
200
201 public function addSectionref($a_sectionref)
202 {
203 array_push($this->sectionref, $a_sectionref);
204 }
205
206 public function addSection($a_section)
207 {
208 array_push($this->section, $a_section);
209 }
210}
An exception for terminatinating execution or to throw for unit testing.
getPresentationMaterial()
{ilQTIPresentationMaterial|null}
setAssessprocExtension($a_assessproc_extension)
addSectionref($a_sectionref)
addAssessmentcontrol($a_assessmentcontrol)
setPresentationMaterial(ilQTIPresentationMaterial $a_material)
{}
addAssessfeedback($a_assessfeedback)
setReference($a_reference)
setSelectionOrdering($a_selection_ordering)
addOutcomesProcessing($a_outcomes_processing)
addObjectives($a_objectives)
Class ilQTIPresentationMaterial.
comment()
Definition: comment.php:2
Interface ilQTIPresentationMaterialAware.