Formulas/Resources/Variables/VariableSet.php
public function getVariableDetails( $variable, $includePrefix = true )
	{
		$result = array( 'value' => $this->valueToString( $variable, $includePrefix ) );
		if ( $variable instanceof DOMXPathNavigator )
		{
			$result['concept'] = $variable->getName();
			$result['context'] = FactValues::getContextRef( $variable );
			$result['unit'] = FactValues::getUnitRef( $variable );

		}
		return $result;
	}
public function getVariableDetails( $variable, $includePrefix = true )
	{
		$result = array( 'value' => $this->valueToString( $variable, $includePrefix ) );
		if ( $variable instanceof DOMXPathNavigator )
		{
			$result['concept'] = $variable->getName();
			$result['context'] = FactValues::getContextRef( $variable );
			$result['unit'] = FactValues::getUnitRef( $variable );

		}
		return $result;
	}
public function getVariableDetails ( $ variable , $ includePrefix = true ) { $ result = array ( 'value' => $ this -> valueToString ( $ variable , $ includePrefix ) ) ; if ( $ variable instanceof DOMXPathNavigator ) { $ result [ 'concept' ] = $ variable -> getName ( ) ; $ result [ 'context' ] = FactValues :: getContextRef ( $ variable ) ; $ result [ 'unit' ] = FactValues :: getUnitRef ( $ variable ) ; } return $ result ; }
Returns a set of details for a fact
@param DOMXPathNavigator|XPathItem $fact
@param bool $includePrefix (default: true) When true a prefix indicating the type of value will be included
@return array
Returns a set of details for a fact