public function getFieldList($options = [])
    {
        $_options = [
            'normalize' => true,
        ];

        $options = Hash::merge($_options, $options);

        $list = [];

        foreach ($this->config() as $key => $value) {
            if (!in_array($key, $this->_presetConfigKeys) || is_integer($key)) {
                if (is_integer($key)) {
                    $field = $value;
                } else {
                    $field = $key;
                }

                if ($options['normalize']) {
                    $fieldConfig = $this->_normalizeField($field);
                } else {
                    $fieldConfig = (($this->config($field) == null) ? [] : $this->config($field));
                }

                $list[$field] = $fieldConfig;
            }
        }
        return $list;
    }
public function getFieldList($options = [])
    {
        $_options = [
            'normalize' => true,
        ];

        $options = Hash::merge($_options, $options);

        $list = [];

        foreach ($this->config() as $key => $value) {
            if (!in_array($key, $this->_presetConfigKeys) || is_integer($key)) {
                if (is_integer($key)) {
                    $field = $value;
                } else {
                    $field = $key;
                }

                if ($options['normalize']) {
                    $fieldConfig = $this->_normalizeField($field);
                } else {
                    $fieldConfig = (($this->config($field) == null) ? [] : $this->config($field));
                }

                $list[$field] = $fieldConfig;
            }
        }
        return $list;
    }
public function getFieldList ( $ options = [ ] ) { $ _options = [ 'normalize' => true , ] ; $ options = Hash :: merge ( $ _options , $ options ) ; $ list = [ ] ; foreach ( $ this -> config ( ) as $ key => $ value ) { if ( ! in_array ( $ key , $ this -> _presetConfigKeys ) || is_integer ( $ key ) ) { if ( is_integer ( $ key ) ) { $ field = $ value ; } else { $ field = $ key ; } if ( $ options [ 'normalize' ] ) { $ fieldConfig = $ this -> _normalizeField ( $ field ) ; } else { $ fieldConfig = ( ( $ this -> config ( $ field ) == null ) ? [ ] : $ this -> config ( $ field ) ) ; } $ list [ $ field ] = $ fieldConfig ; } } return $ list ; }
Returns a list of all registered fields to upload

### Options
- normalize      boolean if each field should be normalized. Default set to true

@param array $options Options.
@return array
Returns a list of all registered fields to upload