public static function getInstance($id)
	{
		if (empty(self::$instances[$id]))
		{
			self::$instances[$id] = new self;
		}

		return self::$instances[$id];
	}
public static function getInstance($id)
	{
		if (empty(self::$instances[$id]))
		{
			self::$instances[$id] = new self;
		}

		return self::$instances[$id];
	}
public static function getInstance ( $ id ) { if ( empty ( self :: $ instances [ $ id ] ) ) { self :: $ instances [ $ id ] = new self ; } return self :: $ instances [ $ id ] ; }
Returns a reference to a global Registry object, only creating it
if it doesn't already exist.

This method must be invoked as:
<pre>$registry = Registry::getInstance($id);</pre>

@param   string  $id  An ID for the registry instance

@return  Registry  The Registry object.

@since   1.0
@deprecated  2.0  Instantiate a new Registry instance instead
Returns a reference to a global Registry object only creating it if it doesn t already exist .