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

assessment/classes/class.assAnswerImagemap.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 
00024 include_once "./assessment/classes/class.assAnswerBinaryState.php";
00025 include_once "./assessment/classes/inc.AssessmentConstants.php";
00026 
00039 class ASS_AnswerImagemap extends ASS_AnswerBinaryState {
00047   var $coords;
00048 
00056   var $area;
00057   
00069   function ASS_AnswerImagemap (
00070     $answertext = "",
00071     $points = 0.0,
00072     $order = 0,
00073     $state = 0,
00074     $coords = "",
00075     $area = ""
00076   )
00077   {
00078     $this->ASS_AnswerBinaryState($answertext, $points, $order, $state);
00079     $this->coords = $coords;
00080                 $this->area = $area;
00081   }
00082   
00083   
00093   function get_coords() {
00094                 $this->coords = preg_replace("/\s/", "", $this->coords);
00095     return $this->coords;
00096   }
00097 
00098 
00108   function set_coords($coords="") {
00109                 $coords = preg_replace("/\s/", "", $coords);
00110     $this->coords=$coords;
00111   }
00112 
00122   function get_area() {
00123     return $this->area;
00124   }
00125 
00126 
00136   function set_area($area="") {
00137     $this->area=$area;
00138   }
00139 }
00140 
00141 ?>

Generated on Fri Dec 13 2013 11:57:52 for ILIAS Release_3_6_x_branch .rev 46809 by  doxygen 1.7.1