src/ADT/Registry.php
public function set( $key, &$value, $overwrite = false )
	{
		if( isset( $GLOBALS[$this->poolKey][$key] ) && !$overwrite )
			throw new InvalidArgumentException( 'Element "'.$key.'" is already registered.' );
		$GLOBALS[$this->poolKey][$key]	=& $value;
	}
public function set( $key, &$value, $overwrite = false )
	{
		if( isset( $GLOBALS[$this->poolKey][$key] ) && !$overwrite )
			throw new InvalidArgumentException( 'Element "'.$key.'" is already registered.' );
		$GLOBALS[$this->poolKey][$key]	=& $value;
	}
public function set ( $ key , & $ value , $ overwrite = false ) { if ( isset ( $ GLOBALS [ $ this -> poolKey ] [ $ key ] ) && ! $ overwrite ) throw new InvalidArgumentException ( 'Element "' . $ key . '" is already registered.' ) ; $ GLOBALS [ $ this -> poolKey ] [ $ key ] = & $ value ; }
Registers Object.
@access		public
@param		string		$key		Registry Key of registered Object
@param		mixed		$value		Object to register
@param		bool		$overwrite	Flag: overwrite already registered Objects
@return		void
Registers Object .