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

assessment/classes/class.assAnswerSimple.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 
00034 class ASS_AnswerSimple
00035 {
00043         var $answertext;
00044 
00052         var $points;
00053 
00061         var $order;
00062         
00070         var $id;
00071 
00082         function ASS_AnswerSimple (
00083                 $answertext = "",
00084                 $points = 0.0,
00085                 $order = 0,
00086                 $id = -1
00087         )
00088         {
00089                 $this->answertext = $answertext;
00090                 $this->points = $points;
00091                 $this->order = $order;
00092                 $this->id = $id;
00093         }
00094 
00104         function getId()
00105         {
00106                 return $this->id;
00107         }
00108         
00118         function get_answertext()
00119         {
00120           //$tmpanswertext = "<![CDATA[".$this->answertext."]]>";
00121           $tmpanswertext = $this->answertext;
00122                 return $tmpanswertext;
00123         }
00124 
00134         function get_points()
00135         {
00136                 return $this->points;
00137         }
00138 
00148         function get_order()
00149         {
00150                 return $this->order;
00151         }
00152 
00162         function set_order($order = 0)
00163         {
00164                 if ($order >= 0)
00165                 {
00166                         $this->order = $order;
00167                 }
00168         }
00169 
00179         function setId($id = -1)
00180         {
00181                 $this->order = $order;
00182         }
00183 
00193         function set_answertext($answertext = "")
00194         {
00195                 $this->answertext = $answertext;
00196         }
00197 
00207         function set_points($points = 0.0)
00208         {
00209                 $this->points = $points;
00210         }
00211 }
00212 
00213 ?>

Generated on Fri Dec 13 2013 09:06:31 for ILIAS Release_3_4_x_branch .rev 46804 by  doxygen 1.7.1