Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00032 class ilQTISection
00033 {
00034 var $ident;
00035 var $title;
00036 var $xmllang;
00037 var $comment;
00038 var $duration;
00039 var $qtimetadata;
00040 var $objectives;
00041 var $sectioncontrol;
00042 var $sectionprecondition;
00043 var $sectionpostcondition;
00044 var $rubric;
00045 var $presentation_material;
00046 var $outcomes_processing;
00047 var $sectionproc_extension;
00048 var $sectionfeedback;
00049 var $selection_ordering;
00050 var $reference;
00051 var $itemref;
00052 var $item;
00053 var $sectionref;
00054 var $section;
00055
00056 function ilQTISection()
00057 {
00058 $this->qtimetadata = array();
00059 $this->objectives = array();
00060 $this->sectioncontrol = array();
00061 $this->sectionprecondition = array();
00062 $this->sectionpostcondition = array();
00063 $this->rubric = array();
00064 $this->outcomes_processing = array();
00065 $this->sectionfeedback = array();
00066 $this->itemref = array();
00067 $this->item = array();
00068 $this->sectionref = array();
00069 $this->section = array();
00070 }
00071
00072 function setIdent($a_ident)
00073 {
00074 $this->ident = $a_ident;
00075 }
00076
00077 function getIdent()
00078 {
00079 return $this->ident;
00080 }
00081
00082 function setTitle($a_title)
00083 {
00084 $this->title = $a_title;
00085 }
00086
00087 function getTitle()
00088 {
00089 return $this->title;
00090 }
00091
00092 function setComment($a_comment)
00093 {
00094 $this->comment = $a_comment;
00095 }
00096
00097 function getComment()
00098 {
00099 return $this->comment;
00100 }
00101
00102 function setDuration($a_duration)
00103 {
00104 if (preg_match("/P(\d+)Y(\d+)M(\d+)DT(\d+)H(\d+)M(\d+)S/", $a_duration, $matches))
00105 {
00106 $this->duration = array(
00107 "h" => $matches[4],
00108 "m" => $matches[5],
00109 "s" => $matches[6]
00110 );
00111 }
00112 }
00113
00114 function getDuration()
00115 {
00116 return $this->duration;
00117 }
00118
00119 function setXmllang($a_xmllang)
00120 {
00121 $this->xmllang = $a_xmllang;
00122 }
00123
00124 function getXmllang()
00125 {
00126 return $this->xmllang;
00127 }
00128
00129 function addQtiMetadata($a_metadata)
00130 {
00131 array_push($this->qtimetadata, $a_metadata);
00132 }
00133
00134 function addObjectives($a_objectives)
00135 {
00136 array_push($this->objectives, $a_objectives);
00137 }
00138
00139 function addSectioncontrol($a_sectioncontrol)
00140 {
00141 array_push($this->sectioncontrol, $a_sectioncontrol);
00142 }
00143
00144 function addSectionprecondition($a_sectionprecondition)
00145 {
00146 array_push($this->sectionprecondition, $a_sectionprecondition);
00147 }
00148
00149 function addSectionpostcondition($a_sectionpostcondition)
00150 {
00151 array_push($this->sectionpostcondition, $a_sectionpostcondition);
00152 }
00153
00154 function addRubric($a_rubric)
00155 {
00156 array_push($this->rubric, $a_rubric);
00157 }
00158
00159 function setPresentationMaterial($a_material)
00160 {
00161 $this->presentation_material = $a_material;
00162 }
00163
00164 function getPresentationMaterial()
00165 {
00166 return $this->presentation_material;
00167 }
00168
00169 function addOutcomesProcessing($a_outcomes_processing)
00170 {
00171 array_push($this->outcomes_processing, $a_outcomes_processing);
00172 }
00173
00174 function setSectionprocExtension($a_sectionproc_extension)
00175 {
00176 $this->sectionproc_extension = $a_sectionproc_extension;
00177 }
00178
00179 function getSectionprocExtension()
00180 {
00181 return $this->sectionproc_extension;
00182 }
00183
00184 function addSectionfeedback($a_sectionfeedback)
00185 {
00186 array_push($this->sectionfeedback, $a_sectionfeedback);
00187 }
00188
00189 function setSelectionOrdering($a_selection_ordering)
00190 {
00191 $this->selection_ordering = $a_selection_ordering;
00192 }
00193
00194 function getSelectionOrdering()
00195 {
00196 return $this->selection_ordering;
00197 }
00198
00199 function setReference($a_reference)
00200 {
00201 $this->reference = $a_reference;
00202 }
00203
00204 function getReference()
00205 {
00206 return $this->reference;
00207 }
00208
00209 function addItemref($a_itemref)
00210 {
00211 array_push($this->itemref, $a_itemref);
00212 }
00213
00214 function addItem($a_item)
00215 {
00216 array_push($this->item, $a_item);
00217 }
00218
00219 function addSectionref($a_sectionref)
00220 {
00221 array_push($this->sectionref, $a_sectionref);
00222 }
00223
00224 function addSection($a_section)
00225 {
00226 array_push($this->section, $a_section);
00227 }
00228 }
00229 ?>