GravityView  1.19.4
The best, easiest way to display Gravity Forms entries on your website.
Public Member Functions | Private Member Functions
GravityView_Migrate Class Reference

Public Member Functions

 __construct ()
 
 get_redux_license_status ($redux_settings=array())
 If the settings transient wasn't set, we need to set the default status for the license. More...
 
 get_redux_settings ()
 Get Redux settings, if they exist. More...
 
 get_search_fields ($view_id)
 
 update_search_on_views ()
 -— Migrate from old search widget to new search widget -— More...
 
 update_settings ()
 

Private Member Functions

 maybe_migrate_approved_meta ()
 Convert approval meta values to enumerated values. More...
 
 maybe_migrate_search_widget ()
 
 migrate_redux_settings ()
 Set app settings from prior Redux settings, if exists. More...
 
 update_approved_meta ()
 Convert "Approved" approval status to "1". More...
 

Detailed Description

Definition at line 15 of file class-gravityview-migrate.php.

Constructor & Destructor Documentation

__construct ( )

Definition at line 17 of file class-gravityview-migrate.php.

Member Function Documentation

get_redux_license_status (   $redux_settings = array())

If the settings transient wasn't set, we need to set the default status for the license.

Since
1.7.4
Parameters
array$redux_settings
Returns
array

Definition at line 130 of file class-gravityview-migrate.php.

References GravityView_Settings\get_instance().

Referenced by migrate_redux_settings().

get_redux_settings ( )

Get Redux settings, if they exist.

Since
1.7.4
Returns
array|bool

Definition at line 154 of file class-gravityview-migrate.php.

Referenced by migrate_redux_settings().

get_search_fields (   $view_id)
maybe_migrate_approved_meta ( )
private

Convert approval meta values to enumerated values.

Since
1.18

Definition at line 36 of file class-gravityview-migrate.php.

References update_approved_meta().

Referenced by update_settings().

maybe_migrate_search_widget ( )
private
Since
1.7.4

Definition at line 77 of file class-gravityview-migrate.php.

References update_search_on_views().

Referenced by update_settings().

migrate_redux_settings ( )
private

Set app settings from prior Redux settings, if exists.

Since
1.7.4
Returns
mixed|void

Definition at line 94 of file class-gravityview-migrate.php.

References GravityView_Settings\get_instance(), get_redux_license_status(), and get_redux_settings().

Referenced by update_settings().

update_approved_meta ( )
private

Convert "Approved" approval status to "1".

Since
1.18
Returns
void

Definition at line 55 of file class-gravityview-migrate.php.

References GravityView_Entry_Approval_Status\APPROVED, and GravityView_Entry_Approval_Status\DISAPPROVED.

Referenced by maybe_migrate_approved_meta().

update_search_on_views ( )

-— Migrate from old search widget to new search widget -—

Definition at line 194 of file class-gravityview-migrate.php.

References get_search_fields(), GRAVITYVIEW_DIR, gravityview_get_directory_widgets(), and gravityview_set_directory_widgets().

Referenced by maybe_migrate_search_widget().

update_settings ( )

The documentation for this class was generated from the following file: