XBRL-Report-Base.php
private function &findNodeFromPath( &$nodes, $path )
	{
		$pathsParts = explode( '/', $path );
		$node = null;

		for ( $i = 0; $i < count( $pathsParts ); $i++ )
		{
			if ( ! isset( $nodes[ $pathsParts[ $i ] ] ) )
			{
				$node = false;
				break;
			}

			$node =& $nodes[ $pathsParts[ $i ] ];

			if ( isset( $node['children'] ) )
			{
				$nodes =& $node['children'];
				continue;
			}
		}

		return $node;
	}
private function &findNodeFromPath( &$nodes, $path )
	{
		$pathsParts = explode( '/', $path );
		$node = null;

		for ( $i = 0; $i < count( $pathsParts ); $i++ )
		{
			if ( ! isset( $nodes[ $pathsParts[ $i ] ] ) )
			{
				$node = false;
				break;
			}

			$node =& $nodes[ $pathsParts[ $i ] ];

			if ( isset( $node['children'] ) )
			{
				$nodes =& $node['children'];
				continue;
			}
		}

		return $node;
	}
private function & findNodeFromPath ( & $ nodes , $ path ) { $ pathsParts = explode ( '/' , $ path ) ; $ node = null ; for ( $ i = 0 ; $ i < count ( $ pathsParts ) ; $ i ++ ) { if ( ! isset ( $ nodes [ $ pathsParts [ $ i ] ] ) ) { $ node = false ; break ; } $ node = & $ nodes [ $ pathsParts [ $ i ] ] ; if ( isset ( $ node [ 'children' ] ) ) { $ nodes = & $ node [ 'children' ] ; continue ; } } return $ node ; }
Get the node for a path

@param array $nodes An array of nodes
@param string $path The path representing a node. A path is a set of labels concatenated by '/'
@return boolean|array False if the node is not found or a reference to the node represented by the $path
Get the node for a path