XBRL.php
public static function compile( $taxonomy_file, $namespace = null, $output_basename = null )
	{
		$xbrl = XBRL::load_taxonomy( $taxonomy_file, true );
		if ( $xbrl === false )
		{
			XBRL_Log::getInstance()->err( "Taxonomy failed to load" );
			return false;
		}

		$taxonomy = $namespace === null ? $xbrl : $xbrl->getTaxonomyForNamespace( $namespace );

		$xbrl->saveTaxonomy( $namespace, $output_basename );

		return $taxonomy;
	}
public static function compile( $taxonomy_file, $namespace = null, $output_basename = null )
	{
		$xbrl = XBRL::load_taxonomy( $taxonomy_file, true );
		if ( $xbrl === false )
		{
			XBRL_Log::getInstance()->err( "Taxonomy failed to load" );
			return false;
		}

		$taxonomy = $namespace === null ? $xbrl : $xbrl->getTaxonomyForNamespace( $namespace );

		$xbrl->saveTaxonomy( $namespace, $output_basename );

		return $taxonomy;
	}
public static function compile ( $ taxonomy_file , $ namespace = null , $ output_basename = null ) { $ xbrl = XBRL :: load_taxonomy ( $ taxonomy_file , true ) ; if ( $ xbrl === false ) { XBRL_Log :: getInstance ( ) -> err ( "Taxonomy failed to load" ) ; return false ; } $ taxonomy = $ namespace === null ? $ xbrl : $ xbrl -> getTaxonomyForNamespace ( $ namespace ) ; $ xbrl -> saveTaxonomy ( $ namespace , $ output_basename ) ; return $ taxonomy ; }
Compile a taxonomy into an a collection of arrays then convert to JSON and save to a file.

@param string $taxonomy_file The name of the taxonomy file (xsd) to load
@param string $namespace The namespace of the taxonomy imported by the one being loaded that is to be returned.
@param string $output_basename A name to use as the base for output files. 'xxx' will result in 'xxx.zip' and 'xxx.json' output files
@return false|XBRL <false, XBRL>
Compile a taxonomy into an a collection of arrays then convert to JSON and save to a file .