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

assessment/classes/class.ilQTIPresentation.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 ilQTIPresentation
00033 {
00034         var $label;
00035         var $xmllang;
00036         var $x0;
00037         var $y0;
00038         var $width;
00039         var $height;
00040         
00041         var $material;
00042         var $response;
00043         var $order;
00044         
00045         function ilQTIPresentation()
00046         {
00047                 $this->response = array();
00048                 $this->material = array();
00049                 $this->order = array();
00050         }
00051         
00052         function setLabel($a_label)
00053         {
00054                 $this->label = $a_label;
00055         }
00056         
00057         function getLabel()
00058         {
00059                 return $this->label;
00060         }
00061         
00062         function setXmllang($a_xmllang)
00063         {
00064                 $this->xmllang = $a_xmllang;
00065         }
00066         
00067         function getXmllang()
00068         {
00069                 return $this->xmllang;
00070         }
00071         
00072         function setX0($a_x0)
00073         {
00074                 $this->x0 = $a_x0;
00075         }
00076         
00077         function getX0()
00078         {
00079                 return $this->x0;
00080         }
00081         
00082         function setY0($a_y0)
00083         {
00084                 $this->y0 = $a_y0;
00085         }
00086         
00087         function getY0()
00088         {
00089                 return $this->y0;
00090         }
00091         
00092         function setWidth($a_width)
00093         {
00094                 $this->width = $a_width;
00095         }
00096         
00097         function getWidth()
00098         {
00099                 return $this->width;
00100         }
00101         
00102         function setHeight($a_height)
00103         {
00104                 $this->height = $a_height;
00105         }
00106         
00107         function getHeight()
00108         {
00109                 return $this->height;
00110         }
00111         
00112         function addMaterial($a_material)
00113         {
00114                 $count = array_push($this->material, $a_material);
00115                 array_push($this->order, array("type" =>"material", "index" => $count-1));
00116         }
00117         
00118         function addResponse($a_response)
00119         {
00120                 $count = array_push($this->response, $a_response);
00121                 array_push($this->order, array("type" =>"response", "index" => $count-1));
00122         }
00123 }
00124 ?>

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