Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

config.inc.php

Go to the documentation of this file.
00001 <?
00002 /*
00003 * @ingroup BJHelpers
00004 * @brief The config class is an easy way to store sitewide configurations.
00005 *
00006 * You dont have to resort to GLOBALS, defines, or any of the other hacky,
00007 * kludge type fixes.  Its a singleton based class, with two methods:  get and
00008 * set.  Its ridiculously easy to use and headache free.
00009 */
00010 class Config
00011 {
00015     private static $data = array();
00016     
00020     private function __construct()
00021     {
00022     }
00023 
00031     public static function get($key)
00032     {
00033         return self::$data[$key];
00034     }
00035 
00042     public function set($key, $val)
00043     {
00044         self::$data[$key] = $val;
00045     }
00046 }
00047 ?>

Generated on Fri Oct 27 12:26:39 2006 for BaseJumper by doxygen 1.3.9.1