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

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