Object_Sync_Sf_Deactivate
Object_Sync_Sf_Deactivate class.
Table of Contents
- $action_group_suffix : string
- Suffix for group name in ActionScheduler
- $file : string
- The main plugin file
- $option_prefix : string
- The plugin's prefix when saving options to the database
- $queue : object
- Object_Sync_Sf_Queue class
- $schedulable_classes : array<string|int, mixed>
- Array of what classes in the plugin can be scheduled to occur with `wp_cron` events
- $slug : string
- The plugin's slug so we can include it when necessary
- $version : string
- Current version of the plugin
- $wpdb : object
- Global object of `$wpdb`, the WordPress database
- __construct() : mixed
- Constructor for deactivate class
- clear_schedule() : mixed
- Clear the scheduled tasks This removes all the scheduled tasks that are included in the plugin's $schedulable_classes array
- delete_log_post_type() : mixed
- Delete the log post type This removes the log post type
- delete_plugin_options() : mixed
- Clear the plugin options
- flush_plugin_cache() : mixed
- Flush the plugin cache
- remove_roles_capabilities() : mixed
- Remove roles and capabilities This removes the configure_salesforce capability from the admin role
- wordpress_salesforce_drop_tables() : mixed
- Drop database tables for Salesforce This removes the tables for fieldmaps (between types of objects) and object maps (between indidual instances of objects)
Properties
$action_group_suffix
Suffix for group name in ActionScheduler
public
string
$action_group_suffix
$file
The main plugin file
public
string
$file
$option_prefix
The plugin's prefix when saving options to the database
public
string
$option_prefix
$queue
Object_Sync_Sf_Queue class
public
object
$queue
$schedulable_classes
Array of what classes in the plugin can be scheduled to occur with `wp_cron` events
public
array<string|int, mixed>
$schedulable_classes
$slug
The plugin's slug so we can include it when necessary
public
string
$slug
$version
Current version of the plugin
public
string
$version
$wpdb
Global object of `$wpdb`, the WordPress database
public
object
$wpdb
Methods
__construct()
Constructor for deactivate class
public
__construct() : mixed
Return values
mixed —clear_schedule()
Clear the scheduled tasks This removes all the scheduled tasks that are included in the plugin's $schedulable_classes array
public
clear_schedule() : mixed
Return values
mixed —delete_log_post_type()
Delete the log post type This removes the log post type
public
delete_log_post_type() : mixed
Return values
mixed —delete_plugin_options()
Clear the plugin options
public
delete_plugin_options() : mixed
Return values
mixed —flush_plugin_cache()
Flush the plugin cache
public
flush_plugin_cache() : mixed
Return values
mixed —remove_roles_capabilities()
Remove roles and capabilities This removes the configure_salesforce capability from the admin role
public
remove_roles_capabilities() : mixed
It also allows other plugins to remove the capability from other roles
Return values
mixed —wordpress_salesforce_drop_tables()
Drop database tables for Salesforce This removes the tables for fieldmaps (between types of objects) and object maps (between indidual instances of objects)
public
wordpress_salesforce_drop_tables() : mixed