XBRL-Instance.php
public static function FromInstanceDocumentWithExtensionTaxonomy( $instance_document, $compiledLocation, $className = 'XBRL', $useCache = false )
	{
		try
		{
			$instance = new XBRL_Instance();
			$instance->compiledLocation = $compiledLocation;
			$instance->className = $className;

			if ( ! $instance->initialise( $instance_document, null, $useCache ) )
			{
				return false;
			}
		}
		catch ( FormulasException $ex)
		{
			throw $ex;
		}
		catch( Exception $ex )
		{
			$instance->error = "Error initialising the instance document. It may contain invalid XML.\n";
			return false;
		}

		return $instance;
	}
public static function FromInstanceDocumentWithExtensionTaxonomy( $instance_document, $compiledLocation, $className = 'XBRL', $useCache = false )
	{
		try
		{
			$instance = new XBRL_Instance();
			$instance->compiledLocation = $compiledLocation;
			$instance->className = $className;

			if ( ! $instance->initialise( $instance_document, null, $useCache ) )
			{
				return false;
			}
		}
		catch ( FormulasException $ex)
		{
			throw $ex;
		}
		catch( Exception $ex )
		{
			$instance->error = "Error initialising the instance document. It may contain invalid XML.\n";
			return false;
		}

		return $instance;
	}
public static function FromInstanceDocumentWithExtensionTaxonomy ( $ instance_document , $ compiledLocation , $ className = 'XBRL' , $ useCache = false ) { try { $ instance = new XBRL_Instance ( ) ; $ instance -> compiledLocation = $ compiledLocation ; $ instance -> className = $ className ; if ( ! $ instance -> initialise ( $ instance_document , null , $ useCache ) ) { return false ; } } catch ( FormulasException $ ex ) { throw $ ex ; } catch ( Exception $ ex ) { $ instance -> error = "Error initialising the instance document. It may contain invalid XML.\n" ; return false ; } return $ instance ; }
Create an instance from an instance document using a base taxonomy if possible

@param string $instance_document The file containing the instance information
@param string $compiledLocation The location of compiled taxonomies
@param string $className The name of an XBRL class to initialize (defaults to 'XBRL')
@param bool $useCache (default: false) If true the instance document will be read from the cache
@return XBRL_Instance|bool
Create an instance from an instance document using a base taxonomy if possible