• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

assessment/classes/class.ilQTIAssessment.php

Go to the documentation of this file.
00001 <?php
00002 /*
00003         +-----------------------------------------------------------------------------+
00004         | ILIAS open source                                                           |
00005         +-----------------------------------------------------------------------------+
00006         | Copyright (c) 1998-2001 ILIAS open source, University of Cologne            |
00007         |                                                                             |
00008         | This program is free software; you can redistribute it and/or               |
00009         | modify it under the terms of the GNU General Public License                 |
00010         | as published by the Free Software Foundation; either version 2              |
00011         | of the License, or (at your option) any later version.                      |
00012         |                                                                             |
00013         | This program is distributed in the hope that it will be useful,             |
00014         | but WITHOUT ANY WARRANTY; without even the implied warranty of              |
00015         | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               |
00016         | GNU General Public License for more details.                                |
00017         |                                                                             |
00018         | You should have received a copy of the GNU General Public License           |
00019         | along with this program; if not, write to the Free Software                 |
00020         | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. |
00021         +-----------------------------------------------------------------------------+
00022 */
00023 
00032 class ilQTIAssessment
00033 {
00034         var $ident;
00035         var $title;
00036         var $xmllang;
00037         var $comment;
00038         var $duration;
00039         var $qtimetadata;
00040         var $objectives;
00041         var $assessmentcontrol;
00042         var $rubric;
00043         var $presentation_material;
00044         var $outcomes_processing;
00045         var $assessproc_extension;
00046         var $assessfeedback;
00047         var $selection_ordering;
00048         var $reference;
00049         var $sectionref;
00050         var $section;
00051         
00052         function ilQTIAssessment()
00053         {
00054                 $this->qtimetadata = array();
00055                 $this->objectives = array();
00056                 $this->assessmentcontrol = array();
00057                 $this->rubric = array();
00058                 $this->outcomes_processing = array();
00059                 $this->assessfeedback = array();
00060                 $this->sectionref = array();
00061                 $this->section = array();
00062         }
00063         
00064         function setIdent($a_ident)
00065         {
00066                 $this->ident = $a_ident;
00067         }
00068         
00069         function getIdent()
00070         {
00071                 return $this->ident;
00072         }
00073         
00074         function setTitle($a_title)
00075         {
00076                 $this->title = $a_title;
00077         }
00078         
00079         function getTitle()
00080         {
00081                 return $this->title;
00082         }
00083         
00084         function setComment($a_comment)
00085         {
00086                 $this->comment = $a_comment;
00087         }
00088         
00089         function getComment()
00090         {
00091                 return $this->comment;
00092         }
00093         
00094         function setDuration($a_duration)
00095         {
00096                 if (preg_match("/P(\d+)Y(\d+)M(\d+)DT(\d+)H(\d+)M(\d+)S/", $a_duration, $matches))
00097                 {
00098                         $this->duration = array(
00099                                 "h" => $matches[4], 
00100                                 "m" => $matches[5], 
00101                                 "s" => $matches[6]
00102                         );
00103                 }
00104         }
00105         
00106         function getDuration()
00107         {
00108                 return $this->duration;
00109         }
00110         
00111         function setXmllang($a_xmllang)
00112         {
00113                 $this->xmllang = $a_xmllang;
00114         }
00115         
00116         function getXmllang()
00117         {
00118                 return $this->xmllang;
00119         }
00120         
00121         function addQtiMetadata($a_metadata)
00122         {
00123                 array_push($this->qtimetadata, $a_metadata);
00124         }
00125         
00126         function addObjectives($a_objectives)
00127         {
00128                 array_push($this->objectives, $a_objectives);
00129         }
00130         
00131         function addAssessmentcontrol($a_assessmentcontrol)
00132         {
00133                 array_push($this->assessmentcontrol, $a_assessmentcontrol);
00134         }
00135         
00136         function addRubric($a_rubric)
00137         {
00138                 array_push($this->rubric, $a_rubric);
00139         }
00140         
00141         function setPresentationMaterial($a_material)
00142         {
00143                 $this->presentation_material = $a_material;
00144         }
00145         
00146         function getPresentationMaterial()
00147         {
00148                 return $this->presentation_material;
00149         }
00150         
00151         function addOutcomesProcessing($a_outcomes_processing)
00152         {
00153                 array_push($this->outcomes_processing, $a_outcomes_processing);
00154         }
00155         
00156         function setAssessprocExtension($a_assessproc_extension)
00157         {
00158                 $this->assessproc_extension = $a_assessproc_extension;
00159         }
00160         
00161         function getAssessprocExtension()
00162         {
00163                 return $this->assessproc_extension;
00164         }
00165         
00166         function addAssessfeedback($a_assessfeedback)
00167         {
00168                 array_push($this->assessfeedback, $a_assessfeedback);
00169         }
00170         
00171         function setSelectionOrdering($a_selection_ordering)
00172         {
00173                 $this->selection_ordering = $a_selection_ordering;
00174         }
00175         
00176         function getSelectionOrdering()
00177         {
00178                 return $this->selection_ordering;
00179         }
00180         
00181         function setReference($a_reference)
00182         {
00183                 $this->reference = $a_reference;
00184         }
00185         
00186         function getReference()
00187         {
00188                 return $this->reference;
00189         }
00190         
00191         function addSectionref($a_sectionref)
00192         {
00193                 array_push($this->sectionref, $a_sectionref);
00194         }
00195         
00196         function addSection($a_section)
00197         {
00198                 array_push($this->section, $a_section);
00199         }
00200 }
00201 ?>

Generated on Fri Dec 13 2013 10:18:26 for ILIAS Release_3_5_x_branch .rev 46805 by  doxygen 1.7.1