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

assessment/classes/class.assMark.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 
00035 class ASS_Mark {
00043   var $short_name;
00044 
00052   var $official_name;
00053 
00061   var $minimum_level;
00062 
00070   var $passed;
00071 
00082   function ASS_Mark(
00083     $short_name = "",
00084     $official_name = "",
00085     $minimum_level = 0,
00086                 $passed = 0
00087   ) 
00088   {
00089     $this->short_name = $short_name;
00090     $this->official_name = $official_name;
00091     $this->minimum_level = $minimum_level;
00092                 $this->passed = $passed;
00093   }
00094   
00104   function get_short_name() {
00105     return $this->short_name;
00106   }
00107   
00117   function get_passed() {
00118     return $this->passed;
00119   }
00120   
00130   function get_official_name() {
00131     return $this->official_name;
00132   }
00133   
00143   function get_minimum_level() {
00144     return $this->minimum_level;
00145   }
00146   
00156   function set_short_name($short_name = "") {
00157     $this->short_name = $short_name;
00158   }
00159 
00169   function set_passed($passed = 0) {
00170     $this->passed = $passed;
00171   }
00172 
00182   function set_official_name($official_name = "") {
00183     $this->official_name = $official_name;
00184   }
00185 
00195   function set_minimum_level($minimum_level = 0) {
00196     if (($minmum_level >= 0) and ($minimum_level <= 100))
00197       $this->minimum_level = $minimum_level;
00198   }
00199 }
00200 
00201 ?>

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