\Object_Sync_Sf_Deactivate

What to do when the plugin is deactivated

Summary

Methods
Properties
Constants
__construct()
wordpress_salesforce_drop_tables()
clear_schedule()
delete_log_post_type()
remove_roles_capabilities()
flush_plugin_cache()
delete_plugin_options()
No public properties found
No constants found
No protected methods found
$wpdb
$version
$slug
$schedulable_classes
$option_prefix
$queue
N/A
No private methods found
No private properties found
N/A

Properties

$wpdb

$wpdb : 

Type

$version

$version : 

Type

$slug

$slug : 

Type

$schedulable_classes

$schedulable_classes : 

Type

$option_prefix

$option_prefix : 

Type

$queue

$queue : 

Type

Methods

__construct()

__construct(object  $wpdb, string  $version, string  $slug, array  $schedulable_classes, string  $option_prefix = '', object  $queue = '') 

Constructor which sets up deactivate hooks

Parameters

object $wpdb
string $version
string $slug
array $schedulable_classes
string $option_prefix
object $queue
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

wordpress_salesforce_drop_tables()

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)

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

clear_schedule()

clear_schedule() 

Clear the scheduled tasks This removes all the scheduled tasks that are included in the plugin's $schedulable_classes array

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

delete_log_post_type()

delete_log_post_type() 

Delete the log post type This removes the log post type

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

remove_roles_capabilities()

remove_roles_capabilities() 

Remove roles and capabilities This removes the configure_salesforce capability from the admin role

It also allows other plugins to remove the capability from other roles

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

flush_plugin_cache()

flush_plugin_cache() 

Flush the plugin cache

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

delete_plugin_options()

delete_plugin_options() 

Clear the plugin options

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293