Skip to main content

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​

PropertyTypeDescription
$section_field_maparray<int,int[]>
$group_field_maparray<int,int[]>
$choice_row_valuesarray<int,array<string, string>>
$composite_section_labelstringThe composite label a section supplied, while its fields are being read.
$logic_field_labelsarray<int,string>
$datetime_kindsarray<string,string|null>
$field_id_maparray<int,int>
$field_label_maparray<int,string>
$merge_tag_messagesstring[]What could not be carried across while translating this form's wording.

Methods​

No documented public methods found.