Skip to main content

GravityKit\GravityMigrate\Platforms\NinjaForms\NinjaFormsExporter

Exports Gravity Forms forms to Ninja Forms.

Since: %ver%

Source: src/Platforms/NinjaForms/NinjaFormsExporter.php:21

Details

  • Kind: class
  • Namespace: GravityKit\GravityMigrate\Platforms\NinjaForms
  • Extends: AbstractExporter

Properties

PropertyTypeDescription
$exported_ninja_form_idsint[]Ninja form ids this process has already created.
$target_adapterTargetAdapterInterface | nullTarget adapter instance.

Methods

MethodDescription
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

NameTypeDefaultDescription
$form_idmixedGravity Forms form identifier.
$argsarray[]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/NinjaForms/NinjaFormsExporter.php:59

export_form()

public function export_form( $form_id, array $args=[] )

Exports a Gravity Forms form to the target provider.

Parameters

NameTypeDefaultDescription
$form_idmixedGravity Forms form identifier.
$argsarray[]Optional request arguments.

Returns

  • array | WP_Errortarget_form_id, edit_url and issues for the created form, or WP_Error describing the failure.

Since: %ver%

Source: src/Platforms/NinjaForms/NinjaFormsExporter.php:86

get_target_adapter()

public function get_target_adapter(): TargetAdapterInterface

Returns target adapter.

Returns

  • TargetAdapterInterface

Since: %ver%

Source: src/Platforms/NinjaForms/NinjaFormsExporter.php:155