Properties

$default_authorize_url_path

$default_authorize_url_path : string

Type

string — Default path for the Salesforce authorize URL

$default_token_url_path

$default_token_url_path : string

Type

string — Default path for the Salesforce token URL

$default_api_version

$default_api_version : string

Type

string — What version of the Salesforce API should be the default on the settings screen. Users can edit this, but they won't see a correct list of all their available versions until WordPress has been authenticated with Salesforce.

$default_pull_limit

$default_pull_limit : integer

Type

integer — Default max number of pull records Users can edit this

$default_pull_throttle

$default_pull_throttle : integer

Type

integer — Default pull throttle for how often Salesforce can pull Users can edit this

$default_triggerable

$default_triggerable : boolean

Type

boolean — Default for whether to limit to triggerable items Users can edit this

$default_updateable

$default_updateable : boolean

Type

boolean — Default for whether to limit to updateable items Users can edit this

$action_group_suffix

$action_group_suffix : string

Type

string — Suffix for action group name

$wpdb

$wpdb : 

Type

$version

$version : 

Type

$login_credentials

$login_credentials : 

Type

$slug

$slug : 

Type

$salesforce

$salesforce : 

Type

$wordpress

$wordpress : 

Type

$mappings

$mappings : 

Type

$push

$push : 

Type

$pull

$pull : 

Type

$schedulable_classes

$schedulable_classes : 

Type

$queue

$queue : 

Type

$option_prefix

$option_prefix : 

Type

Methods

__construct()

__construct(object  $wpdb, string  $version, array  $login_credentials, string  $slug, object  $wordpress, object  $salesforce, object  $mappings, object  $push, object  $pull, object  $logging, array  $schedulable_classes, object  $queue = '',   $option_prefix = '') 

Constructor which sets up admin pages

Parameters

object $wpdb
string $version
array $login_credentials
string $slug
object $wordpress
object $salesforce
object $mappings
object $push
object $pull
object $logging
array $schedulable_classes
object $queue
$option_prefix

Throws

\Exception

add_actions()

add_actions() 

Create the action hooks to create the admin page(s)

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

initial_action_schedule()

initial_action_schedule(string  $new_schedule, string  $old_schedule, string  $option_name) : string

Set up recurring tasks if there are none

Parameters

string $new_schedule
string $old_schedule
string $option_name
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

Returns

string —

$new_schedule

change_action_schedule()

change_action_schedule(string  $old_schedule, string  $new_schedule, string  $option_name) 

Change recurring tasks if options change

Parameters

string $old_schedule
string $new_schedule
string $option_name
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

create_admin_menu()

create_admin_menu() 

Create WordPress admin options page

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

show_admin_page()

show_admin_page() 

Render full admin pages in WordPress This allows other plugins to add tabs to the Salesforce settings screen

todo: better front end: html, organization of html into templates, css, js

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

salesforce_settings_forms()

salesforce_settings_forms() 

Create default WordPress admin settings form for salesforce This is for the Settings page/tab

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

notices()

notices() 

Create the notices, settings, and conditions by which admin notices should appear

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

get_salesforce_object_description()

get_salesforce_object_description(array  $data = array()) : array

Get all the Salesforce object settings for fieldmapping This takes either the $_POST array via ajax, or can be directly called with a $data array

Parameters

array $data

data must contain a salesforce_object can optionally contain a 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

Returns

array —

$object_settings

get_salesforce_object_fields()

get_salesforce_object_fields(array  $data = array()) : array

Get Salesforce object fields for fieldmapping

Parameters

array $data

data must contain a salesforce_object can optionally contain a type for the field

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

Returns

array —

$object_fields

get_wordpress_object_fields()

get_wordpress_object_fields(string  $wordpress_object = '') : array

Get WordPress object fields for fieldmapping This takes either the $_POST array via ajax, or can be directly called with a $wordpress_object field

Parameters

string $wordpress_object
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

Returns

array —

$object_fields

get_wp_sf_object_fields()

get_wp_sf_object_fields(string  $wordpress_object = '',   $salesforce = '') : array

Get WordPress and Salesforce object fields together for fieldmapping This takes either the $_POST array via ajax, or can be directly called with $wordpress_object and $salesforce_object fields

Parameters

string $wordpress_object
$salesforce
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

Returns

array —

$object_fields

push_to_salesforce()

push_to_salesforce(string  $wordpress_object = '', integer  $wordpress_id = '') 

Manually push the WordPress object to Salesforce This takes either the $_POST array via ajax, or can be directly called with $wordpress_object and $wordpress_id fields

Parameters

string $wordpress_object
integer $wordpress_id
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

pull_from_salesforce()

pull_from_salesforce(string  $salesforce_id = '', string  $wordpress_object = '') 

Manually pull the Salesforce object into WordPress This takes either the $_POST array via ajax, or can be directly called with $salesforce_id fields

Parameters

string $salesforce_id
string $wordpress_object
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

refresh_mapped_data()

refresh_mapped_data(integer  $mapping_id = '') 

Manually pull the Salesforce object into WordPress This takes an id for a mapping object row

Parameters

integer $mapping_id
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

prepare_fieldmap_data()

prepare_fieldmap_data() 

