• 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 
00024 include_once "./assessment/classes/inc.AssessmentConstants.php";
00025 
00036 class ASS_AnswerMatching
00037 {
00045         var $term;
00046 
00054         var $points;
00055 
00063         var $picture_or_definition;
00064 
00072   var $term_id;
00073   
00081   var $picture_or_definition_id;
00082   
00094   function ASS_AnswerMatching (
00095     $term = "",
00096     $points = 0.0,
00097     $term_id = 0,
00098     $picture_or_definition = "",
00099     $picture_or_definition_id = 0
00100   )
00101   {
00102     $this->term = $term;
00103     $this->term_id = $term_id;
00104                 $this->picture_or_definition = $picture_or_definition;
00105                 $this->picture_or_definition_id = $picture_or_definition_id;
00106                 $this->points = $points;
00107         }
00108 
00118         function getTerm()
00119         {
00120                 return $this->term;
00121         }
00122 
00132         function getPoints()
00133         {
00134                 return $this->points;
00135         }
00136 
00146         function getTermId()
00147         {
00148                 return $this->term_id;
00149         }
00150 
00160   function getPicture() {
00161     return $this->picture_or_definition;
00162   }
00163 
00173   function getDefinition() {
00174     return $this->picture_or_definition;
00175   }
00176   
00186   function getPictureId() {
00187     return $this->picture_or_definition_id;
00188   }
00189 
00199   function getDefinitionId() {
00200     return $this->picture_or_definition_id;
00201   }
00202   
00212         function setTermId($term_id = 0)
00213         {
00214                 if ($term_id >= 0)
00215                 {
00216                         $this->term_id = $term_id;
00217                 }
00218         }
00219 
00229         function setPictureId($picture_id = 0)
00230         {
00231                 if ($picture_id >= 0)
00232                 {
00233                         $this->picture_or_definition_id = $picture_id;
00234                 }
00235         }
00236 
00246         function setDefinitionId($definition_id = 0)
00247         {
00248                 if ($definition_id >= 0)
00249                 {
00250                         $this->picture_or_definition_id = $definition_id;
00251                 }
00252         }
00253 
00263         function setTerm($term = "")
00264         {
00265                 $this->term = $term;
00266         }
00267 
00277         function setPicture($picture = "")
00278         {
00279                 $this->picture_or_definition = $picture;
00280         }
00281 
00291         function setDefinition($definition = "")
00292         {
00293                 $this->picture_or_definition = $definition;
00294         }
00295 
00296 
00306         function setPoints($points = 0.0)
00307         {
00308                 $this->points = $points;
00309         }
00310 
00311 }
00312 
00313 ?>

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