XBRL.php
public function resolveId( $href, $link = null )
	{
		// Check the $href provided is valid
		$parts = is_array( $href ) ? $href : parse_url( $href );
		if ( ! isset( $parts['path'] ) || ! isset( $parts['fragment'] ) ) return false;

		$id = $parts['fragment'];
		$taxonomy = $this->getTaxonomyForXSD( $href );
		if ( $taxonomy === false ) return false;

		// The ID may belong to one of the elements
		$elements =& $taxonomy->getElements();
		return isset( $elements[ $id ] )
			? $elements[ $id ]
			: false;
	}
public function resolveId( $href, $link = null )
	{
		// Check the $href provided is valid
		$parts = is_array( $href ) ? $href : parse_url( $href );
		if ( ! isset( $parts['path'] ) || ! isset( $parts['fragment'] ) ) return false;

		$id = $parts['fragment'];
		$taxonomy = $this->getTaxonomyForXSD( $href );
		if ( $taxonomy === false ) return false;

		// The ID may belong to one of the elements
		$elements =& $taxonomy->getElements();
		return isset( $elements[ $id ] )
			? $elements[ $id ]
			: false;
	}
public function resolveId ( $ href , $ link = null ) { // Check the $href provided is valid
 $ parts = is_array ( $ href ) ? $ href : parse_url ( $ href ) ; if ( ! isset ( $ parts [ 'path' ] ) || ! isset ( $ parts [ 'fragment' ] ) ) return false ; $ id = $ parts [ 'fragment' ] ; $ taxonomy = $ this -> getTaxonomyForXSD ( $ href ) ; if ( $ taxonomy === false ) return false ; // The ID may belong to one of the elements
 $ elements = & $ taxonomy -> getElements ( ) ; return isset ( $ elements [ $ id ] ) ? $ elements [ $ id ] : false ; }
Returns the node with ID that corresponds to the href.
@param $href string|array The href is likely to come from a locator and can be the string or an array produced by parse_url.
@param string $link A 'usedOn' value to select one of the roleTypes
@return string|boolean
Returns the node with ID that corresponds to the href .