piler/webui/system/registry.php
2012-02-08 23:14:28 +01:00

26 lines
352 B
PHP

<?php
class Registry {
static private $data = array();
static public function get($key) {
return (isset(self::$data[$key]) ? self::$data[$key] : NULL);
}
static public function set($key, $value) {
self::$data[$key] = $value;
}
static public function has($key) {
return isset(self::$data[$key]);
}
}
?>