1. Import
This commit is contained in:
31
html/lib/mc_lib.inc.php
Normal file
31
html/lib/mc_lib.inc.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
|
||||
// *****************************************
|
||||
// * Singleton Class für global parameters *
|
||||
// *****************************************
|
||||
|
||||
class GDC {
|
||||
|
||||
private static $inst = null;
|
||||
private $gdc = array();
|
||||
|
||||
private function __construct() { }
|
||||
|
||||
public static function getInstance() {
|
||||
if (self::$inst === null) {
|
||||
self::$inst = new self();
|
||||
}
|
||||
return self::$inst;
|
||||
}
|
||||
|
||||
public function setVal($key, $val) {
|
||||
$this->gdc[$key] = $val;
|
||||
}
|
||||
|
||||
public function getVal($key) {
|
||||
return $this->gdc[$key];
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user