protected function _getSearchTypes( array $attributes )
	{
		$types = array();
		$iface = 'MW_Common_Criteria_Attribute_Interface';

		foreach( $attributes as $key => $item )
		{
			if( $item instanceof $iface ) {
				$types[ $item->getCode() ] = $item->getInternalType();
			} else if( isset( $item['code'] ) ) {
				$types[ $item['code'] ] = $item['internaltype'];
			} else {
				throw new MW_Common_Exception( sprintf( 'Invalid attribute at position "%1$d"', $key ) );
			}
		}

		return $types;
	}
protected function _getSearchTypes( array $attributes )
	{
		$types = array();
		$iface = 'MW_Common_Criteria_Attribute_Interface';

		foreach( $attributes as $key => $item )
		{
			if( $item instanceof $iface ) {
				$types[ $item->getCode() ] = $item->getInternalType();
			} else if( isset( $item['code'] ) ) {
				$types[ $item['code'] ] = $item['internaltype'];
			} else {
				throw new MW_Common_Exception( sprintf( 'Invalid attribute at position "%1$d"', $key ) );
			}
		}

		return $types;
	}
protected function _getSearchTypes ( array $ attributes ) { $ types = array ( ) ; $ iface = 'MW_Common_Criteria_Attribute_Interface' ; foreach ( $ attributes as $ key => $ item ) { if ( $ item instanceof $ iface ) { $ types [ $ item -> getCode ( ) ] = $ item -> getInternalType ( ) ; } else if ( isset ( $ item [ 'code' ] ) ) { $ types [ $ item [ 'code' ] ] = $ item [ 'internaltype' ] ; } else { throw new MW_Common_Exception ( sprintf ( 'Invalid attribute at position "%1$d"' , $ key ) ) ; } } return $ types ; }
Returns the attribute types for searching defined by the manager.

@param array $attributes List of search attribute objects implementing
MW_Common_Criteria_Attribute_Interface or associative arrays with 'code'
and 'internaltype' keys
@return array Associative array of attribute code and internal attribute type
Returns the attribute types for searching defined by the manager .