ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilQTISection.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;
44  var $rubric;
51  var $itemref;
52  var $item;
54  var $section;
55 
56  function ilQTISection()
57  {
58  $this->qtimetadata = array();
59  $this->objectives = array();
60  $this->sectioncontrol = array();
61  $this->sectionprecondition = array();
62  $this->sectionpostcondition = array();
63  $this->rubric = array();
64  $this->outcomes_processing = array();
65  $this->sectionfeedback = array();
66  $this->itemref = array();
67  $this->item = array();
68  $this->sectionref = array();
69  $this->section = array();
70  }
71 
72  function setIdent($a_ident)
73  {
74  $this->ident = $a_ident;
75  }
76 
77  function getIdent()
78  {
79  return $this->ident;
80  }
81 
82  function setTitle($a_title)
83  {
84  $this->title = $a_title;
85  }
86 
87  function getTitle()
88  {
89  return $this->title;
90  }
91 
92  function setComment($a_comment)
93  {
94  $this->comment = $a_comment;
95  }
96 
97  function getComment()
98  {
99  return $this->comment;
100  }
101 
102  function setDuration($a_duration)
103  {
104  if (preg_match("/P(\d+)Y(\d+)M(\d+)DT(\d+)H(\d+)M(\d+)S/", $a_duration, $matches))
105  {
106  $this->duration = array(
107  "h" => $matches[4],
108  "m" => $matches[5],
109  "s" => $matches[6]
110  );
111  }
112  }
113 
114  function getDuration()
115  {
116  return $this->duration;
117  }
118 
119  function setXmllang($a_xmllang)
120  {
121  $this->xmllang = $a_xmllang;
122  }
123 
124  function getXmllang()
125  {
126  return $this->xmllang;
127  }
128 
129  function addQtiMetadata($a_metadata)
130  {
131  array_push($this->qtimetadata, $a_metadata);
132  }
133 
134  function addObjectives($a_objectives)
135  {
136  array_push($this->objectives, $a_objectives);
137  }
138 
139  function addSectioncontrol($a_sectioncontrol)
140  {
141  array_push($this->sectioncontrol, $a_sectioncontrol);
142  }
143 
144  function addSectionprecondition($a_sectionprecondition)
145  {
146  array_push($this->sectionprecondition, $a_sectionprecondition);
147  }
148 
149  function addSectionpostcondition($a_sectionpostcondition)
150  {
151  array_push($this->sectionpostcondition, $a_sectionpostcondition);
152  }
153 
154  function addRubric($a_rubric)
155  {
156  array_push($this->rubric, $a_rubric);
157  }
158 
159  function setPresentationMaterial($a_material)
160  {
161  $this->presentation_material = $a_material;
162  }
163 
165  {
167  }
168 
169  function addOutcomesProcessing($a_outcomes_processing)
170  {
171  array_push($this->outcomes_processing, $a_outcomes_processing);
172  }
173 
174  function setSectionprocExtension($a_sectionproc_extension)
175  {
176  $this->sectionproc_extension = $a_sectionproc_extension;
177  }
178 
180  {
182  }
183 
184  function addSectionfeedback($a_sectionfeedback)
185  {
186  array_push($this->sectionfeedback, $a_sectionfeedback);
187  }
188 
189  function setSelectionOrdering($a_selection_ordering)
190  {
191  $this->selection_ordering = $a_selection_ordering;
192  }
193 
195  {
197  }
198 
199  function setReference($a_reference)
200  {
201  $this->reference = $a_reference;
202  }
203 
204  function getReference()
205  {
206  return $this->reference;
207  }
208 
209  function addItemref($a_itemref)
210  {
211  array_push($this->itemref, $a_itemref);
212  }
213 
214  function addItem($a_item)
215  {
216  array_push($this->item, $a_item);
217  }
218 
219  function addSectionref($a_sectionref)
220  {
221  array_push($this->sectionref, $a_sectionref);
222  }
223 
224  function addSection($a_section)
225  {
226  array_push($this->section, $a_section);
227  }
228 }
229 ?>