XBRL-Instance.php
public function isHypercubeDimensionallyValid( $context, $hypercube, $closed )
	{
		// Convert the array of dimensions into one indexed by qname as required by the isDimensionallyValid function
		$hypercubeDimensions = array_reduce( $hypercube['dimensions'], function( $carry, $dimension ) use( &$hypercubeDimensions )
		{
			$dimTaxonomy = $this->getInstanceTaxonomy()->getTaxonomyForXSD( $dimension['label'] );
			$element = $dimTaxonomy->getElementById( $dimension['label'] );

			$carry[ "{$dimTaxonomy->getPrefix()}:{$element['name']}" ] = $dimension;
			return $carry;
		}, array() );

		return $this->isDimensionallyValid( $context, $hypercubeDimensions, $closed );
	}
public function isHypercubeDimensionallyValid( $context, $hypercube, $closed )
	{
		// Convert the array of dimensions into one indexed by qname as required by the isDimensionallyValid function
		$hypercubeDimensions = array_reduce( $hypercube['dimensions'], function( $carry, $dimension ) use( &$hypercubeDimensions )
		{
			$dimTaxonomy = $this->getInstanceTaxonomy()->getTaxonomyForXSD( $dimension['label'] );
			$element = $dimTaxonomy->getElementById( $dimension['label'] );

			$carry[ "{$dimTaxonomy->getPrefix()}:{$element['name']}" ] = $dimension;
			return $carry;
		}, array() );

		return $this->isDimensionallyValid( $context, $hypercubeDimensions, $closed );
	}
public function isHypercubeDimensionallyValid ( $ context , $ hypercube , $ closed ) { // Convert the array of dimensions into one indexed by qname as required by the isDimensionallyValid function
 $ hypercubeDimensions = array_reduce ( $ hypercube [ 'dimensions' ] , function ( $ carry , $ dimension ) use ( & $ hypercubeDimensions ) { $ dimTaxonomy = $ this -> getInstanceTaxonomy ( ) -> getTaxonomyForXSD ( $ dimension [ 'label' ] ) ; $ element = $ dimTaxonomy -> getElementById ( $ dimension [ 'label' ] ) ; $ carry [ "{$dimTaxonomy->getPrefix()}:{$element['name']}" ] = $ dimension ; return $ carry ; } , array ( ) ) ; return $ this -> isDimensionallyValid ( $ context , $ hypercubeDimensions , $ closed ) ; }
Tests whether a context is valid for a hypercube
@param array|string $context A context ref or an array for a specific context
@param array $hypercube
@param boolean $closed
@return boolean
Tests whether a context is valid for a hypercube