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 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 ?>