Prepare fieldmap data and redirect after processing This runs when the create or update forms are submitted It is public because it depends on an admin hook It then calls the Object_Sync_Sf_Mapping class and sends prepared data over to it, then redirects to the correct page This method does include error handling, by loading the submission in a transient if there is an error, and then deleting it upon success

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_fieldmap()

delete_fieldmap() 

Delete fieldmap data and redirect after processing This runs when the delete link is clicked, after the user confirms It is public because it depends on an admin hook It then calls the Object_Sync_Sf_Mapping class and the delete method

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

prepare_object_map_data()

prepare_object_map_data() 

Prepare object data and redirect after processing This runs when the update form is submitted It is public because it depends on an admin hook It then calls the Object_Sync_Sf_Mapping class and sends prepared data over to it, then redirects to the correct page This method does include error handling, by loading the submission in a transient if there is an error, and then deleting it upon success

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_object_map()

delete_object_map() 

Delete object map data and redirect after processing This runs when the delete link is clicked on an error row, after the user confirms It is public because it depends on an admin hook It then calls the Object_Sync_Sf_Mapping class and the delete method

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

import_json_file()

import_json_file() 

Import a json file and use it for plugin data

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

export_json_file()

export_json_file() 

Create a json file for exporting

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

display_input_field()

display_input_field(array  $args) 

Default display for <input> fields

Parameters

array $args
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

display_checkboxes()

display_checkboxes(array  $args) 

Display for multiple checkboxes Above method can handle a single checkbox as it is

Parameters

array $args
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

display_select()

display_select(array  $args) 

Display for a dropdown

Parameters

array $args
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

display_link()

display_link(array  $args) 

Default display for <a href> links

Parameters

array $args
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

sanitize_validate_text()

sanitize_validate_text(string  $option) : string

Allow for a standard sanitize/validate method. We could use more specific ones if need be, but this one provides a baseline.

Parameters

string $option
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

Returns

string —

$option

clear_sfwp_cache()

clear_sfwp_cache() 

Ajax call to clear 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

show_salesforce_user_fields()

show_salesforce_user_fields(object  $user) 

Show what we know about this user's relationship to a Salesforce object, if any

Parameters

object $user
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

save_salesforce_user_fields()

save_salesforce_user_fields(integer  $user_id) 

If the user profile has been mapped to Salesforce, do it

Parameters

integer $user_id
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

set_action_schedule()

set_action_schedule(string  $schedule_name, string  $action_group_name) 

Set up recurring tasks

Parameters

string $schedule_name
string $action_group_name
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

fields_settings()

fields_settings(string  $page, string  $section,   $callbacks) 

Fields for the Settings tab This runs add_settings_section once, as well as add_settings_field and register_setting methods for each option

Parameters

string $page
string $section
$callbacks
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

fields_fieldmaps()

fields_fieldmaps(string  $page, string  $section, string  $input_callback = '') 

Fields for the Fieldmaps tab This runs add_settings_section once, as well as add_settings_field and register_setting methods for each option

Parameters

string $page
string $section
string $input_callback
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

fields_scheduling()

fields_scheduling(string  $page, string  $section,   $callbacks) 

Fields for the Scheduling tab This runs add_settings_section once, as well as add_settings_field and register_setting methods for each option

Parameters

string $page
string $section
$callbacks
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

fields_log_settings()

fields_log_settings(string  $page, string  $section, array  $callbacks) 

Fields for the Log Settings tab This runs add_settings_section once, as well as add_settings_field and register_setting methods for each option

Parameters

string $page
string $section
array $callbacks
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

version_options()

version_options() : array

Dropdown formatted list of Salesforce API versions

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

Returns

array —

$args

status()

status(object  $sfapi) 

Run a demo of Salesforce API call on the authenticate tab after WordPress has authenticated with it

Parameters

object $sfapi
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

logout()

logout() 

Deauthorize WordPress from Salesforce.

This deletes the tokens from the database; it does not currently do anything in Salesforce For this plugin at this time, that is the decision we are making: don't do any kind of authorization stuff inside Salesforce

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_cache()

clear_cache(  $ajax = false) 

Clear the plugin's cache.

This uses the flush method contained in the WordPress cache to clear all of this plugin's cached data.

Parameters

$ajax
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

check_wordpress_admin_permissions()

check_wordpress_admin_permissions() 

Check WordPress Admin permissions Check if the current user is allowed to access the Salesforce 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

tabs()

tabs(array  $tabs, string  $tab = '') 

Render tabs for settings pages in admin

Parameters

array $tabs
string $tab
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(string  $schedule_name = '') 

Clear schedule This clears the schedule if the user clicks the button

Parameters

string $schedule_name
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

get_schedule_count()

get_schedule_count(string  $schedule_name = '') : integer

Get count of schedule items

Parameters

string $schedule_name
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

Returns

integer —

$count

create_object_map()

create_object_map(integer  $wordpress_id, string  $wordpress_object, string  $salesforce_id, string  $action = '') : integer

Create an object map between a WordPress object and a Salesforce object

Parameters

integer $wordpress_id

Unique identifier for the WordPress object

string $wordpress_object

What kind of object is it?

string $salesforce_id

Unique identifier for the Salesforce object

string $action

Did we push or pull?

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

Returns

integer —

$wpdb->insert_id This is the database row for the map object