protected function getClassesForIndex(SolrIndex $index, $filterClasses = null)
    {
        // Get base classes
        $classes = $index->getClasses();
        if (!$filterClasses) {
            return $classes;
        }

        // Apply filter
        if (!is_array($filterClasses)) {
            $filterClasses = explode(',', $filterClasses);
        }
        return array_intersect_key($classes, array_combine($filterClasses, $filterClasses));
    }
protected function getClassesForIndex(SolrIndex $index, $filterClasses = null)
    {
        // Get base classes
        $classes = $index->getClasses();
        if (!$filterClasses) {
            return $classes;
        }

        // Apply filter
        if (!is_array($filterClasses)) {
            $filterClasses = explode(',', $filterClasses);
        }
        return array_intersect_key($classes, array_combine($filterClasses, $filterClasses));
    }
protected function getClassesForIndex ( SolrIndex $ index , $ filterClasses = null ) { // Get base classes $ classes = $ index -> getClasses ( ) ; if ( ! $ filterClasses ) { return $ classes ; } // Apply filter if ( ! is_array ( $ filterClasses ) ) { $ filterClasses = explode ( ',' , $ filterClasses ) ; } return array_intersect_key ( $ classes , array_combine ( $ filterClasses , $ filterClasses ) ) ; }
Get valid classes and options for an index with an optional filter

@param SolrIndex $index
@param string|array $filterClasses Optional class or classes to limit to
@return array List of classes, where the key is the classname and value is list of options
Get valid classes and options for an index with an optional filter