GravityKit\GravityMigrate\Platforms\FluentForms\FluentFormsExporter
Exports Gravity Forms forms to Fluent Forms.
Since: %ver%
Source: src/Platforms/FluentForms/FluentFormsExporter.php:23
Details
- Kind:
class - Namespace:
GravityKit\GravityMigrate\Platforms\FluentForms - Extends:
AbstractExporter
Properties
| Property | Type | Description |
|---|---|---|
$target_adapter | TargetAdapterInterface | null | Target adapter instance. |
Methods
| Method | Description |
|---|---|
analyze_form() | Reports what the requested Gravity Forms form loses on the way to the target provider. |
export_form() | Exports a Gravity Forms form to the target provider. |
get_target_adapter() | Returns target adapter. |
Method Reference
analyze_form()
public function analyze_form( $form_id, array $args=[] )
Reports what the requested Gravity Forms form loses on the way to the target provider.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$form_id | mixed | Gravity Forms form identifier. | |
$args | array | [] | Optional request arguments. |
Returns
array| WP_Error — Field notices and warnings, or WP_Error when the form cannot be read.
Since: %ver%
Source: src/Platforms/FluentForms/FluentFormsExporter.php:58
export_form()
public function export_form( $form_id, array $args=[] )
Exports a Gravity Forms form to the target provider.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$form_id | mixed | Gravity Forms form identifier. | |
$args | array | [] | Optional request arguments. |
Returns
array| WP_Error —target_form_id,edit_urlandissuesfor the created form, or WP_Error describing the failure.
Since: %ver%
Source: src/Platforms/FluentForms/FluentFormsExporter.php:85
get_target_adapter()
public function get_target_adapter(): TargetAdapterInterface
Returns target adapter.
Returns
TargetAdapterInterface
Since: %ver%
Source: src/Platforms/FluentForms/FluentFormsExporter.php:234