24       static $registry = array();
 
   35    static function &
get($key, $createIfEmpty = 
false, $createWithDefault = 
null) {
 
   39       if (isset($registry[$key])) $result =& $registry[$key];
 
   40       elseif ($createIfEmpty) {
 
   41          $result = $createWithDefault;
 
   53    static function set($key, &$value) {
 
   55       $registry[$key] =& $value;
 
   62    static function delete($key) {
 
   64       if (isset($registry[$key])) {
 
   65          unset($registry[$key]);
 
   71       foreach (array_keys($registry) as $key) {
 
   72          unset($registry[$key]);