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

Modules/TestQuestionPool/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 
00024 include_once "./Modules/Test/classes/inc.AssessmentConstants.php";
00025 
00035 class ASS_AnswerMatching
00036 {
00044         var $term;
00045 
00053         var $points;
00054 
00062         var $picture_or_definition;
00063 
00071   var $term_id;
00072   
00080   var $picture_or_definition_id;
00081   
00093   function ASS_AnswerMatching (
00094     $term = "",
00095     $points = 0.0,
00096     $term_id = 0,
00097     $picture_or_definition = "",
00098     $picture_or_definition_id = 0
00099   )
00100   {
00101     $this->term = $term;
00102     $this->term_id = $term_id;
00103                 $this->picture_or_definition = $picture_or_definition;
00104                 $this->picture_or_definition_id = $picture_or_definition_id;
00105                 $this->points = $points;
00106         }
00107 
00117         function getTerm()
00118         {
00119                 return $this->term;
00120         }
00121 
00131         function getPoints()
00132         {
00133                 return $this->points;
00134         }
00135 
00145         function getTermId()
00146         {
00147                 return $this->term_id;
00148         }
00149 
00159   function getPicture() {
00160     return $this->picture_or_definition;
00161   }
00162 
00172   function getDefinition() {
00173     return $this->picture_or_definition;
00174   }
00175   
00185   function getPictureId() {
00186     return $this->picture_or_definition_id;
00187   }
00188 
00198   function getDefinitionId() {
00199     return $this->picture_or_definition_id;
00200   }
00201   
00211         function setTermId($term_id = 0)
00212         {
00213                 if ($term_id >= 0)
00214                 {
00215                         $this->term_id = $term_id;
00216                 }
00217         }
00218 
00228         function setPictureId($picture_id = 0)
00229         {
00230                 if ($picture_id >= 0)
00231                 {
00232                         $this->picture_or_definition_id = $picture_id;
00233                 }
00234         }
00235 
00245         function setDefinitionId($definition_id = 0)
00246         {
00247                 if ($definition_id >= 0)
00248                 {
00249                         $this->picture_or_definition_id = $definition_id;
00250                 }
00251         }
00252 
00262         function setTerm($term = "")
00263         {
00264                 $this->term = $term;
00265         }
00266 
00276         function setPicture($picture = "")
00277         {
00278                 $this->picture_or_definition = $picture;
00279         }
00280 
00290         function setDefinition($definition = "")
00291         {
00292                 $this->picture_or_definition = $definition;
00293         }
00294 
00295 
00305         function setPoints($points = 0.0)
00306         {
00307                 $this->points = $points;
00308         }
00309 
00310 }
00311 
00312 ?>

Generated on Fri Dec 13 2013 17:56:53 for ILIAS Release_3_9_x_branch .rev 46835 by  doxygen 1.7.1