Formulas/Formulas.php
public static function ProcessFormulaResource( $taxonomy, $roleUri, $linkbaseHref, $label, $node, $domNode, $log )
 	{
 		$localName = $domNode->localName;

		if ( ! isset( Formulas::$formulaElements[ $localName ] ) )
		{
			return false;
		}

 		if ( ! property_exists( $taxonomy->context, "formulaResources" ) )
		{
			$taxonomy->context->formulaResources = array();
		}

		// Construct a name for the class that will handle the element
		// resource using definitions in the static array $formulaElements
		$filterName = '\\XBRL\\Formulas\\Resources\\' .
			Formulas::$formulaElements[ $localName ]['part'] .
			( isset( Formulas::$formulaElements[ $localName ]['className'] )
				? Formulas::$formulaElements[ $localName ]['className']
				: ucfirst( $localName )
			);

		/**
		 * @var Resource $filter
		 */
		$filter = new $filterName;
		$resource = $filter->process( $localName, $taxonomy, $roleUri, $linkbaseHref, $label, $node, $domNode, $log );

		return $resource;
 	}
public static function ProcessFormulaResource( $taxonomy, $roleUri, $linkbaseHref, $label, $node, $domNode, $log )
 	{
 		$localName = $domNode->localName;

		if ( ! isset( Formulas::$formulaElements[ $localName ] ) )
		{
			return false;
		}

 		if ( ! property_exists( $taxonomy->context, "formulaResources" ) )
		{
			$taxonomy->context->formulaResources = array();
		}

		// Construct a name for the class that will handle the element
		// resource using definitions in the static array $formulaElements
		$filterName = '\\XBRL\\Formulas\\Resources\\' .
			Formulas::$formulaElements[ $localName ]['part'] .
			( isset( Formulas::$formulaElements[ $localName ]['className'] )
				? Formulas::$formulaElements[ $localName ]['className']
				: ucfirst( $localName )
			);

		/**
		 * @var Resource $filter
		 */
		$filter = new $filterName;
		$resource = $filter->process( $localName, $taxonomy, $roleUri, $linkbaseHref, $label, $node, $domNode, $log );

		return $resource;
 	}
public static function ProcessFormulaResource ( $ taxonomy , $ roleUri , $ linkbaseHref , $ label , $ node , $ domNode , $ log ) { $ localName = $ domNode -> localName ; if ( ! isset ( Formulas :: $ formulaElements [ $ localName ] ) ) { return false ; } if ( ! property_exists ( $ taxonomy -> context , "formulaResources" ) ) { $ taxonomy -> context -> formulaResources = array ( ) ; } // Construct a name for the class that will handle the element
 // resource using definitions in the static array $formulaElements
 $ filterName = '\\XBRL\\Formulas\\Resources\\' . Formulas :: $ formulaElements [ $ localName ] [ 'part' ] . ( isset ( Formulas :: $ formulaElements [ $ localName ] [ 'className' ] ) ? Formulas :: $ formulaElements [ $ localName ] [ 'className' ] : ucfirst ( $ localName ) ) ; /**
		 * @var Resource $filter
		 */ $ filter = new $ filterName ; $ resource = $ filter -> process ( $ localName , $ taxonomy , $ roleUri , $ linkbaseHref , $ label , $ node , $ domNode , $ log ) ; return $ resource ; }
Processes a node to extract formula or variable information
@param \XBRL $taxonomy The taxonomy referencing the linkbase being processed
@param string $roleUri
@param string $linkbaseHref
@param string $label
@param \SimpleXMLElement $node A \SimpleXMLElement reference to the node to be processed
@param \DOMNode $domNode A \DOMNode reference to the node to be processed
@param \XBRL_Log $log $log
Processes a node to extract formula or variable information