lib/custom/src/MW/Common/Criteria/Expression/Combine/Lucene.php
public function toString( array $types, array $translations = array(), array $plugins = array() )
	{
		$query = new Zend_Search_Lucene_Search_Query_Boolean();

		foreach( $this->_expressions as $expr )
		{
			if( ( $itemstr = $expr->toString( $types, $translations, $plugins ) ) !== '' ) {
				$query->addSubquery( $itemstr, self::$_operators[$this->_operator] );
			}
		}

		return $query;
	}
public function toString( array $types, array $translations = array(), array $plugins = array() )
	{
		$query = new Zend_Search_Lucene_Search_Query_Boolean();

		foreach( $this->_expressions as $expr )
		{
			if( ( $itemstr = $expr->toString( $types, $translations, $plugins ) ) !== '' ) {
				$query->addSubquery( $itemstr, self::$_operators[$this->_operator] );
			}
		}

		return $query;
	}
public function toString ( array $ types , array $ translations = array ( ) , array $ plugins = array ( ) ) { $ query = new Zend_Search_Lucene_Search_Query_Boolean ( ) ; foreach ( $ this -> _expressions as $ expr ) { if ( ( $ itemstr = $ expr -> toString ( $ types , $ translations , $ plugins ) ) !== '' ) { $ query -> addSubquery ( $ itemstr , self :: $ _operators [ $ this -> _operator ] ) ; } } return $ query ; }
Generates a Lucene object from the expression objects.

@param array $names Associative list of variable or column names as keys and their corresponding types
@param array $translations Associative list of variable or column names that should be translated
@param array $plugins Associative list of item names and plugins implementing MW_Common_Criteria_Plugin_Interface
@return Zend_Search_Lucene_Search_Query_MultiTerm Combined search objects
Generates a Lucene object from the expression objects .