Formulas/Resources/Formulas/Formula.php
private function getContextForSource( $source, $evaluationResult, $aspect, $log, &$contextRef = null )
	{
		$sourceFact = $this->getSourceFact( $source, $evaluationResult, $aspect, $log );
		if ( ! $sourceFact ) return array();

		// Get the context ref from the source
		$contextRef = FactValues::getContextRef( $sourceFact );

		$context = $this->xbrlInstance->getContext( $contextRef );

		return $context;
	}
private function getContextForSource( $source, $evaluationResult, $aspect, $log, &$contextRef = null )
	{
		$sourceFact = $this->getSourceFact( $source, $evaluationResult, $aspect, $log );
		if ( ! $sourceFact ) return array();

		// Get the context ref from the source
		$contextRef = FactValues::getContextRef( $sourceFact );

		$context = $this->xbrlInstance->getContext( $contextRef );

		return $context;
	}
private function getContextForSource ( $ source , $ evaluationResult , $ aspect , $ log , & $ contextRef = null ) { $ sourceFact = $ this -> getSourceFact ( $ source , $ evaluationResult , $ aspect , $ log ) ; if ( ! $ sourceFact ) return array ( ) ; // Get the context ref from the source
 $ contextRef = FactValues :: getContextRef ( $ sourceFact ) ; $ context = $ this -> xbrlInstance -> getContext ( $ contextRef ) ; return $ context ; }
Return the context for a source.  if there is a problem accessing the source fact then an exception will be thrown.
@param string $source The source variable to use
@param array $evaluationResult
@param string $aspect The aspect identifier to use
@param \XBRL_Log $log
@param string $contextRef (reference)
@return array the resulting context
Return the context for a source . if there is a problem accessing the source fact then an exception will be thrown .