mirror of
				https://bitbucket.org/jsuto/piler.git
				synced 2025-11-04 14:42:27 +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]);
 | 
						|
   }
 | 
						|
 | 
						|
}
 | 
						|
 | 
						|
 | 
						|
?>
 |