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
00024 define ("SPACE_PRESERVE", "1");
00025 define ("SPACE_DEFAULT", "2");
00026
00035 class ilQTIMattext
00036 {
00037 var $texttype;
00038 var $label;
00039 var $charset;
00040 var $uri;
00041 var $xmlspace;
00042 var $xmllang;
00043 var $entityref;
00044 var $width;
00045 var $height;
00046 var $x0;
00047 var $y0;
00048 var $content;
00049
00050 function ilQTIMatimage()
00051 {
00052 }
00053
00054 function setTexttype($a_texttype)
00055 {
00056 $this->texttype = $a_texttype;
00057 }
00058
00059 function getTexttype()
00060 {
00061 return $this->texttype;
00062 }
00063
00064 function setLabel($a_label)
00065 {
00066 $this->label = $a_label;
00067 }
00068
00069 function getLabel()
00070 {
00071 return $this->label;
00072 }
00073
00074 function setHeight($a_height)
00075 {
00076 $this->height = $a_height;
00077 }
00078
00079 function getHeight()
00080 {
00081 return $this->height;
00082 }
00083
00084 function setWidth($a_width)
00085 {
00086 $this->width = $a_width;
00087 }
00088
00089 function getWidth()
00090 {
00091 return $this->width;
00092 }
00093
00094 function setCharset($a_charset)
00095 {
00096 $this->charset = $a_charset;
00097 }
00098
00099 function getCharset()
00100 {
00101 return $this->charset;
00102 }
00103
00104 function setUri($a_uri)
00105 {
00106 $this->uri = $a_uri;
00107 }
00108
00109 function getUri()
00110 {
00111 return $this->uri;
00112 }
00113
00114 function setXmllang($a_xmllang)
00115 {
00116 $this->xmllang = $a_xmllang;
00117 }
00118
00119 function getXmllang()
00120 {
00121 return $this->xmllang;
00122 }
00123
00124 function setXmlspace($a_xmlspace)
00125 {
00126 switch (strtolower($a_xmlspace))
00127 {
00128 case "preserve":
00129 case "1":
00130 $this->xmlspace = SPACE_PRESERVE;
00131 break;
00132 case "default":
00133 case "2":
00134 $this->xmlspace = SPACE_DEFAULT;
00135 break;
00136 }
00137 }
00138
00139 function getXmlspace()
00140 {
00141 return $this->xmlspace;
00142 }
00143
00144 function setX0($a_x0)
00145 {
00146 $this->x0 = $a_x0;
00147 }
00148
00149 function getX0()
00150 {
00151 return $this->x0;
00152 }
00153
00154 function setY0($a_y0)
00155 {
00156 $this->y0 = $a_y0;
00157 }
00158
00159 function getY0()
00160 {
00161 return $this->y0;
00162 }
00163
00164 function setEntityref($a_entityref)
00165 {
00166 $this->entityref = $a_entityref;
00167 }
00168
00169 function getEntityref()
00170 {
00171 return $this->entityref;
00172 }
00173
00174 function setContent($a_content)
00175 {
00176 $this->content = $a_content;
00177 }
00178
00179 function getContent()
00180 {
00181 return $this->content;
00182 }
00183 }
00184 ?>