mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 06:00:13 +01:00
26 lines
352 B
PHP
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]);
|
|
}
|
|
|
|
}
|
|
|
|
|
|
?>
|