src/Search/Framework/Schema.php
public function toArray()
    {
        $schema_options = array(
            'unique_field' => $this->_uniqueField,
            'fields' => array(),
        );
        foreach ($this->_fields as $id => $field) {
            $schema_options['fields'][$id] = $field->toArray();
        }
        return $schema_options;
    }
public function toArray()
    {
        $schema_options = array(
            'unique_field' => $this->_uniqueField,
            'fields' => array(),
        );
        foreach ($this->_fields as $id => $field) {
            $schema_options['fields'][$id] = $field->toArray();
        }
        return $schema_options;
    }
public function toArray ( ) { $ schema_options = array ( 'unique_field' => $ this -> _uniqueField , 'fields' => array ( ) , ) ; foreach ( $ this -> _fields as $ id => $ field ) { $ schema_options [ 'fields' ] [ $ id ] = $ field -> toArray ( ) ; } return $ schema_options ; }
Returns the array of schema options.

@return
Returns the array of schema options .