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

assessment/classes/class.ilQTIMaterial.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 ilQTIMaterial
00033 {
00034         var $label;
00035         var $flow;
00036         var $comment;
00037         var $mattext;
00038         var $matemtext;
00039         var $matimage;
00040         var $mataudio;
00041         var $matvideo;
00042         var $matapplet;
00043         var $matapplication;
00044         var $matref;
00045         var $matbreak;
00046         var $mat_extension;
00047         var $altmaterial;
00048         
00049         function ilQTIMaterial()
00050         {
00051                 $this->flow = 0;
00052                 $this->mattext = array();
00053                 $this->matemtext = array();
00054                 $this->matimage = array();
00055                 $this->mataudio = array();
00056                 $this->matvideo = array();
00057                 $this->matapplet = array();
00058                 $this->matapplication = array();
00059                 $this->matref = array();
00060                 $this->matbreak = array();
00061                 $this->mat_extension = array();
00062                 $this->altmaterial = array();
00063         }
00064         
00065         function addMattext($a_mattext)
00066         {
00067                 array_push($this->mattext, $a_mattext);
00068         }
00069 
00070         function addMatimage($a_matimage)
00071         {
00072                 array_push($this->matimage, $a_matimage);
00073         }
00074 
00075         function addMatemtext($a_matemtext)
00076         {
00077                 array_push($this->matemtext, $a_matemtext);
00078         }
00079 
00080         function addMataudio($a_mataudio)
00081         {
00082                 array_push($this->mataudio, $a_mataudio);
00083         }
00084 
00085         function addMatvideo($a_matvideo)
00086         {
00087                 array_push($this->matvideo, $a_matvideo);
00088         }
00089 
00090         function addMatapplet($a_matapplet)
00091         {
00092                 array_push($this->matapplet, $a_matapplet);
00093         }
00094 
00095         function addMatapplication($a_matapplication)
00096         {
00097                 array_push($this->matapplication, $a_matapplication);
00098         }
00099 
00100         function addMatref($a_matref)
00101         {
00102                 array_push($this->matref, $a_matref);
00103         }
00104 
00105         function addMatbreak($a_matbreak)
00106         {
00107                 array_push($this->matbreak, $a_matbreak);
00108         }
00109 
00110         function addMat_extension($a_mat_extension)
00111         {
00112                 array_push($this->mat_extension, $a_mat_extension);
00113         }
00114 
00115         function addAltmaterial($a_altmaterial)
00116         {
00117                 array_push($this->altmaterial, $a_altmaterial);
00118         }
00119         
00120         function setFlow($a_flow)
00121         {
00122                 $this->flow = $a_flow;
00123         }
00124         
00125         function getFlow()
00126         {
00127                 return $this->flow;
00128         }
00129         
00130         function setLabel($a_label)
00131         {
00132                 $this->label = $a_label;
00133         }
00134         
00135         function getLabel()
00136         {
00137                 return $this->label;
00138         }
00139 }
00140 ?>

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