$schedulable_classes
$schedulable_classes : array
Start up the Object Sync for Salesforce plugin; initialize parameters and classes
get_instance() : object
Load the static $instance property that holds the instance of the class.
This instance makes the class reusable by other plugins
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 1293The sfapi object if it is authenticated (empty, otherwise)
salesforce_get_api() : array
Public helper to load the Salesforce API and see if it is authenticated.
This is public so other plugins can access the same SF API instance
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 1293Whether Salesforce is authenticated (boolean) The sfapi object if it is authenticated (empty, otherwise)
plugin_action_links(array $links, string $file) : array
Display a Settings link on the main Plugins page
| array | $links | |
| string | $file |
$links These are the links that go with this plugin's entry
admin_scripts_and_styles() : void
Admin styles. Load the CSS and JavaScript for the plugin's settings
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 1293textdomain() : void
Load textdomain
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__construct() : void
Constructor that sets up the parameters to pass to all the other classes, and the methods that call the other classes
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 1293load(object $wpdb, string $version, string $slug, string $option_prefix)
Load immediately required things
| object | $wpdb | |
| string | $version | |
| string | $slug | |
| string | $option_prefix |
queue(object $wpdb, string $version, string $slug, string $option_prefix, array $schedulable_classes) : \Object_Sync_Sf_Queue
Get queue instance.
| object | $wpdb | |
| string | $version | |
| string | $slug | |
| string | $option_prefix | |
| array | $schedulable_classes |
logging(object $wpdb, string $version, string $slug, string $option_prefix) : object
Log events
| object | $wpdb | |
| string | $version | |
| string | $slug | |
| string | $option_prefix |
Instance of Object_Sync_Sf_Logging
mappings(object $wpdb, string $version, string $slug, string $option_prefix, object $logging) : object
Map the Salesforce and WordPress objects and fields to each other
| object | $wpdb | |
| string | $version | |
| string | $slug | |
| string | $option_prefix | |
| object | $logging |
Instance of Object_Sync_Sf_Mapping
wordpress(object $wpdb, string $version, string $slug, string $option_prefix, object $mappings, object $logging) : object
Private helper to load methods for manipulating core WordPress data across the plugin
| object | $wpdb | |
| string | $version | |
| string | $slug | |
| string | $option_prefix | |
| object | $mappings | |
| object | $logging |
Instance of Object_Sync_Sf_WordPress
activate(object $wpdb, string $version, string $slug, string $option_prefix, array $schedulable_classes, object $queue) : object
What to do upon activation of the plugin
| object | $wpdb | |
| string | $version | |
| string | $slug | |
| string | $option_prefix | |
| array | $schedulable_classes | |
| object | $queue |
Instance of Object_Sync_Sf_Activate
deactivate(object $wpdb, string $version, string $slug, string $option_prefix, array $schedulable_classes, object $queue) : object
What to do upon deactivation of the plugin
| object | $wpdb | |
| string | $version | |
| string | $slug | |
| string | $option_prefix | |
| array | $schedulable_classes | |
| object | $queue |
Instance of Object_Sync_Sf_Deactivate
push(object $wpdb, string $version, array $login_credentials, string $slug, $option_prefix, object $wordpress, object $salesforce, object $mappings, object $logging, array $schedulable_classes, $queue) : object
Methods to push data from WordPress to Salesforce
| object | $wpdb | |
| string | $version | |
| array | $login_credentials | |
| string | $slug | |
| $option_prefix | ||
| object | $wordpress | |
| object | $salesforce | |
| object | $mappings | |
| object | $logging | |
| array | $schedulable_classes | |
| $queue |
Instance of Object_Sync_Sf_Salesforce_Push
pull(object $wpdb, string $version, array $login_credentials, string $slug, string $option_prefix, object $wordpress, object $salesforce, object $mappings, object $logging, array $schedulable_classes, $queue) : object
Methods to pull data from Salesforce to WordPress
| object | $wpdb | |
| string | $version | |
| array | $login_credentials | |
| string | $slug | |
| string | $option_prefix | |
| object | $wordpress | |
| object | $salesforce | |
| object | $mappings | |
| object | $logging | |
| array | $schedulable_classes | |
| $queue |
Instance of Object_Sync_Sf_Salesforce_Pull
rest(object $wpdb, string $version, string $slug, string $option_prefix, object $wordpress, object $salesforce, object $mappings, object $push, object $pull) : object
Load the rest class.
This handles REST API methods
| object | $wpdb | |
| string | $version | |
| string | $slug | |
| string | $option_prefix | |
| object | $wordpress | |
| object | $salesforce | |
| object | $mappings | |
| object | $push | |
| object | $pull |
$admin Instance of Object_Sync_Sf_Rest
load_admin(object $wpdb, string $version, array $login_credentials, string $slug, string $option_prefix, object $wordpress, object $salesforce, object $mappings, object $push, object $pull, object $logging, array $schedulable_classes, object $queue) : object
Load the admin class.
This also creates admin menu, unless the plugin that calls this library has indicated that it has its own menu
| object | $wpdb | |
| string | $version | |
| array | $login_credentials | |
| string | $slug | |
| string | $option_prefix | |
| object | $wordpress | |
| object | $salesforce | |
| object | $mappings | |
| object | $push | |
| object | $pull | |
| object | $logging | |
| array | $schedulable_classes | |
| object | $queue |
$admin Instance of Object_Sync_Sf_Admin
get_login_credentials() : array
Get the pre-login Salesforce credentials.
These depend on the plugin's settings or constants defined in wp-config.php.
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$login_credentials Includes all settings necessary to log into the Salesforce API. Replaces settings options with wp-config.php values if they exist.