Formulas/Resources/Filters/Boolean.php
public function toQuery( $variableSet, $factVariableBinding )
	{
		$result = array();

		if ( count( $this->filters ) == 0 )
		{
			return array( "false()" );
		}

		foreach ( $this->filters as $filter )
		{
			$filter->inBoolean = true;

			$query = $filter->toQuery( $variableSet, $factVariableBinding );
			if ( $filter->complement )
			{
				$query = "not($query)";
			}
			$result[] = $query;
		}

		return $result;
	}
public function toQuery( $variableSet, $factVariableBinding )
	{
		$result = array();

		if ( count( $this->filters ) == 0 )
		{
			return array( "false()" );
		}

		foreach ( $this->filters as $filter )
		{
			$filter->inBoolean = true;

			$query = $filter->toQuery( $variableSet, $factVariableBinding );
			if ( $filter->complement )
			{
				$query = "not($query)";
			}
			$result[] = $query;
		}

		return $result;
	}
public function toQuery ( $ variableSet , $ factVariableBinding ) { $ result = array ( ) ; if ( count ( $ this -> filters ) == 0 ) { return array ( "false()" ) ; } foreach ( $ this -> filters as $ filter ) { $ filter -> inBoolean = true ; $ query = $ filter -> toQuery ( $ variableSet , $ factVariableBinding ) ; if ( $ filter -> complement ) { $ query = "not($query)" ; } $ result [ ] = $ query ; } return $ result ; }
Converts the filters to a collection of XPath queries

@param VariableSet $variableSet
@param FactVariableBinding $factVariableBinding
@return string
Converts the filters to a collection of XPath queries