classes/ezfsolrdocumentfieldbase.php
public static function getFieldNameList( eZContentClassAttribute $classAttribute, $exclusiveTypeFilter = array() )
    {
        $eZFindIni = eZINI::instance( 'ezfind.ini' );
        
        $datatypeString = $classAttribute->attribute( 'data_type_string' );
        $customMapList = $eZFindIni->variable( 'SolrFieldMapSettings', 'CustomMap' );

        if ( array_key_exists( $datatypeString, $customMapList ) )
        {
            if ( self::isStaticDelegationAllowed( $customMapList[$datatypeString], 'getFieldNameList' ) and
                 ( $returnValue = call_user_func_array( array( $customMapList[$datatypeString], 'getFieldNameList' ),
                                                        array( $classAttribute, $exclusiveTypeFilter ) ) )
               )
            {
                return $returnValue;
            }
        }

        // fallback behaviour :
        if ( empty( $exclusiveTypeFilter ) or !in_array( self::getClassAttributeType( $classAttribute ), $exclusiveTypeFilter ) )
            return array( self::getFieldName( $classAttribute ) );
        else
            return array();
    }
public static function getFieldNameList( eZContentClassAttribute $classAttribute, $exclusiveTypeFilter = array() )
    {
        $eZFindIni = eZINI::instance( 'ezfind.ini' );
        
        $datatypeString = $classAttribute->attribute( 'data_type_string' );
        $customMapList = $eZFindIni->variable( 'SolrFieldMapSettings', 'CustomMap' );

        if ( array_key_exists( $datatypeString, $customMapList ) )
        {
            if ( self::isStaticDelegationAllowed( $customMapList[$datatypeString], 'getFieldNameList' ) and
                 ( $returnValue = call_user_func_array( array( $customMapList[$datatypeString], 'getFieldNameList' ),
                                                        array( $classAttribute, $exclusiveTypeFilter ) ) )
               )
            {
                return $returnValue;
            }
        }

        // fallback behaviour :
        if ( empty( $exclusiveTypeFilter ) or !in_array( self::getClassAttributeType( $classAttribute ), $exclusiveTypeFilter ) )
            return array( self::getFieldName( $classAttribute ) );
        else
            return array();
    }
public static function getFieldNameList ( eZContentClassAttribute $ classAttribute , $ exclusiveTypeFilter = array ( ) ) { $ eZFindIni = eZINI :: instance ( 'ezfind.ini' ) ; $ datatypeString = $ classAttribute -> attribute ( 'data_type_string' ) ; $ customMapList = $ eZFindIni -> variable ( 'SolrFieldMapSettings' , 'CustomMap' ) ; if ( array_key_exists ( $ datatypeString , $ customMapList ) ) { if ( self :: isStaticDelegationAllowed ( $ customMapList [ $ datatypeString ] , 'getFieldNameList' ) and ( $ returnValue = call_user_func_array ( array ( $ customMapList [ $ datatypeString ] , 'getFieldNameList' ) , array ( $ classAttribute , $ exclusiveTypeFilter ) ) ) ) { return $ returnValue ; } } // fallback behaviour : if ( empty ( $ exclusiveTypeFilter ) or ! in_array ( self :: getClassAttributeType ( $ classAttribute ) , $ exclusiveTypeFilter ) ) return array ( self :: getFieldName ( $ classAttribute ) ) ; else return array ( ) ; }
Gets the list of solr fields for the given content class attribute. Delegates
the action to the datatype-specific handler, if any. If none, the datatype has one
field only, hence the delegation to the local getFieldName.

@param eZContentClassAttribute $classAttribute
@param array $exclusiveTypeFilter Array of types ( strings ) which should be excluded
from the result.

@return array Array of applicable solr field names
@see ezfSolrDocumentFieldBase::getFieldName()
Gets the list of solr fields for the given content class attribute . Delegates the action to the datatype - specific handler if any . If none the datatype has one field only hence the delegation to the local getFieldName .