ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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  public $ident;
35  public $title;
36  public $xmllang;
37  public $comment;
38  public $duration;
39  public $qtimetadata;
40  public $objectives;
44  public $rubric;
50  public $reference;
51  public $itemref;
52  public $item;
53  public $sectionref;
54  public $section;
55 
56  public function __construct()
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  public function setIdent($a_ident)
73  {
74  $this->ident = $a_ident;
75  }
76 
77  public function getIdent()
78  {
79  return $this->ident;
80  }
81 
82  public function setTitle($a_title)
83  {
84  $this->title = $a_title;
85  }
86 
87  public function getTitle()
88  {
89  return $this->title;
90  }
91 
92  public function setComment($a_comment)
93  {
94  $this->comment = $a_comment;
95  }
96 
97  public function getComment()
98  {
99  return $this->comment;
100  }
101 
102  public 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  $this->duration = array(
106  "h" => $matches[4],
107  "m" => $matches[5],
108  "s" => $matches[6]
109  );
110  }
111  }
112 
113  public function getDuration()
114  {
115  return $this->duration;
116  }
117 
118  public function setXmllang($a_xmllang)
119  {
120  $this->xmllang = $a_xmllang;
121  }
122 
123  public function getXmllang()
124  {
125  return $this->xmllang;
126  }
127 
128  public function addQtiMetadata($a_metadata)
129  {
130  array_push($this->qtimetadata, $a_metadata);
131  }
132 
133  public function addObjectives($a_objectives)
134  {
135  array_push($this->objectives, $a_objectives);
136  }
137 
138  public function addSectioncontrol($a_sectioncontrol)
139  {
140  array_push($this->sectioncontrol, $a_sectioncontrol);
141  }
142 
143  public function addSectionprecondition($a_sectionprecondition)
144  {
145  array_push($this->sectionprecondition, $a_sectionprecondition);
146  }
147 
148  public function addSectionpostcondition($a_sectionpostcondition)
149  {
150  array_push($this->sectionpostcondition, $a_sectionpostcondition);
151  }
152 
153  public function addRubric($a_rubric)
154  {
155  array_push($this->rubric, $a_rubric);
156  }
157 
158  public function setPresentationMaterial($a_material)
159  {
160  $this->presentation_material = $a_material;
161  }
162 
163  public function getPresentationMaterial()
164  {
166  }
167 
168  public function addOutcomesProcessing($a_outcomes_processing)
169  {
170  array_push($this->outcomes_processing, $a_outcomes_processing);
171  }
172 
173  public function setSectionprocExtension($a_sectionproc_extension)
174  {
175  $this->sectionproc_extension = $a_sectionproc_extension;
176  }
177 
178  public function getSectionprocExtension()
179  {
181  }
182 
183  public function addSectionfeedback($a_sectionfeedback)
184  {
185  array_push($this->sectionfeedback, $a_sectionfeedback);
186  }
187 
188  public function setSelectionOrdering($a_selection_ordering)
189  {
190  $this->selection_ordering = $a_selection_ordering;
191  }
192 
193  public function getSelectionOrdering()
194  {
196  }
197 
198  public function setReference($a_reference)
199  {
200  $this->reference = $a_reference;
201  }
202 
203  public function getReference()
204  {
205  return $this->reference;
206  }
207 
208  public function addItemref($a_itemref)
209  {
210  array_push($this->itemref, $a_itemref);
211  }
212 
213  public function addItem($a_item)
214  {
215  array_push($this->item, $a_item);
216  }
217 
218  public function addSectionref($a_sectionref)
219  {
220  array_push($this->sectionref, $a_sectionref);
221  }
222 
223  public function addSection($a_section)
224  {
225  array_push($this->section, $a_section);
226  }
227 }
setSelectionOrdering($a_selection_ordering)
addSectionprecondition($a_sectionprecondition)
setReference($a_reference)
setDuration($a_duration)
addItemref($a_itemref)
setSectionprocExtension($a_sectionproc_extension)
setComment($a_comment)
addObjectives($a_objectives)
addSectionfeedback($a_sectionfeedback)
addQtiMetadata($a_metadata)
addRubric($a_rubric)
comment()
Definition: comment.php:2
addSectionpostcondition($a_sectionpostcondition)
addOutcomesProcessing($a_outcomes_processing)
setPresentationMaterial($a_material)
addSectioncontrol($a_sectioncontrol)
setXmllang($a_xmllang)
addSection($a_section)
addSectionref($a_sectionref)