Source for file OCSP_CONF.phpclass
Documentation is available at OCSP_CONF.phpclass
-   * openCSP class file OCSP_CONF.phpclass 
-   * @project Open CSP-Management 
-   * @author Peter Krebs <pitlinz@users.sourceforge.net> 
-   * @license http://opensource.org/licenses/gpl-license.php GNU Public License 
-   * @version $Id: OCSP_CONF.phpclass,v 1.5 2008/11/15 10:03:33 pitlinz Exp $ 
-     // --------------------------------------------------------- 
-     // --------------------------------------------------------- 
-   * openCSP class OCSP_CONF 
-   * @project Open CSP-Management 
-   * @author Peter Krebs <pitlinz@users.sourceforge.net> 
-   * @license http://opensource.org/licenses/gpl-license.php GNU Public License 
-   * @version $Id: OCSP_CONF.phpclass,v 1.5 2008/11/15 10:03:33 pitlinz Exp $ 
-     // --------------------------------------------------------------------------- 
-     // --------------------------------------------------------------------------- 
-      * @constant string CLASS_SRC_FILE 
-     const CLASS_SRC_FILE - = __FILE__ ;
 
-     // --------------------------------------------------------------------------- 
-     // --------------------------------------------------------------------------- 
-     /*** class vars ------------------------------------------------------ */ 
-      * @staticvar array $instanceList  
-     /*** class methods --------------------------------------------------- */ 
-      * returns the instance for a system 
-         if (- isset (self::$instanceList[$system]))
 
-             return self::$instanceList[$system]; 
-         self::$instanceList[$system] - =  new OCSP_CONF($system);
 
-         return self::$instanceList[$system]; 
-     // --------------------------------------------------------------------------- 
-     // --------------------------------------------------------------------------- 
-     /*** compostion --------------------------------------------------- */ 
-     /*** attributes  -------------------------------------------------- */ 
-      * @param string $mySystem  
-      * is set to null here -> is_array can be used to check if 
-      * @var array $myCachedValues  
-      * array of values to update in the cache 
-      * @var array $updateCacheValues  
-      * is set to null here -> is_array can be used to check if 
-      * the db values are loaded 
-      * array of values to update in the db 
-      * @var array $updateDBValues  
-      * request id (unique key for the request) 
-     // --------------------------------------------------------------------------- 
-     // --------------------------------------------------------------------------- 
-      * store all values on destruct 
-     // --------------------------------------------------------------------------- 
-     // ---------------------------------------------------------------------------     
-      * @param boolean $useCache  
-     public function getValue($optName,$useCache- = True,$useDB- = False,$debug- = False)
 
-         if (- isset ($OCSP_CONF[$optName]))
 
-             $this->myValues[$optName] - =  &$OCSP_CONF[$optName];
 
-         if (- isset ($GLOBALS[$this->mySystem][$optName]))
 
-         if (- isset ($_SERVER[$optName]))
 
-             $this->myValues[$optName] - =  $_SERVER[$optName];
 
-         if (- isset ($GLOBALS[$optName]))
 
-             $this->myValues[$optName] - =  &$GLOBALS[$optName];
 
-      * @param boolean $toCache  
-     public function setValue($optName,$value,$toCache- = False,$toDB- = False)
 
-      * returns all configuration arrays 
-      * sets all configuration arrays 
-     // --------------------------------------------------------------------------- 
-     // ---------------------------------------------------------------------------     
-      * returns the absolute path of the project 
-         if (- isset ($this->myValues['PROJECTPATH']))
 
-         if (- isset ($_SERVER['PROJECTPATH'])- &&  !empty($_SERVER['PROJECTPATH']))
 
-         if (- isset ($OCSP_CONF['PROJECTPATH'])- &&  !empty($OCSP_CONF['PROJECTPATH']))
 
-      * returns the absolute path of the project configuration files 
-         if (- isset ($this->myValues['PROJ_CONFPATH']))
 
-             return $this->myValues['PROJ_CONFPATH']; 
-         if (- isset ($_SERVER['CONFIGPATH'])- &&  !empty($_SERVER['CONFIGPATH']))
 
-             $this->myValues['PROJ_CONFPATH'] - =  $_SERVER['CONFIGPATH'];
 
-             return $_SERVER['CONFIGPATH']; 
-         if ($this->myValues['PROJ_CONFPATH']- = $this->getValue('PROJ_CONFPATH',False,False,False))
 
-         return $this->myValues['PROJ_CONFPATH']; 
-      * returns the database type 
-         if (- isset ($_SERVER['DBTYPE'])- &&  !empty($_SERVER['DBTYPE']))
 
-             $this->myValues['DBTYPE'] - =  $_SERVER['DBTYPE'];
 
-      * returns a unique key for the request 
-         $str_request - = $_SERVER['REQUEST_URI'];
 
-         $str_request- .= $_SERVER['REMOTE_ADDR'];
 
-         $str_request- .= $_SERVER['REMOTE_PORT'];
 
-         $str_request- .= $_SERVER['REQUEST_TIME'];
 
-         $str_request- .= rand(0,1000);
 
-             if ($debug) echoDebugLine(- __FILE__ ,- __LINE__ ,"\$subKeys: <pre>"- .  print_r($subKeys,True)- .  "</pre>");
 
-             } while(empty($str_idx) - &&  sizeof($subKeys));
 
-             // check some former used $GLOBAL indexes 
-             if ($str_idx - ==  "OCSP_CONF")
 
-             if ($str_idx - ==  "PHPINCPATH")
 
 
	
		Documentation generated on Thu, 08 Jan 2009 17:45:21 +0100 by phpDocumentor 1.4.0a2