XBRL-DFR.php
private function findConceptInFormula( &$formulasForELR, $taxonomy, $element )
	{
		if ( ! $formulasForELR ) return false;

		$conceptClark = "{" . $taxonomy->getNamespace() . "}" . $element['name'];

		foreach ( $formulasForELR as $variableSet )
		{
			foreach ( $variableSet->variablesByQName as $qname => $variable )
			{
				if ( ! $variable instanceof FactVariable ) continue;
				foreach ( $variable->filters as $x => $filter )
				{
					if ( ! $filter instanceof ConceptName ) continue;
					foreach ( $filter->qnames as $clark )
					{
						if ( $clark == $conceptClark ) return true;;
					}
				}
			}
		}

		return false;
	}
private function findConceptInFormula( &$formulasForELR, $taxonomy, $element )
	{
		if ( ! $formulasForELR ) return false;

		$conceptClark = "{" . $taxonomy->getNamespace() . "}" . $element['name'];

		foreach ( $formulasForELR as $variableSet )
		{
			foreach ( $variableSet->variablesByQName as $qname => $variable )
			{
				if ( ! $variable instanceof FactVariable ) continue;
				foreach ( $variable->filters as $x => $filter )
				{
					if ( ! $filter instanceof ConceptName ) continue;
					foreach ( $filter->qnames as $clark )
					{
						if ( $clark == $conceptClark ) return true;;
					}
				}
			}
		}

		return false;
	}
private function findConceptInFormula ( & $ formulasForELR , $ taxonomy , $ element ) { if ( ! $ formulasForELR ) return false ; $ conceptClark = "{" . $ taxonomy -> getNamespace ( ) . "}" . $ element [ 'name' ] ; foreach ( $ formulasForELR as $ variableSet ) { foreach ( $ variableSet -> variablesByQName as $ qname => $ variable ) { if ( ! $ variable instanceof FactVariable ) continue ; foreach ( $ variable -> filters as $ x => $ filter ) { if ( ! $ filter instanceof ConceptName ) continue ; foreach ( $ filter -> qnames as $ clark ) { if ( $ clark == $ conceptClark ) return true ; ; } } } } return false ; }
Look for a concept in each formula's filter
@param array $formulasForELR (ref) Array of formulas defined for the ELR
@param XBRL_DFR $taxonomy
@param array $element
@return boolean
Look for a concept in each formula s filter