search/plugins/ezsolr/ezsolr.php
private function extractLanguageCodesFromSolrResult( $solrResults )
    {
        $languages = array();

        if ( isset( $solrResults['response']['docs'] ) )
        {
            foreach ( $solrResults['response']['docs'] as $doc )
            {
                if ( isset( $doc['meta_language_code_ms'] ) )
                {
                    $languages[] = $doc['meta_language_code_ms'];
                }
            }
        }

        return $languages;
    }
private function extractLanguageCodesFromSolrResult( $solrResults )
    {
        $languages = array();

        if ( isset( $solrResults['response']['docs'] ) )
        {
            foreach ( $solrResults['response']['docs'] as $doc )
            {
                if ( isset( $doc['meta_language_code_ms'] ) )
                {
                    $languages[] = $doc['meta_language_code_ms'];
                }
            }
        }

        return $languages;
    }
private function extractLanguageCodesFromSolrResult ( $ solrResults ) { $ languages = array ( ) ; if ( isset ( $ solrResults [ 'response' ] [ 'docs' ] ) ) { foreach ( $ solrResults [ 'response' ] [ 'docs' ] as $ doc ) { if ( isset ( $ doc [ 'meta_language_code_ms' ] ) ) { $ languages [ ] = $ doc [ 'meta_language_code_ms' ] ; } } } return $ languages ; }
Extracts the list of 'meta_language_code_ms' from a solrResult array.

@param $solrResults

@return array of languages (as strings)
Extracts the list of meta_language_code_ms from a solrResult array .