Class GF_Upgrade
public static
|
|
public
boolean
|
#
maybe_display_wizard( )
Determines if the installation wizard or upgrade wizard should be displayed and renders the appropriate screen. |
public
|
#
maybe_upgrade( )
Decides to execute a fresh install of Gravity Forms, upgrade an existing installation, or do nothing if versions are up-to-date. |
public
mixed
|
|
public
boolean
|
|
public
|
|
public
boolean
|
|
public
|
|
protected
|
#
pre_upgrade_schema( $from_db_version )
Performs upgrade tasks needed to be done after the DB schema has been upgraded. |
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
#
post_upgrade_schema( string $from_db_version, boolean $force_upgrade )
Performs upgrade tasks needed to be done after the DB schema has been upgraded. |
public
false
|
#
post_background_upgrade( )
Performs any final tasks after the background upgrade tasks have finished. |
public
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
protected
|
#
maybe_populate_keys( )
Imports Gravity Forms license keys, and reCAPTCHA keys from global variables. |
protected
|
#
maybe_import_forms( )
Auto imports forms when Gravity Forms is installed based on GF_IMPORT_FILE constant. |
public
|
|
public
string|null
|
#
get_wp_option( string $option_name )
Gets the value of an option directly from the wp_options table. This is useful for double checking the value of autoload options returned by get_option(). |
protected
|
|
public
array
|
|
public
|
|
public
boolean|WP_Error
|
#
validate_upgrade( null $do_upgrade, string $hook_extra )
Validates that Gravity Forms is doing the database upgrade, and has permissions to do so. |
public
boolean
|
#
has_database_permission( string & $error )
Checks if Gravity Forms has permissions to make changes to the database. |
public
array|null
|
|
public
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
#
requires_install_wizard( )
Returns true if the install wizard should be displayed. False otherwise. |
public
boolean
|
#
requires_upgrade_wizard( )
Returns true if the upgrade wizard should be displayed. False otherwise. |
public
|
|
public
|
#
maybe_clear_previous_upgrade( )
Checks whether the previous upgrade can be cleared and then clears it. |
public
|
|
public
boolean
|
|
public
array|null
|
|
public
boolean
|
|
public
boolean
|
|
public
string|null
|
|
public
|
|
public
array
|
#
get_min_addon_requirements( )
Returns an array of add-ons with the minimum version required for this version of Gravity Forms. |