src/Fieldset.php
public function getFields()
    {
        $results = [];
        if (!isset($this->data['fields'])
            || empty($this->data['fields'])
        ) {
            return $results;
        }

        $table = $this->data['name'];
        foreach ($this->data['fields'] as $field) {
            $name = $table . '_' . $field['name'];
            $results[$name] = $field;
        }

        return $results;
    }
public function getFields()
    {
        $results = [];
        if (!isset($this->data['fields'])
            || empty($this->data['fields'])
        ) {
            return $results;
        }

        $table = $this->data['name'];
        foreach ($this->data['fields'] as $field) {
            $name = $table . '_' . $field['name'];
            $results[$name] = $field;
        }

        return $results;
    }
public function getFields ( ) { $ results = [ ] ; if ( ! isset ( $ this -> data [ 'fields' ] ) || empty ( $ this -> data [ 'fields' ] ) ) { return $ results ; } $ table = $ this -> data [ 'name' ] ; foreach ( $ this -> data [ 'fields' ] as $ field ) { $ name = $ table . '_' . $ field [ 'name' ] ; $ results [ $ name ] = $ field ; } return $ results ; }
Returns All fields

@return array
Returns All fields