GravityView  2.17
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_settings ()
 Get Redux settings, if they exist. More...
 
 get_search_fields ( $view_id)
 
 redirect_old_admin_pages ()
 Redirects old GravityView admin pages to the new ones. More...
 
 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()

__construct ( )

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

Member Function Documentation

◆ get_redux_settings()

get_redux_settings ( )

Get Redux settings, if they exist.

Since
1.7.4
Returns
array|bool

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

Referenced by migrate_redux_settings().

◆ get_search_fields()

get_search_fields (   $view_id)

◆ maybe_migrate_approved_meta()

maybe_migrate_approved_meta ( )
private

Convert approval meta values to enumerated values.

Since
1.18

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

References update_approved_meta().

Referenced by update_settings().

◆ maybe_migrate_search_widget()

maybe_migrate_search_widget ( )
private
Since
1.7.4

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

References update_search_on_views().

Referenced by update_settings().

◆ migrate_redux_settings()

migrate_redux_settings ( )
private

Set app settings from prior Redux settings, if exists.

Since
1.7.4
Returns
mixed|void

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

References get_redux_settings(), and gravityview().

Referenced by update_settings().

◆ redirect_old_admin_pages()

redirect_old_admin_pages ( )

Redirects old GravityView admin pages to the new ones.

Since
2.16
Returns
void

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

◆ update_approved_meta()

update_approved_meta ( )
private

Convert "Approved" approval status to "1".

Since
1.18
Returns
void

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

References GravityView_Entry_Approval_Status\APPROVED, GravityView_Entry_Approval_Status\DISAPPROVED, and gravityview().

Referenced by maybe_migrate_approved_meta().

◆ update_search_on_views()

update_search_on_views ( )

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

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

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

Referenced by maybe_migrate_search_widget().

◆ update_settings()

update_settings ( )

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