• 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 require_once "./assessment/classes/class.assAnswerBinaryState.php";
00025 
00038 class ASS_AnswerImagemap extends ASS_AnswerBinaryState {
00046   var $coords;
00047 
00055   var $area;
00056   
00068   function ASS_AnswerImagemap (
00069     $answertext = "",
00070     $points = 0.0,
00071     $order = 0,
00072     $state = 0,
00073     $coords = "",
00074     $area = ""
00075   )
00076   {
00077     $this->ASS_AnswerBinaryState($answertext, $points, $order, $state);
00078     $this->coords = $coords;
00079                 $this->area = $area;
00080   }
00081   
00082   
00092   function get_coords() {
00093                 $this->coords = preg_replace("/\s/", "", $this->coords);
00094     return $this->coords;
00095   }
00096 
00097 
00107   function set_coords($coords="") {
00108                 $coords = preg_replace("/\s/", "", $coords);
00109     $this->coords=$coords;
00110   }
00111 
00121   function get_area() {
00122     return $this->area;
00123   }
00124 
00125 
00135   function set_area($area="") {
00136     $this->area=$area;
00137   }
00138 }
00139 
00140 ?>

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