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_Mark { 00044 var $short_name; 00045 00053 var $official_name; 00054 00062 var $minimum_level; 00063 00071 var $passed; 00072 00083 function ASS_Mark( 00084 $short_name = "", 00085 $official_name = "", 00086 $minimum_level = 0, 00087 $passed = 0 00088 ) 00089 { 00090 $this->short_name = $short_name; 00091 $this->official_name = $official_name; 00092 $this->minimum_level = $minimum_level; 00093 $this->passed = $passed; 00094 } 00095 00105 function get_short_name() { 00106 return $this->short_name; 00107 } 00108 00118 function get_passed() { 00119 return $this->passed; 00120 } 00121 00131 function get_official_name() { 00132 return $this->official_name; 00133 } 00134 00144 function get_minimum_level() { 00145 return $this->minimum_level; 00146 } 00147 00157 function set_short_name($short_name = "") { 00158 $this->short_name = $short_name; 00159 } 00160 00170 function set_passed($passed = 0) { 00171 $this->passed = $passed; 00172 } 00173 00183 function set_official_name($official_name = "") { 00184 $this->official_name = $official_name; 00185 } 00186 00196 function set_minimum_level($minimum_level = 0) { 00197 if (($minmum_level >= 0) and ($minimum_level <= 100)) 00198 $this->minimum_level = $minimum_level; 00199 } 00200 } 00201 00202 ?>
1.7.1