ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 
24 require_once 'Services/QTI/interfaces/interface.ilQTIPresentationMaterialAware.php';
25 
35 {
36  var $ident;
37  var $title;
38  var $xmllang;
39  var $comment;
40  var $duration;
44  var $rubric;
55  var $section;
56 
57  function ilQTIAssessment()
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  function setIdent($a_ident)
70  {
71  $this->ident = $a_ident;
72  }
73 
74  function getIdent()
75  {
76  return $this->ident;
77  }
78 
79  function setTitle($a_title)
80  {
81  $this->title = $a_title;
82  }
83 
84  function getTitle()
85  {
86  return $this->title;
87  }
88 
89  function setComment($a_comment)
90  {
91  $this->comment = $a_comment;
92  }
93 
94  function getComment()
95  {
96  return $this->comment;
97  }
98 
99  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  {
103  $this->duration = array(
104  "h" => $matches[4],
105  "m" => $matches[5],
106  "s" => $matches[6]
107  );
108  }
109  }
110 
111  function getDuration()
112  {
113  return $this->duration;
114  }
115 
116  function setXmllang($a_xmllang)
117  {
118  $this->xmllang = $a_xmllang;
119  }
120 
121  function getXmllang()
122  {
123  return $this->xmllang;
124  }
125 
126  function addQtiMetadata($a_metadata)
127  {
128  array_push($this->qtimetadata, $a_metadata);
129  }
130 
131  function addObjectives($a_objectives)
132  {
133  array_push($this->objectives, $a_objectives);
134  }
135 
136  function addAssessmentcontrol($a_assessmentcontrol)
137  {
138  array_push($this->assessmentcontrol, $a_assessmentcontrol);
139  }
140 
141  function addRubric($a_rubric)
142  {
143  array_push($this->rubric, $a_rubric);
144  }
145 
150  {
151  $this->presentation_material = $a_material;
152  }
153 
157  public function getPresentationMaterial()
158  {
160  }
161 
162  function addOutcomesProcessing($a_outcomes_processing)
163  {
164  array_push($this->outcomes_processing, $a_outcomes_processing);
165  }
166 
167  function setAssessprocExtension($a_assessproc_extension)
168  {
169  $this->assessproc_extension = $a_assessproc_extension;
170  }
171 
173  {
175  }
176 
177  function addAssessfeedback($a_assessfeedback)
178  {
179  array_push($this->assessfeedback, $a_assessfeedback);
180  }
181 
182  function setSelectionOrdering($a_selection_ordering)
183  {
184  $this->selection_ordering = $a_selection_ordering;
185  }
186 
188  {
190  }
191 
192  function setReference($a_reference)
193  {
194  $this->reference = $a_reference;
195  }
196 
197  function getReference()
198  {
199  return $this->reference;
200  }
201 
202  function addSectionref($a_sectionref)
203  {
204  array_push($this->sectionref, $a_sectionref);
205  }
206 
207  function addSection($a_section)
208  {
209  array_push($this->section, $a_section);
210  }
211 }
212 ?>