Formulas/FactVariableBinding.php
public function setFallbackValue( $variableSet, $alwaysUseFallbackValue = false )
	{
		if ( is_null( $this->var->fallbackValue ) ) return false;
		if ( ! $alwaysUseFallbackValue && ! is_null( $this->facts ) ) return false;

		$this->facts = null;

		$vars = $variableSet->getParametersAsVars();

		// Evaluate the fallback value.  Should return an XPath2Item
		$fallbackResult = $this->var->evaluateXPath( $variableSet, $this->var->fallbackValue, $vars );
		$this->yieldedFact = $fallbackResult;
		$this->isFallback = true;

		return true;
	}
public function setFallbackValue( $variableSet, $alwaysUseFallbackValue = false )
	{
		if ( is_null( $this->var->fallbackValue ) ) return false;
		if ( ! $alwaysUseFallbackValue && ! is_null( $this->facts ) ) return false;

		$this->facts = null;

		$vars = $variableSet->getParametersAsVars();

		// Evaluate the fallback value.  Should return an XPath2Item
		$fallbackResult = $this->var->evaluateXPath( $variableSet, $this->var->fallbackValue, $vars );
		$this->yieldedFact = $fallbackResult;
		$this->isFallback = true;

		return true;
	}
public function setFallbackValue ( $ variableSet , $ alwaysUseFallbackValue = false ) { if ( is_null ( $ this -> var -> fallbackValue ) ) return false ; if ( ! $ alwaysUseFallbackValue && ! is_null ( $ this -> facts ) ) return false ; $ this -> facts = null ; $ vars = $ variableSet -> getParametersAsVars ( ) ; // Evaluate the fallback value.  Should return an XPath2Item
 $ fallbackResult = $ this -> var -> evaluateXPath ( $ variableSet , $ this -> var -> fallbackValue , $ vars ) ; $ this -> yieldedFact = $ fallbackResult ; $ this -> isFallback = true ; return true ; }
Provides a binding the chance to set a fallback value and return true or return false
Set a fallback value for the related variable if it has a fallback value
@param VariableSet $variableSet
@param bool alwaysUseFallbackValue
@return boolean
Provides a binding the chance to set a fallback value and return true or return false Set a fallback value for the related variable if it has a fallback value