private function _getJoins( array $attributes, $prefix )
	{
		$iface = 'MW_Common_Criteria_Attribute_Interface';
		$sep = $this->_getKeySeparator();
		$name = $prefix . $sep . 'id';

		if( isset( $attributes[$name] ) && $attributes[$name] instanceof $iface ) {
			return $attributes[$name]->getInternalDeps();
		}
		else if( isset( $attributes['id'] ) && $attributes['id'] instanceof $iface ) {
			return $attributes['id']->getInternalDeps();
		}

		return array();
	}
private function _getJoins( array $attributes, $prefix )
	{
		$iface = 'MW_Common_Criteria_Attribute_Interface';
		$sep = $this->_getKeySeparator();
		$name = $prefix . $sep . 'id';

		if( isset( $attributes[$name] ) && $attributes[$name] instanceof $iface ) {
			return $attributes[$name]->getInternalDeps();
		}
		else if( isset( $attributes['id'] ) && $attributes['id'] instanceof $iface ) {
			return $attributes['id']->getInternalDeps();
		}

		return array();
	}
private function _getJoins ( array $ attributes , $ prefix ) { $ iface = 'MW_Common_Criteria_Attribute_Interface' ; $ sep = $ this -> _getKeySeparator ( ) ; $ name = $ prefix . $ sep . 'id' ; if ( isset ( $ attributes [ $ name ] ) && $ attributes [ $ name ] instanceof $ iface ) { return $ attributes [ $ name ] -> getInternalDeps ( ) ; } else if ( isset ( $ attributes [ 'id' ] ) && $ attributes [ 'id' ] instanceof $ iface ) { return $ attributes [ 'id' ] -> getInternalDeps ( ) ; } return array ( ) ; }
Returns the SQL strings for joining dependent tables.

@param array $attributes List of search attributes
@param string $prefix Search key prefix
@return array List of JOIN SQL strings
Returns the SQL strings for joining dependent tables .