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

assessment/classes/class.assAnswerCloze.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 
00038 class ASS_AnswerCloze extends ASS_AnswerBinaryState {
00047   var $cloze_type;
00048 
00057   var $name;
00058   
00059         var $shuffle;
00060         
00073   function ASS_AnswerCloze (
00074     $answertext = "",
00075     $points = 0.0,
00076     $order = 0,
00077     $state = 0,
00078                 $cloze_type = 0,
00079                 $name = "",
00080                 $shuffle = 1,
00081                 $id = -1
00082   )
00083   {
00084     $this->ASS_AnswerBinaryState($answertext, $points, $order, $state, $id);
00085     $this->cloze_type = $cloze_type;
00086                 $this->name = $name;
00087                 $this->shuffle = $shuffle;
00088   }
00089   
00090   
00100   function get_cloze_type() {
00101     return $this->cloze_type;
00102   }
00103   
00104         function get_shuffle() {
00105                 return $this->shuffle;
00106         }
00107         
00117   function set_cloze_type($cloze_type = 0) {
00118     $this->cloze_type = $cloze_type;
00119   }
00120 
00130   function get_name() {
00131     return $this->name;
00132   }
00133   
00143   function set_name($name = 0) {
00144     $this->name = $name;
00145   }
00146         
00147         function set_shuffle($shuffle = 1) {
00148                 $this->shuffle = $shuffle;
00149         }
00150 }
00151 
00152 ?>

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