public function standarize_solr_obj(\SolrObject $obj) {
        $properties = $obj->getPropertyNames();

        $docdata = array();
        foreach($properties as $name) {
            // http://php.net/manual/en/solrobject.getpropertynames.php#98018.
            $name = trim($name);
            $docdata[$name] = $obj->offsetGet($name);
        }
        return $docdata;
    }
public function standarize_solr_obj(\SolrObject $obj) {
        $properties = $obj->getPropertyNames();

        $docdata = array();
        foreach($properties as $name) {
            // http://php.net/manual/en/solrobject.getpropertynames.php#98018.
            $name = trim($name);
            $docdata[$name] = $obj->offsetGet($name);
        }
        return $docdata;
    }
public function standarize_solr_obj ( \ SolrObject $ obj ) { $ properties = $ obj -> getPropertyNames ( ) ; $ docdata = array ( ) ; foreach ( $ properties as $ name ) { // http://php.net/manual/en/solrobject.getpropertynames.php#98018. $ name = trim ( $ name ) ; $ docdata [ $ name ] = $ obj -> offsetGet ( $ name ) ; } return $ docdata ; }
Returns a standard php array from a \SolrObject instance.

@param \SolrObject $obj
@return array The returned document as an array.
Returns a standard php array from a \ SolrObject instance .