Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

Check.php

Go to the documentation of this file.
00001 <?php
00002 /* $Id: Check.php,v 1.1 2003/10/17 08:14:49 mikko Exp $ */
00003 /*
00004  * ImaComm - a web based photo album software
00005  * Copyright (C) 2003, Mikko Kokkonen
00006  *
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2 of the License, or (at
00010  * your option) any later version.
00011  * 
00012  * This program is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * General Public License for more details.
00016  * 
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00020  */
00021 define("STATUS_PASSED",         2);
00022 define("STATUS_WARNING",        4);
00023 define("STATUS_ERROR",          8);
00024 define("STATUS_SERIOUS_ERROR", 16);
00025 
00026 class Check
00027 {
00032         var $title;
00033 
00038         var $description;
00039 
00046         var $pathinfo;
00047 
00053         var $varname;
00054 
00060         var $status;
00061 
00062         var $warn_level;
00063         var $err_level;
00064         var $serious;
00068         function Check()
00069         {
00070         }
00071 
00072         function setLevelInfo($warn, $err, $serious)
00073         {
00074                 $this->warn_level = $warn;
00075                 $this->err_level = $err;
00076                 $this->serious = $serious;
00077         }
00078         
00079         function getTitle()
00080         {
00081                 return $this->title;
00082         }
00083 
00084         function getDescription()
00085         {
00086                 return $this->description;
00087         }
00088         
00089         function getStatus()
00090         {
00091                 return $this->status;
00092         }
00093 
00094         function getMissing($implode = "<br />\n")
00095         {
00096                 if (is_array($this->missing))
00097                 {
00098                         return $this->missingText."<br />\n".implode($implode, $this->missing);
00099                 }
00100                 return null;
00101         }
00102 }
00103 ?>

Generated on Sun Oct 19 11:08:00 2003 for ImaComm by doxygen1.3