GravityKit\GravityMigrate\Platforms\WSForm\WSFormSourceAdapter
Builds Gravity Forms payloads from WS Form data.
WS Form stores a form three levels deep: a form holds groups, a group holds sections, and a section holds fields. A group is a tab, which is what Gravity Forms calls a page, so the nesting is not decoration; flattening it loses the form's navigation.
Every type and meta key below was read from WS Form PRO itself, through
WS_Form_Config::get_field_types_flat() and WS_Form_Config::get_meta_keys(). The name a
setting is registered under is not always the name its value is stored under: a meta config
carrying a key entry is rewritten to that alias by WS_Form_Core::build_meta_data()
(class-ws-form-core.php:344-347), which is why a Legal field's copy, a Message field's text
and a Note's text all store as text_editor, and why every default_value_* variant stores
as default_value. Reading a registered name that is only an alias returns an empty string
rather than an error.
Since: %ver%
Source: src/Platforms/WSForm/WSFormSourceAdapter.php:46
Details
- Kind:
class - Namespace:
GravityKit\GravityMigrate\Platforms\WSForm - Extends:
AbstractSourceAdapter
Properties
| Property | Type | Description |
|---|---|---|
$section_field_map | array<int, | int[]> |
$group_field_map | array<int, | int[]> |
$choice_row_values | array<int, | array<string, string>> |
$composite_section_label | string | The composite label a section supplied, while its fields are being read. |
$logic_field_labels | array<int, | string> |
$datetime_kinds | array<string, | string|null> |
$field_id_map | array<int, | int> |
$field_label_map | array<int, | string> |
$merge_tag_messages | string[] | What could not be carried across while translating this form's wording. |
Methods
No documented public methods found.