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 00024 include_once "./assessment/classes/inc.AssessmentConstants.php"; 00025 00036 class ASS_AnswerSimple 00037 { 00045 var $answertext; 00046 00054 var $points; 00055 00063 var $order; 00064 00072 var $id; 00073 00084 function ASS_AnswerSimple ( 00085 $answertext = "", 00086 $points = 0.0, 00087 $order = 0, 00088 $id = -1 00089 ) 00090 { 00091 $this->answertext = $answertext; 00092 $this->points = $points; 00093 $this->order = $order; 00094 $this->id = $id; 00095 } 00096 00106 function getId() 00107 { 00108 return $this->id; 00109 } 00110 00120 function get_answertext() 00121 { 00122 //$tmpanswertext = "<![CDATA[".$this->answertext."]]>"; 00123 $tmpanswertext = $this->answertext; 00124 return $tmpanswertext; 00125 } 00126 00136 function get_points() 00137 { 00138 return $this->points; 00139 } 00140 00150 function get_order() 00151 { 00152 return $this->order; 00153 } 00154 00164 function set_order($order = 0) 00165 { 00166 if ($order >= 0) 00167 { 00168 $this->order = $order; 00169 } 00170 } 00171 00181 function setId($id = -1) 00182 { 00183 $this->order = $order; 00184 } 00185 00195 function set_answertext($answertext = "") 00196 { 00197 $this->answertext = $answertext; 00198 } 00199 00209 function set_points($points = 0.0) 00210 { 00211 $this->points = $points; 00212 } 00213 } 00214 00215 ?>
1.7.1