ILIAS  Release_4_1_x_branch Revision 61804
 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 
33 {
34  var $ident;
35  var $title;
36  var $xmllang;
37  var $comment;
38  var $duration;
42  var $rubric;
50  var $section;
51 
52  function ilQTIAssessment()
53  {
54  $this->qtimetadata = array();
55  $this->objectives = array();
56  $this->assessmentcontrol = array();
57  $this->rubric = array();
58  $this->outcomes_processing = array();
59  $this->assessfeedback = array();
60  $this->sectionref = array();
61  $this->section = array();
62  }
63 
64  function setIdent($a_ident)
65  {
66  $this->ident = $a_ident;
67  }
68 
69  function getIdent()
70  {
71  return $this->ident;
72  }
73 
74  function setTitle($a_title)
75  {
76  $this->title = $a_title;
77  }
78 
79  function getTitle()
80  {
81  return $this->title;
82  }
83 
84  function setComment($a_comment)
85  {
86  $this->comment = $a_comment;
87  }
88 
89  function getComment()
90  {
91  return $this->comment;
92  }
93 
94  function setDuration($a_duration)
95  {
96  if (preg_match("/P(\d+)Y(\d+)M(\d+)DT(\d+)H(\d+)M(\d+)S/", $a_duration, $matches))
97  {
98  $this->duration = array(
99  "h" => $matches[4],
100  "m" => $matches[5],
101  "s" => $matches[6]
102  );
103  }
104  }
105 
106  function getDuration()
107  {
108  return $this->duration;
109  }
110 
111  function setXmllang($a_xmllang)
112  {
113  $this->xmllang = $a_xmllang;
114  }
115 
116  function getXmllang()
117  {
118  return $this->xmllang;
119  }
120 
121  function addQtiMetadata($a_metadata)
122  {
123  array_push($this->qtimetadata, $a_metadata);
124  }
125 
126  function addObjectives($a_objectives)
127  {
128  array_push($this->objectives, $a_objectives);
129  }
130 
131  function addAssessmentcontrol($a_assessmentcontrol)
132  {
133  array_push($this->assessmentcontrol, $a_assessmentcontrol);
134  }
135 
136  function addRubric($a_rubric)
137  {
138  array_push($this->rubric, $a_rubric);
139  }
140 
141  function setPresentationMaterial($a_material)
142  {
143  $this->presentation_material = $a_material;
144  }
145 
147  {
149  }
150 
151  function addOutcomesProcessing($a_outcomes_processing)
152  {
153  array_push($this->outcomes_processing, $a_outcomes_processing);
154  }
155 
156  function setAssessprocExtension($a_assessproc_extension)
157  {
158  $this->assessproc_extension = $a_assessproc_extension;
159  }
160 
162  {
164  }
165 
166  function addAssessfeedback($a_assessfeedback)
167  {
168  array_push($this->assessfeedback, $a_assessfeedback);
169  }
170 
171  function setSelectionOrdering($a_selection_ordering)
172  {
173  $this->selection_ordering = $a_selection_ordering;
174  }
175 
177  {
179  }
180 
181  function setReference($a_reference)
182  {
183  $this->reference = $a_reference;
184  }
185 
186  function getReference()
187  {
188  return $this->reference;
189  }
190 
191  function addSectionref($a_sectionref)
192  {
193  array_push($this->sectionref, $a_sectionref);
194  }
195 
196  function addSection($a_section)
197  {
198  array_push($this->section, $a_section);
199  }
200 }
201 ?>