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

assessment/classes/class.assAnswerMatching.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_AnswerMatching
00035 {
00043         var $term;
00044 
00052         var $points;
00053 
00061         var $picture_or_definition;
00062 
00070   var $term_id;
00071   
00079   var $picture_or_definition_id;
00080   
00092   function ASS_AnswerMatching (
00093     $term = "",
00094     $points = 0.0,
00095     $term_id = 0,
00096     $picture_or_definition = "",
00097     $picture_or_definition_id = 0
00098   )
00099   {
00100     $this->term = $term;
00101     $this->term_id = $term_id;
00102                 $this->picture_or_definition = $picture_or_definition;
00103                 $this->picture_or_definition_id = $picture_or_definition_id;
00104                 $this->points = $points;
00105         }
00106 
00116         function getTerm()
00117         {
00118                 return $this->term;
00119         }
00120 
00130         function getPoints()
00131         {
00132                 return $this->points;
00133         }
00134 
00144         function getTermId()
00145         {
00146                 return $this->term_id;
00147         }
00148 
00158   function getPicture() {
00159     return $this->picture_or_definition;
00160   }
00161 
00171   function getDefinition() {
00172     return $this->picture_or_definition;
00173   }
00174   
00184   function getPictureId() {
00185     return $this->picture_or_definition_id;
00186   }
00187 
00197   function getDefinitionId() {
00198     return $this->picture_or_definition_id;
00199   }
00200   
00210         function setTermId($term_id = 0)
00211         {
00212                 if ($term_id >= 0)
00213                 {
00214                         $this->term_id = $term_id;
00215                 }
00216         }
00217 
00227         function setPictureId($picture_id = 0)
00228         {
00229                 if ($picture_id >= 0)
00230                 {
00231                         $this->picture_or_definition_id = $picture_id;
00232                 }
00233         }
00234 
00244         function setDefinitionId($definition_id = 0)
00245         {
00246                 if ($definition_id >= 0)
00247                 {
00248                         $this->picture_or_definition_id = $definition_id;
00249                 }
00250         }
00251 
00261         function setTerm($term = "")
00262         {
00263                 $this->term = $term;
00264         }
00265 
00275         function setPicture($picture = "")
00276         {
00277                 $this->picture_or_definition = $picture;
00278         }
00279 
00289         function setDefinition($definition = "")
00290         {
00291                 $this->picture_or_definition = $definition;
00292         }
00293 
00294 
00304         function setPoints($points = 0.0)
00305         {
00306                 $this->points = $points;
00307         }
00308 
00309 }
00310 
00311 ?>

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