public function getFields($hideHidden = false)
    {
        $entry = [];

        if (!$this->form) {
            return [];
        }

        foreach ($this->form->getFields() as $field) {
            if ($hideHidden && in_array($field->getType(), self::$HIDDEN_TYPES)) {
                continue;
            }

            $entry[$field->getKey()] = $this->getField($field->getKey());
        }

        return $entry;
    }
public function getFields($hideHidden = false)
    {
        $entry = [];

        if (!$this->form) {
            return [];
        }

        foreach ($this->form->getFields() as $field) {
            if ($hideHidden && in_array($field->getType(), self::$HIDDEN_TYPES)) {
                continue;
            }

            $entry[$field->getKey()] = $this->getField($field->getKey());
        }

        return $entry;
    }
public function getFields ( $ hideHidden = false ) { $ entry = [ ] ; if ( ! $ this -> form ) { return [ ] ; } foreach ( $ this -> form -> getFields ( ) as $ field ) { if ( $ hideHidden && in_array ( $ field -> getType ( ) , self :: $ HIDDEN_TYPES ) ) { continue ; } $ entry [ $ field -> getKey ( ) ] = $ this -> getField ( $ field -> getKey ( ) ) ; } return $ entry ; }
Get fields.

@param bool $hideHidden

@return array
Get fields .