├── vendor ├── developerforce │ └── force.com-toolkit-for-php │ │ ├── .gitignore │ │ ├── test │ │ ├── build.bat │ │ ├── build-phing.xml │ │ ├── report │ │ │ ├── allclasses-frame.html │ │ │ ├── overview-frame.html │ │ │ ├── SalesforceTest │ │ │ │ ├── package-frame.html │ │ │ │ └── package-summary.html │ │ │ ├── index.html │ │ │ ├── stylesheet.css │ │ │ └── overview-summary.html │ │ ├── build.xml │ │ ├── enterprise.php │ │ └── partner.php │ │ ├── unit_test │ │ ├── Lib │ │ │ ├── Exception │ │ │ │ └── InvalidResponse.php │ │ │ ├── Test │ │ │ │ ├── Partner │ │ │ │ │ ├── LoginTest.php │ │ │ │ │ ├── DescribeGlobalTest.php │ │ │ │ │ ├── DescribeLayoutTest.php │ │ │ │ │ ├── DescribeSObjectTest.php │ │ │ │ │ ├── GetUserInfoTest.php │ │ │ │ │ ├── GetServerTimestampTest.php │ │ │ │ │ ├── MetaDataDeleteTest.php │ │ │ │ │ ├── QueryTest.php │ │ │ │ │ ├── CallOptionsTest.php │ │ │ │ │ ├── DescribeDataCategoryGroupsTest.php │ │ │ │ │ ├── LocaleOptionsTest.php │ │ │ │ │ ├── ProcessWorkItemRequestTest.php │ │ │ │ │ ├── LogoutTest.php │ │ │ │ │ ├── EmptyRecycleBinTest.php │ │ │ │ │ ├── AssigmentRuleHeaderTest.php │ │ │ │ │ ├── RetrieveTest.php │ │ │ │ │ ├── EmailHeaderTest.php │ │ │ │ │ ├── InvalidateSessionsTest.php │ │ │ │ │ ├── SendEmailTest.php │ │ │ │ │ ├── LoginScopeHeaderTest.php │ │ │ │ │ ├── UpdateTest.php │ │ │ │ │ ├── AllowFieldTruncationHeaderTest.php │ │ │ │ │ ├── ConvertLeadTest.php │ │ │ │ │ ├── QueryOptionsTest.php │ │ │ │ │ ├── SendEmailWithAttachTest.php │ │ │ │ │ ├── CDUTest.php │ │ │ │ │ ├── GetDeletedTest.php │ │ │ │ │ ├── PackageVersionHeaderTest.php │ │ │ │ │ ├── QueryMoreTest.php │ │ │ │ │ ├── ResetPasswordTest.php │ │ │ │ │ ├── UpsertTest.php │ │ │ │ │ ├── GetUpdatedTest.php │ │ │ │ │ ├── MergeTest.php │ │ │ │ │ ├── MetaDataCheckStatusTest.php │ │ │ │ │ ├── MetaDataCreateTest.php │ │ │ │ │ ├── ProcessSubmitRequestTest.php │ │ │ │ │ └── DescribeDataCategoryGroupStructuresTest.php │ │ │ │ ├── Enterprise │ │ │ │ │ ├── LoginTest.php │ │ │ │ │ ├── DescribeGlobalTest.php │ │ │ │ │ ├── DescribeLayoutTest.php │ │ │ │ │ ├── DescribeSObjectTest.php │ │ │ │ │ ├── GetUserInfoTest.php │ │ │ │ │ ├── GetServerTimestampTest.php │ │ │ │ │ ├── QueryTest.php │ │ │ │ │ ├── DescribeDataCategoryGroupsTest.php │ │ │ │ │ ├── EmptyRecycleBinTest.php │ │ │ │ │ ├── LocaleOptionsTest.php │ │ │ │ │ ├── ProcessSubmitRequestTest.php │ │ │ │ │ ├── LogoutTest.php │ │ │ │ │ ├── ProcessWorkItemRequestTest.php │ │ │ │ │ ├── InvalidateSessionsTest.php │ │ │ │ │ ├── AggregateResultTest.php │ │ │ │ │ ├── RetrieveTest.php │ │ │ │ │ ├── LoginScopeHeaderTest.php │ │ │ │ │ ├── SendEmailTest.php │ │ │ │ │ ├── AllowFieldTruncationHeaderTest.php │ │ │ │ │ ├── FieldsToNullTest.php │ │ │ │ │ ├── QueryMoreTest.php │ │ │ │ │ ├── QueryOptionsTest.php │ │ │ │ │ ├── ConvertLeadTest.php │ │ │ │ │ ├── GetDeletedTest.php │ │ │ │ │ ├── PackageVersionHeaderTest.php │ │ │ │ │ ├── CDUTest.php │ │ │ │ │ ├── SendEmailWithAttachTest.php │ │ │ │ │ ├── GetUpdatedTest.php │ │ │ │ │ ├── MergeTest.php │ │ │ │ │ ├── ResetPasswordTest.php │ │ │ │ │ ├── UpsertTest.php │ │ │ │ │ └── DescribeDataCategoryGroupStructuresTest.php │ │ │ │ ├── TestFactory.php │ │ │ │ ├── TestAbstractPartner.php │ │ │ │ └── TestAbstractEnterprise.php │ │ │ ├── Enum │ │ │ │ ├── WsdlType.php │ │ │ │ └── GenericAbstract.php │ │ │ └── Utils │ │ │ │ └── FileLogger.php │ │ └── runTest.php │ │ ├── images │ │ ├── adn-blog.gif │ │ └── appexchange_logo_small.gif │ │ ├── apidocs │ │ ├── media │ │ │ ├── Thumbs.db │ │ │ ├── empty.png │ │ │ └── background.png │ │ ├── classtrees_SalesforceTest.html │ │ └── li_SalesforceTest.html │ │ ├── misc │ │ └── globalconstants.php │ │ ├── composer.json │ │ ├── README.md │ │ ├── css │ │ └── document.css │ │ ├── soapclient │ │ ├── ProxySettings.php │ │ ├── SforceProcessRequest.php │ │ └── SforceFieldTypes.php │ │ ├── license │ │ └── samples │ │ └── userAuth.php ├── composer │ ├── autoload_psr4.php │ ├── autoload_namespaces.php │ ├── autoload_files.php │ └── LICENSE ├── autoload.php ├── prospress │ └── action-scheduler │ │ ├── classes │ │ ├── ActionScheduler_Exception.php │ │ ├── ActionScheduler_NullLogEntry.php │ │ ├── ActionScheduler_FinishedAction.php │ │ ├── ActionScheduler_Schedule.php │ │ ├── ActionScheduler_NullSchedule.php │ │ ├── ActionScheduler_NullAction.php │ │ ├── ActionScheduler_ActionClaim.php │ │ ├── ActionScheduler_CanceledAction.php │ │ ├── ActionScheduler_wpPostStore_TaxonomyRegistrar.php │ │ ├── ActionScheduler_InvalidActionException.php │ │ ├── ActionScheduler_SimpleSchedule.php │ │ ├── ActionScheduler_CronSchedule.php │ │ ├── ActionScheduler_IntervalSchedule.php │ │ ├── ActionScheduler_Versions.php │ │ ├── ActionScheduler_Action.php │ │ ├── ActionScheduler_DateTime.php │ │ ├── ActionScheduler_wpPostStore_PostStatusRegistrar.php │ │ ├── ActionScheduler_wpPostStore_PostTypeRegistrar.php │ │ ├── ActionScheduler_LogEntry.php │ │ └── ActionScheduler_FatalErrorMonitor.php │ │ ├── composer.json │ │ ├── lib │ │ └── cron-expression │ │ │ ├── CronExpression_MinutesField.php │ │ │ ├── CronExpression_YearField.php │ │ │ ├── LICENSE │ │ │ ├── CronExpression_FieldInterface.php │ │ │ ├── CronExpression_HoursField.php │ │ │ ├── CronExpression_MonthField.php │ │ │ └── CronExpression_FieldFactory.php │ │ ├── deprecated │ │ └── ActionScheduler_Abstract_QueueRunner_Deprecated.php │ │ └── action-scheduler.php └── pippinsplugins │ └── wp-logging │ └── composer.json ├── templates └── admin │ ├── error.php │ ├── notice.php │ ├── settings.php │ ├── authorized.php │ ├── user-profile-salesforce-delete.php │ ├── user-profile-salesforce-change.php │ ├── fieldmaps-delete.php │ ├── user-profile-salesforce-map.php │ ├── mapping-errors-delete.php │ ├── mapping-errors-edit.php │ └── status.php ├── docs ├── code │ ├── images │ │ ├── favicon.ico │ │ ├── iviewer │ │ │ ├── grab.cur │ │ │ ├── hand.cur │ │ │ ├── iviewer.zoom_in.png │ │ │ ├── iviewer.zoom_fit.png │ │ │ ├── iviewer.zoom_out.png │ │ │ ├── iviewer.zoom_zero.png │ │ │ ├── iviewer.rotate_left.png │ │ │ └── iviewer.rotate_right.png │ │ ├── hierarchy-item.png │ │ ├── apple-touch-icon.png │ │ ├── icon-class-13x13.png │ │ ├── icon-trait-13x13.png │ │ ├── icon-interface-13x13.png │ │ ├── apple-touch-icon-72x72.png │ │ └── apple-touch-icon-114x114.png │ ├── font │ │ ├── FontAwesome.otf │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.ttf │ │ └── fontawesome-webfont.woff │ ├── css │ │ ├── phpdocumentor-clean-icons │ │ │ ├── fonts │ │ │ │ ├── phpdocumentor-clean-icons.eot │ │ │ │ ├── phpdocumentor-clean-icons.ttf │ │ │ │ └── phpdocumentor-clean-icons.woff │ │ │ ├── Read Me.txt │ │ │ ├── lte-ie7.js │ │ │ └── style.css │ │ └── jquery.iviewer.css │ ├── .htaccess │ ├── js │ │ └── jquery.smooth-scroll.js │ └── files │ │ └── classes │ │ └── admin-notice.php.txt ├── assets │ └── img │ │ └── screenshots │ │ ├── 05-wordpress-fieldmap.png │ │ ├── 01-salesforce-create-app.png │ │ ├── 02-salesforce-app-values.png │ │ ├── 06-wordpress-log-settings.png │ │ ├── 03-wordpress-create-fieldmap.png │ │ ├── 04-wordpress-add-settings-tab.png │ │ ├── 08-wordpress-log-content-type.png │ │ └── 07-manually-map-user-to-salesforce.png ├── permissions.md ├── mapping-errors.md ├── extending-roles.md ├── accessing-salesforce-object.md ├── extending-pull.md ├── example-extending-plugins.md ├── rest-api.md ├── extending-logging.md ├── import-export.md └── logging.md ├── .stylelintrc ├── .github ├── PULL_REQUEST_TEMPLATE.md ├── release-drafter.yml └── ISSUE_TEMPLATE │ ├── feature_request.md │ ├── update-dependency.md │ └── bug_report.md ├── .gitignore ├── phpdoc.dist.xml ├── phpunit.xml ├── tests ├── test-sample.php └── bootstrap.php ├── .editorconfig ├── .codeclimate.yml ├── assets └── js │ └── src │ └── 05-soap.js ├── phpcs.xml ├── .scrutinizer.yml ├── package.json ├── classes └── admin-notice.php ├── composer.json └── .travis.yml /vendor/developerforce/force.com-toolkit-for-php/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor/ 2 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/test/build.bat: -------------------------------------------------------------------------------- 1 | phing 2 | -------------------------------------------------------------------------------- /templates/admin/error.php: -------------------------------------------------------------------------------- 1 |
2 |

3 |
4 | -------------------------------------------------------------------------------- /docs/code/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/afgarcia86/object-sync-for-salesforce/master/docs/code/images/favicon.ico -------------------------------------------------------------------------------- /.stylelintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "stylelint-config-wordpress/scss", 3 | "rules": { 4 | "selector-class-pattern": null 5 | } 6 | } -------------------------------------------------------------------------------- /docs/code/font/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/afgarcia86/object-sync-for-salesforce/master/docs/code/font/FontAwesome.otf -------------------------------------------------------------------------------- /docs/code/images/iviewer/grab.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/afgarcia86/object-sync-for-salesforce/master/docs/code/images/iviewer/grab.cur -------------------------------------------------------------------------------- /docs/code/images/iviewer/hand.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/afgarcia86/object-sync-for-salesforce/master/docs/code/images/iviewer/hand.cur -------------------------------------------------------------------------------- /docs/code/images/hierarchy-item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/afgarcia86/object-sync-for-salesforce/master/docs/code/images/hierarchy-item.png -------------------------------------------------------------------------------- /docs/code/font/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/afgarcia86/object-sync-for-salesforce/master/docs/code/font/fontawesome-webfont.eot -------------------------------------------------------------------------------- /docs/code/font/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/afgarcia86/object-sync-for-salesforce/master/docs/code/font/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /docs/code/font/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/afgarcia86/object-sync-for-salesforce/master/docs/code/font/fontawesome-webfont.woff -------------------------------------------------------------------------------- /docs/code/images/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/afgarcia86/object-sync-for-salesforce/master/docs/code/images/apple-touch-icon.png -------------------------------------------------------------------------------- /docs/code/images/icon-class-13x13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/afgarcia86/object-sync-for-salesforce/master/docs/code/images/icon-class-13x13.png -------------------------------------------------------------------------------- /docs/code/images/icon-trait-13x13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/afgarcia86/object-sync-for-salesforce/master/docs/code/images/icon-trait-13x13.png -------------------------------------------------------------------------------- /docs/code/images/icon-interface-13x13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/afgarcia86/object-sync-for-salesforce/master/docs/code/images/icon-interface-13x13.png -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Exception/InvalidResponse.php: -------------------------------------------------------------------------------- 1 | "> 2 |

3 | 4 | -------------------------------------------------------------------------------- /docs/assets/img/screenshots/01-salesforce-create-app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/afgarcia86/object-sync-for-salesforce/master/docs/assets/img/screenshots/01-salesforce-create-app.png -------------------------------------------------------------------------------- /docs/assets/img/screenshots/02-salesforce-app-values.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/afgarcia86/object-sync-for-salesforce/master/docs/assets/img/screenshots/02-salesforce-app-values.png -------------------------------------------------------------------------------- /docs/assets/img/screenshots/06-wordpress-log-settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/afgarcia86/object-sync-for-salesforce/master/docs/assets/img/screenshots/06-wordpress-log-settings.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .sass-cache 2 | phpdoc-cache-* 3 | /node_modules/ 4 | /vendor/**/.git/ 5 | /vendor/**/.github/ 6 | /vendor/**/test/ 7 | /vendor/**/unit_test/ 8 | # generated 9 | release/ 10 | -------------------------------------------------------------------------------- /docs/assets/img/screenshots/03-wordpress-create-fieldmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/afgarcia86/object-sync-for-salesforce/master/docs/assets/img/screenshots/03-wordpress-create-fieldmap.png -------------------------------------------------------------------------------- /docs/assets/img/screenshots/04-wordpress-add-settings-tab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/afgarcia86/object-sync-for-salesforce/master/docs/assets/img/screenshots/04-wordpress-add-settings-tab.png -------------------------------------------------------------------------------- /docs/assets/img/screenshots/08-wordpress-log-content-type.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/afgarcia86/object-sync-for-salesforce/master/docs/assets/img/screenshots/08-wordpress-log-content-type.png -------------------------------------------------------------------------------- /docs/assets/img/screenshots/07-manually-map-user-to-salesforce.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/afgarcia86/object-sync-for-salesforce/master/docs/assets/img/screenshots/07-manually-map-user-to-salesforce.png -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/images/adn-blog.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/afgarcia86/object-sync-for-salesforce/master/vendor/developerforce/force.com-toolkit-for-php/images/adn-blog.gif -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/apidocs/media/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/afgarcia86/object-sync-for-salesforce/master/vendor/developerforce/force.com-toolkit-for-php/apidocs/media/Thumbs.db -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/apidocs/media/empty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/afgarcia86/object-sync-for-salesforce/master/vendor/developerforce/force.com-toolkit-for-php/apidocs/media/empty.png -------------------------------------------------------------------------------- /vendor/composer/autoload_psr4.php: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/test/build-phing.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /docs/code/.htaccess: -------------------------------------------------------------------------------- 1 | # Fixes a vulnerability in CentOS: http://stackoverflow.com/questions/20533279/prevent-php-from-parsing-non-php-files-such-as-somefile-php-txt 2 | 3 | RemoveHandler .php 4 | ForceType text/plain 5 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/misc/globalconstants.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/composer/autoload_files.php: -------------------------------------------------------------------------------- 1 | $vendorDir . '/prospress/action-scheduler/action-scheduler.php', 10 | ); 11 | -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/classes/ActionScheduler_Exception.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | docs/code 5 | 6 | 7 | docs/code 8 | 9 | 10 | object-sync-for-salesforce.php 11 | ./classes 12 | 13 | 14 | -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "prospress/action-scheduler", 3 | "description": "Action Scheduler for WordPress and WooCommerce", 4 | "type": "wordpress-plugin", 5 | "license": "GPL-3.0", 6 | "minimum-stability": "dev", 7 | "require": {}, 8 | "require-dev": { 9 | "wp-cli/wp-cli": "1.5.1" 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/LoginTest.php: -------------------------------------------------------------------------------- 1 | _mylogin); 13 | } 14 | } -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/classes/ActionScheduler_FinishedAction.php: -------------------------------------------------------------------------------- 1 | _mylogin); 13 | } 14 | } -------------------------------------------------------------------------------- /docs/code/css/phpdocumentor-clean-icons/Read Me.txt: -------------------------------------------------------------------------------- 1 | To modify your generated font, use the *dev.svg* file, located in the *fonts* folder in this package. You can import this dev.svg file to the IcoMoon app. All the tags (class names) and the Unicode points of your glyphs are saved in this file. 2 | 3 | See the documentation for more info on how to use this package: http://icomoon.io/#docs/font-face -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | ./tests/ 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /templates/admin/authorized.php: -------------------------------------------------------------------------------- 1 |

2 |

3 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/DescribeGlobalTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->describeGlobal()); 12 | } 13 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/DescribeLayoutTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->describeLayout('Task')); 12 | } 13 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/DescribeGlobalTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->describeGlobal()); 12 | } 13 | } -------------------------------------------------------------------------------- /tests/test-sample.php: -------------------------------------------------------------------------------- 1 | assertTrue( true ); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/DescribeLayoutTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->describeLayout('Task')); 12 | } 13 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/DescribeSObjectTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->describeSObject('Contact')); 12 | } 13 | } -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/classes/ActionScheduler_Schedule.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->describeSObject('Task')); 12 | } 13 | } -------------------------------------------------------------------------------- /.github/release-drafter.yml: -------------------------------------------------------------------------------- 1 | name-template: Version $NEXT_PATCH_VERSION 🌈 2 | tag-template: v$NEXT_PATCH_VERSION 3 | categories: 4 | - title: 🚀 Features 5 | label: feature 6 | - title: 🐛 Bug Fixes 7 | label: bug fix 8 | - title: 🧰 Maintenance 9 | label: chore 10 | - title: 💻 For Developers 11 | label: for developers 12 | change-template: '- $TITLE (#$NUMBER)' 13 | template: | 14 | $CHANGES -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/classes/ActionScheduler_NullSchedule.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->getUserInfo(); 12 | echo "***** Get User Info*****\n"; 13 | print_r($response); 14 | } 15 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/GetUserInfoTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->getUserInfo(); 13 | print_r($response); 14 | } 15 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "developerforce/force.com-toolkit-for-php", 3 | "description": "A wrapper for the Force.com Web Services SOAP API", 4 | "license": "BSD-3-Clause", 5 | "autoload": { 6 | "classmap": [ 7 | "soapclient" 8 | ] 9 | }, 10 | "extra": { 11 | "branch-alias": { 12 | "dev-master": "1.0.x-dev" 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Enum/WsdlType.php: -------------------------------------------------------------------------------- 1 | Lib_Enum_WsdlType::PARTNER, 19 | '2' => Lib_Enum_WsdlType::ENTERPRISE); 20 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/GetServerTimestampTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->getServerTimestamp(); 13 | print_r($response); 14 | } 15 | } -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/classes/ActionScheduler_NullAction.php: -------------------------------------------------------------------------------- 1 | set_schedule( new ActionScheduler_NullSchedule() ); 10 | } 11 | 12 | public function execute() { 13 | // don't execute 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /vendor/pippinsplugins/wp-logging/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "pippinsplugins/wp-logging", 3 | "type": "library", 4 | "authors": [{ 5 | "name": "Pippin Williamson" 6 | }], 7 | "description": "A WordPress class that provides a general logging system.", 8 | "homepage": "https://github.com/pippinsplugins/WP-Logging", 9 | "license": "GPL-2.0+", 10 | "keywords": ["wordpress", "logging", "logger", "log"], 11 | "require" : { 12 | "php" : ">=5.2.0" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/GetServerTimestampTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->getServerTimestamp(); 13 | print_r($response); 14 | } 15 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/README.md: -------------------------------------------------------------------------------- 1 | Force.com Toolkit for PHP 2 | ========================= 3 | 4 | The Force.com PHP Toolkit provides an easy-to-use wrapper for the Force.com Web Services SOAP API, presenting SOAP client implementations for both the enterprise and partner WSDLs. 5 | 6 | See the [getting started guide](https://developer.salesforce.com/page/PHP_Toolkit_13.0_Getting_Started) for sample code to create, retrieve, update and delete records in the Force.com database. 7 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/test/report/allclasses-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | All Unit Test Classes 5 | 6 | 7 | 8 |

Classes

9 |
SforcePartnerClientTest
10 | 11 | 12 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # This file is for unifying the coding style for different editors and IDEs 2 | # editorconfig.org 3 | 4 | # WordPress Coding Standards 5 | # https://make.wordpress.org/core/handbook/coding-standards/ 6 | 7 | root = true 8 | 9 | [*] 10 | charset = utf-8 11 | end_of_line = lf 12 | insert_final_newline = true 13 | trim_trailing_whitespace = true 14 | indent_style = tab 15 | 16 | [{.jshintrc,*.json,*.yml}] 17 | indent_style = space 18 | indent_size = 2 19 | 20 | [{*.txt,wp-config-sample.php}] 21 | end_of_line = crlf 22 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/QueryTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->query($query); 13 | 14 | foreach ($response->records as $record) { 15 | print_r($record); 16 | print "
"; 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/classes/ActionScheduler_ActionClaim.php: -------------------------------------------------------------------------------- 1 | id = $id; 12 | $this->action_ids = $action_ids; 13 | } 14 | 15 | public function get_id() { 16 | return $this->id; 17 | } 18 | 19 | public function get_actions() { 20 | return $this->action_ids; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /.codeclimate.yml: -------------------------------------------------------------------------------- 1 | engines: 2 | phpcodesniffer: 3 | enabled: true 4 | config: 5 | file_extensions: "php" 6 | standard: "WordPress-Core" 7 | csslint: 8 | enabled: true 9 | eslint: 10 | enabled: true 11 | ratings: 12 | paths: 13 | - classes/** 14 | - templates/** 15 | - "**.php" 16 | - "**.css" 17 | - "**.js" 18 | exclude_paths: 19 | - docs/**/* 20 | - node_modules/**/* 21 | - tests/**/* 22 | - vendor/**/* 23 | - assets/css/vendor/* 24 | - assets/js/vendor/* 25 | - "**.min.css" 26 | - "**.min.js" 27 | - "Gulpfile.js" 28 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/test/report/overview-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | All Unit Test Packages 5 | 6 | 7 | 8 |

Home

9 |

Packages

10 |
SalesforceTest
11 | 12 | 13 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/MetaDataDeleteTest.php: -------------------------------------------------------------------------------- 1 | _getMetaDataWSDL(), $this->_mylogin, $this->_mySforceConnection); 12 | 13 | $customObject = new SforceCustomObject(); 14 | $customObject->fullName = 'MyCustomObjFromPHP__c'; 15 | 16 | print_r($myMetadataConnection->delete($customObject)); 17 | } 18 | } -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | 5 | --- 6 | 7 | **Is your feature request related to a problem? Please describe.** 8 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 9 | 10 | **Describe the solution you'd like** 11 | A clear and concise description of what you want to happen. 12 | 13 | **Describe alternatives you've considered** 14 | A clear and concise description of any alternative solutions or features you've considered. 15 | 16 | **Additional context** 17 | Add any other context or screenshots about the feature request here. 18 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/QueryTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->query($query); 15 | $queryResult = new QueryResult($response); 16 | 17 | foreach ($queryResult->records as $record) { 18 | print_r($record); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/test/report/SalesforceTest/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Unit Test Classes: SalesforceTest 5 | 6 | 7 | 8 |

SalesforceTest

9 |

Classes

10 |
SforcePartnerClientTest
11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/mapping-errors.md: -------------------------------------------------------------------------------- 1 | # Mapping errors 2 | 3 | If the plugin fails in the middle of creating a map between two objects, a row may be created on the Mapping Errors screen. If it is a push error, it will tell you the WordPress object ID it was trying to map. If it is a pull error, it will tell you the Salesforce ID. 4 | 5 | If you have resolved an issue, you can put in the correct ID in place of the temporary one on the corresponding row, or you can delete the entry and let the plugin try the mapping again. **You should not leave these entries.** 6 | 7 | The Mapping Errors tab has further explanation as well, when it is present. It will not appear in WordPress unless errors have occurred. 8 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/update-dependency.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Update dependency 3 | about: Update a library this plugin includes 4 | 5 | --- 6 | 7 | **Is this update related to a problem? Please describe.** 8 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 9 | 10 | **Current version the plugin includes** 11 | Ex. ActionScheduler 2.1.0 12 | 13 | **Version to be included** 14 | Ex. ActionScheduler 2.1.1 15 | 16 | **Have you tested this update? What happened?** 17 | Ex. did any plugin settings have to change, were there any errors during the process? 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the update request here. 21 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/CallOptionsTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->setCallOptions($callOptionsHeader); 20 | $loginResult = $this->_mySforceConnection->login($this->_userName, $this->_password); 21 | 22 | print_r($loginResult); 23 | } 24 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Utils/FileLogger.php: -------------------------------------------------------------------------------- 1 | _filename = $filename; 14 | $this->_hanlder = fopen($filename, $mode); 15 | $this->_withTimeStamps = $withTimeStamps; 16 | } 17 | 18 | function __destruct() { 19 | fclose($this->_hanlder); 20 | } 21 | 22 | public function write($message) { 23 | fwrite($this->_hanlder, 24 | ($this->_withTimeStamps ? date(DateTime::ATOM) . ' ' : '') . $message . "\n"); 25 | } 26 | } -------------------------------------------------------------------------------- /tests/bootstrap.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Unit Test Results. 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | <h2>Frame Alert</h2> 14 | <p> 15 | This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. 16 | </p> 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /templates/admin/user-profile-salesforce-delete.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |

4 |

5 |

6 | -------------------------------------------------------------------------------- /assets/js/src/05-soap.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Don't show the WSDL file field unless SOAP is enabled 3 | */ 4 | function toggleSoapFields() { 5 | if ( 0 < $( '.object-sync-for-salesforce-enable-soap' ).length ) { 6 | if ( $( '.object-sync-for-salesforce-enable-soap input' ).is( ':checked' ) ) { 7 | $( '.object-sync-for-salesforce-soap-wsdl-path' ).show(); 8 | } else { 9 | $( '.object-sync-for-salesforce-soap-wsdl-path' ).hide(); 10 | } 11 | } 12 | } 13 | 14 | // Don't show the WSDL file field unless SOAP is enabled 15 | $( document ).on( 'change', '.object-sync-for-salesforce-enable-soap input', function() { 16 | toggleSoapFields(); 17 | } ); 18 | 19 | $( document ).ready( function() { 20 | 21 | // Don't show the WSDL file field unless SOAP is enabled 22 | toggleSoapFields(); 23 | } ); 24 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/DescribeDataCategoryGroupsTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->describeDataCategoryGroups('Question'); 19 | echo "***** ".$this->getTestName()." # Question *****\n"; 20 | print_r($response); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/DescribeDataCategoryGroupsTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->describeDataCategoryGroups('Question'); 19 | echo "***** ".$this->getTestName()." # Question *****\n"; 20 | print_r($response); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/classes/ActionScheduler_CanceledAction.php: -------------------------------------------------------------------------------- 1 | set_schedule( new ActionScheduler_NullSchedule() ); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/classes/ActionScheduler_wpPostStore_TaxonomyRegistrar.php: -------------------------------------------------------------------------------- 1 | taxonomy_args() ); 10 | } 11 | 12 | protected function taxonomy_args() { 13 | $args = array( 14 | 'label' => __('Action Group', 'action-scheduler'), 15 | 'public' => false, 16 | 'hierarchical' => false, 17 | 'show_admin_column' => true, 18 | 'query_var' => false, 19 | 'rewrite' => false, 20 | ); 21 | 22 | $args = apply_filters('action_scheduler_taxonomy_args', $args); 23 | return $args; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/LocaleOptionsTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->setLocaleOptions($header); 13 | 14 | print "**** DescribeSObject result: \r\n"; 15 | print_r( 16 | $this->_mySforceConnection->describeSObject('Account') 17 | ); 18 | 19 | print "**** LastRequestHeaders:\r\n"; 20 | print_r($this->_mySforceConnection->getLastRequestHeaders()); 21 | print "**** LastRequest:\r\n"; 22 | print_r($this->_mySforceConnection->getLastRequest()); 23 | 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/EmptyRecycleBinTest.php: -------------------------------------------------------------------------------- 1 | Type='Electrical'; 13 | $sObject->Status='New'; 14 | 15 | $response = $this->_mySforceConnection->create(array ($sObject), 'Case'); 16 | echo "***** Creating Case *****\n"; 17 | print_r($response); 18 | $id = $response->id; 19 | echo "***** Deleting Case *****\n"; 20 | print_r($this->_mySforceConnection->delete(array($id))); 21 | echo "***** Emptying Recycle Bin *****\n"; 22 | print_r($this->_mySforceConnection->emptyRecycleBin(array($id))); 23 | } 24 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/LocaleOptionsTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->setLocaleOptions($header); 13 | 14 | print "**** DescribeSObject result: \r\n"; 15 | print_r( 16 | $this->_mySforceConnection->describeSObject('Account') 17 | ); 18 | 19 | print "**** LastRequestHeaders:\r\n"; 20 | print_r($this->_mySforceConnection->getLastRequestHeaders()); 21 | print "**** LastRequest:\r\n"; 22 | print_r($this->_mySforceConnection->getLastRequest()); 23 | 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | 5 | --- 6 | 7 | **Describe the bug** 8 | A clear and concise description of what the bug is. 9 | 10 | **To Reproduce** 11 | Steps to reproduce the behavior: 12 | 1. Go to '...' 13 | 2. Click on '....' 14 | 3. Scroll down to '....' 15 | 4. See error 16 | 17 | **Expected behavior** 18 | A clear and concise description of what you expected to happen. 19 | 20 | **Screenshots** 21 | If applicable, add screenshots to help explain your problem. 22 | 23 | **Environment (please complete the following information):** 24 | - WordPress Version: [e.g. 4.9.8] 25 | - Other relevant plugins [e.g. WooCommerce, Advanced Custom Fields] 26 | - PHP Version [e.g. 7.1] 27 | 28 | **Additional context** 29 | Add any other context about the problem here. 30 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/ProcessWorkItemRequestTest.php: -------------------------------------------------------------------------------- 1 | action = 'Approve'; 19 | $processWorkItem1->workitemId = $WORKITEM; 20 | $processWorkItem1->comments = "Request approved"; 21 | 22 | $processWorkItemRequestResponse = 23 | $this->_mySforceConnection->processWorkitemRequest(array($processWorkItem1)); 24 | 25 | print_r($processWorkItemRequestResponse); 26 | } 27 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/LogoutTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->getUserInfo(); 12 | print_r($response); 13 | 14 | $mylogout = $this->_mySforceConnection->logout(); 15 | print_r($mylogout); 16 | 17 | $response = $this->_mySforceConnection->getUserInfo(); 18 | print_r($response); 19 | } 20 | 21 | /** 22 | * @param string $rs 23 | * @return void 24 | * @throws Lib_Exception_InvalidResponse 25 | */ 26 | protected function _validateSoapFault($rs) 27 | { 28 | if(strpos($rs, 'INVALID_SESSION_ID') === FALSE) { 29 | throw new Lib_Exception_InvalidResponse(); 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/ProcessSubmitRequestTest.php: -------------------------------------------------------------------------------- 1 | action = "Approve"; 18 | $processWorkItemRequest->workitemId = $WORKITEM; 19 | $processWorkItemRequest->comments = "Item has been approved."; 20 | 21 | $response = $this->_mySforceConnection->processWorkitemRequest(array ($processWorkItemRequest)); 22 | 23 | print_r($response); 24 | echo $this->_mySforceConnection->getLastRequest(); 25 | } 26 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/LogoutTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->getUserInfo(); 12 | print_r($response); 13 | 14 | $mylogout = $this->_mySforceConnection->logout(); 15 | print_r($mylogout); 16 | 17 | $response = $this->_mySforceConnection->getUserInfo(); 18 | print_r($response); 19 | } 20 | 21 | /** 22 | * @param string $rs 23 | * @return void 24 | * @throws Lib_Exception_InvalidResponse 25 | */ 26 | protected function _validateSoapFault($rs) 27 | { 28 | if(strpos($rs, 'INVALID_SESSION_ID') === FALSE) { 29 | throw new Lib_Exception_InvalidResponse(); 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/ProcessWorkItemRequestTest.php: -------------------------------------------------------------------------------- 1 | action = "Approve"; 18 | $processWorkItemRequest->workitemId = $WORKITEM; 19 | $processWorkItemRequest->comments = "Item has been approved."; 20 | 21 | $response = $this->_mySforceConnection->processWorkitemRequest(array ($processWorkItemRequest)); 22 | 23 | print_r($response); 24 | echo $this->_mySforceConnection->getLastRequest(); 25 | 26 | } 27 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/EmptyRecycleBinTest.php: -------------------------------------------------------------------------------- 1 | 'Electrical' 13 | ); 14 | 15 | $sObject = new SObject(); 16 | $sObject->fields = $fields; 17 | $sObject->type = 'Case'; 18 | 19 | $response = $this->_mySforceConnection->create(array ($sObject)); 20 | 21 | echo "Creating Case:\n"; 22 | print_r($response); 23 | 24 | $id = $response->id; 25 | echo "Deleting Case:\n"; 26 | print_r($this->_mySforceConnection->delete(array($id))); 27 | echo "Emptying Recycle Bin:\n"; 28 | print_r($this->_mySforceConnection->emptyRecycleBin(array($id))); 29 | } 30 | } -------------------------------------------------------------------------------- /docs/code/css/phpdocumentor-clean-icons/lte-ie7.js: -------------------------------------------------------------------------------- 1 | /* Load this script using conditional IE comments if you need to support IE 7 and IE 6. */ 2 | 3 | window.onload = function() { 4 | function addIcon(el, entity) { 5 | var html = el.innerHTML; 6 | el.innerHTML = '' + entity + '' + html; 7 | } 8 | var icons = { 9 | 'icon-trait' : '', 10 | 'icon-interface' : '', 11 | 'icon-class' : '' 12 | }, 13 | els = document.getElementsByTagName('*'), 14 | i, attr, html, c, el; 15 | for (i = 0; ; i += 1) { 16 | el = els[i]; 17 | if(!el) { 18 | break; 19 | } 20 | attr = el.getAttribute('data-icon'); 21 | if (attr) { 22 | addIcon(el, attr); 23 | } 24 | c = el.className; 25 | c = c.match(/icon-[^\s'"]+/); 26 | if (c && icons[c[0]]) { 27 | addIcon(el, icons[c[0]]); 28 | } 29 | } 30 | }; -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/classes/ActionScheduler_InvalidActionException.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | . 18 | 19 | 20 | 21 | 22 | 23 | 24 | /docs/* 25 | /node_modules/* 26 | /tests/* 27 | /vendor/* 28 | 29 | -------------------------------------------------------------------------------- /docs/extending-roles.md: -------------------------------------------------------------------------------- 1 | # Extending roles 2 | 3 | If you have more user roles that need to be able to configure Salesforce (this is probably most useful if you have created custom roles) you can use the `object_sync_for_salesforce_roles_configure_salesforce` hook. 4 | 5 | This hook runs when the plugin is first activated, so you'll need to de/reactivate the plugin if you need to change this. 6 | 7 | ## Code example 8 | 9 | This example would give editor users the capability to configure Salesforce as well. 10 | 11 | ```php 12 | add_filter( 'object_sync_for_salesforce_roles_configure_salesforce', 'add_more_roles', 10, 1 ); 13 | function add_more_roles( $roles ) { 14 | $roles = array( 'editor' ); 15 | // or $roles[] = 'editor'; 16 | return $roles; 17 | } 18 | ``` 19 | 20 | This hook also runs on the deactivate process, so if you permanently remove the plugin the capability is not left lingering in WordPress. 21 | -------------------------------------------------------------------------------- /templates/admin/user-profile-salesforce-change.php: -------------------------------------------------------------------------------- 1 | 2 |

3 |

4 | 5 | 6 | 7 | 11 | 12 |
8 |
9 | 10 |
13 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/InvalidateSessionsTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->getUserInfo(); 12 | print_r($response); 13 | 14 | $mylogout = $this->_mySforceConnection->invalidateSessions(); 15 | print_r($mylogout); 16 | 17 | $response = $this->_mySforceConnection->getUserInfo(); 18 | print_r($response); 19 | } 20 | 21 | /** 22 | * @param string $rs 23 | * @return void 24 | * @throws Lib_Exception_InvalidResponse 25 | */ 26 | protected function _validateSoapFault($rs) 27 | { 28 | if(strpos($rs, 'INVALID_SESSION_ID') === FALSE) { 29 | throw new Lib_Exception_InvalidResponse(); 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/css/document.css: -------------------------------------------------------------------------------- 1 | /* Default style for links */ 2 | a:active { color: #666666; text-decoration: underline; font-weight:normal; } 3 | a:visited.{ color: #666666; text-decoration: underline; font-weight:normal; } 4 | a:link { color: #666666; text-decoration: underline; font-weight:normal; } 5 | a:hover { color: #CC0000; text-decoration: underline; font-weight:normal; } 6 | 7 | /* Default style */ 8 | body 9 | { 10 | font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; font-weight: normal; font-size: 12px; color: #666666; background-color: #FFFFFF; 11 | } 12 | 13 | /* Use this style for footnote numbers */ 14 | span.Footnote 15 | { 16 | font-size: small; 17 | vertical-align: super 18 | } 19 | 20 | /* Use this style to control spacing for inline related topics tags */ 21 | div.WWHInlineRelatedTopics 22 | { 23 | margin-top: 8px; 24 | margin-bottom: 4px; 25 | } 26 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/AssigmentRuleHeaderTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->setAssignmentRuleHeader($header); 13 | 14 | $createFields = array ( 15 | 'FirstName' => 'John', 16 | 'LastName' => 'Doe', 17 | 'Email' => 'johndoe@salesforce.com', 18 | 'Company' => 'Some Company', 19 | 'LeadSource' => 'PHPUnit2', 20 | 'City' => 'Tokyo', 21 | 'Country' => 'Japan' 22 | ); 23 | $sObject1 = new SObject(); 24 | $sObject1->fields = $createFields; 25 | $sObject1->type = 'Lead'; 26 | 27 | $createResponse = $this->_mySforceConnection->create(array($sObject1)); 28 | print_r($createResponse); 29 | } 30 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/test/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/RetrieveTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->query($query); 14 | 15 | $ids = array(); 16 | 17 | foreach ($response->records as $record) { 18 | print_r($record); 19 | $ids[] = $record->Id; 20 | } 21 | 22 | // $response = $this->_mySforceConnection->retrieve( 23 | // "Id, AccountNumber, Name, Website", 24 | // "Account", 25 | // array("0018000000Ll0Vm", "0018000000Lkzfz") 26 | // ); 27 | 28 | $response = $this->_mySforceConnection->retrieve( 29 | 'Id, Name', 30 | 'Profile', 31 | $ids 32 | ); 33 | 34 | print "**** Retrive response:\r\n"; 35 | print_r($response); 36 | } 37 | } -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/lib/cron-expression/CronExpression_MinutesField.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class CronExpression_MinutesField extends CronExpression_AbstractField 9 | { 10 | /** 11 | * {@inheritdoc} 12 | */ 13 | public function isSatisfiedBy(DateTime $date, $value) 14 | { 15 | return $this->isSatisfied($date->format('i'), $value); 16 | } 17 | 18 | /** 19 | * {@inheritdoc} 20 | */ 21 | public function increment(DateTime $date, $invert = false) 22 | { 23 | if ($invert) { 24 | $date->modify('-1 minute'); 25 | } else { 26 | $date->modify('+1 minute'); 27 | } 28 | 29 | return $this; 30 | } 31 | 32 | /** 33 | * {@inheritdoc} 34 | */ 35 | public function validate($value) 36 | { 37 | return (bool) preg_match('/[\*,\/\-0-9]+/', $value); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/AggregateResultTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->query($query); 13 | $response = new QueryResult($response); 14 | 15 | echo "\n***** ".$this->getTestName()." *****\n"; 16 | print_r($response); 17 | 18 | echo "\n***** ".$this->getTestName()." response records: *****\n"; 19 | if (isset($response->records) && !empty($response->records)) { 20 | foreach ($response->records as $key=>$record) { 21 | echo "\n***** $key *****\n"; 22 | if (isset($record->fields)) { 23 | print_r($record->fields); 24 | } 25 | } 26 | } 27 | 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/EmailHeaderTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->setEmailHeader($header); 16 | 17 | $createFields = array ( 18 | 'FirstName' => 'Nick', 19 | 'LastName' => 'Tran', 20 | 'Email' => $EMAILIDFORHEADER, 21 | 'Company' => 'DELETE_ME Company', 22 | 'LeadSource' => 'PHPUnit', 23 | 'City' => 'Tokyo', 24 | 'Country' => 'Japan' 25 | ); 26 | $sObject1 = new SObject(); 27 | $sObject1->fields = $createFields; 28 | $sObject1->type = 'Lead'; 29 | 30 | $createResponse = $this->_mySforceConnection->create(array($sObject1)); 31 | 32 | print_r($createResponse); 33 | } 34 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/RetrieveTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->query($query); 14 | 15 | $ids = array(); 16 | 17 | foreach ($response->records as $record) { 18 | print_r($record); 19 | $ids[] = $record->Id; 20 | } 21 | 22 | // $response = $this->_mySforceConnection->retrieve( 23 | // "Id, AccountNumber, Name, Website", 24 | // "Account", 25 | // array("0018000000Ll0Vm", "0018000000Lkzfz") 26 | // ); 27 | 28 | $response = $this->_mySforceConnection->retrieve( 29 | "Id, Name", 30 | "Profile", 31 | $ids 32 | ); 33 | 34 | print "**** Retrive response:\r\n"; 35 | print_r($response); 36 | } 37 | } -------------------------------------------------------------------------------- /docs/accessing-salesforce-object.md: -------------------------------------------------------------------------------- 1 | # Accessing the Salesforce API object 2 | 3 | If you need to use the Salesforce API object outside this plugin, it is easily accessible. Once you have it in your theme/plugin/etc, you can run any call against it that is available in the [`salesforce`](../classes/salesforce.php) class. 4 | 5 | ## Code example 6 | 7 | ```php 8 | if ( ! function_exists( 'is_plugin_active' ) ) { 9 | require_once( ABSPATH . '/wp-admin/includes/plugin.php' ); 10 | } 11 | if ( is_plugin_active('object-sync-for-salesforce/object-sync-for-salesforce.php') ) { 12 | require_once plugin_dir_path( __FILE__ ) . '../object-sync-for-salesforce/object-sync-for-salesforce.php'; 13 | $salesforce = Object_Sync_Salesforce::get_instance(); 14 | $salesforce_api = $salesforce->salesforce['sfapi']; 15 | $mail = $wordpress_object['user_email']; 16 | $query = "SELECT Primary_Contact__c FROM Email__c WHERE Email_Address__c = '$mail'"; 17 | $result = $salesforce_api->query( $query ); 18 | } 19 | ``` 20 | 21 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/LoginScopeHeaderTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->getUserInfo(); 13 | print_r($response); 14 | 15 | $this->_mySforceConnection = new SforceEnterpriseClient(); 16 | $mySoapClient = $this->_mySforceConnection->createConnection($this->getWSDL()); 17 | // $header = new LoginScopeHeader($response->organizationId, $this->_portalId); 18 | 19 | $header = new LoginScopeHeader(NULL, $this->_portalId); 20 | $this->_mySforceConnection->setLoginScopeHeader($header); 21 | $mylogin = $this->_mySforceConnection->login($this->_userName, $this->_password); 22 | 23 | print_r($mylogin); 24 | print_r($this->_mySforceConnection->getServerTimestamp()); 25 | } 26 | } -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/deprecated/ActionScheduler_Abstract_QueueRunner_Deprecated.php: -------------------------------------------------------------------------------- 1 | createConnection(SOAP_CLIENT_BASEDIR.'/enterprise.wsdl.xml'); 16 | $mylogin = $mySforceConnection->login($USERNAME, $PASSWORD); 17 | 18 | echo "***** Get Server Timestamp *****\n"; 19 | $response = $mySforceConnection->getServerTimestamp(); 20 | print_r($response); 21 | } catch (Exception $e) { 22 | print_r($e); 23 | } 24 | ?> 25 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/InvalidateSessionsTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->getUserInfo(); 12 | print "**** User info:\r\n"; 13 | print_r($response); 14 | 15 | $mylogout = $this->_mySforceConnection->invalidateSessions(); 16 | print "**** Invalidate sessions:\r\n"; 17 | print_r($mylogout); 18 | 19 | $response = $this->_mySforceConnection->getUserInfo(); 20 | print_r($response); 21 | print "**** User info:\r\n"; 22 | print_r($response); 23 | } 24 | 25 | /** 26 | * @param string $rs 27 | * @return void 28 | * @throws Lib_Exception_InvalidResponse 29 | */ 30 | protected function _validateSoapFault($rs) 31 | { 32 | if(strpos($rs, 'INVALID_SESSION_ID') === FALSE) { 33 | throw new Lib_Exception_InvalidResponse(); 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /docs/extending-pull.md: -------------------------------------------------------------------------------- 1 | # Extending the Salesforce Pull 2 | 3 | When the plugin makes a call to the Salesforce API, it runs a SOQL query using a SOQL query object. Developers can modify this query before it runs. 4 | 5 | ## Hook 6 | 7 | `object_sync_for_salesforce_pull_query_modify` allows you to change the SOQL query before it is sent to Salesforce. 8 | 9 | ```php 10 | /** 11 | // Example to change the order to descending 12 | * 13 | * @param object $soql 14 | * The SOQL query object 15 | * @param string $object_type 16 | * Salesforce object type 17 | * @param array $salesforce_mapping 18 | * The map between the WordPress and Salesforce object types 19 | * @param array $mapped_fields 20 | * The fields that are mapped between these objects 21 | * @return object $soql 22 | * The SOQL query object 23 | */ 24 | add_filter( 'object_sync_for_salesforce_pull_query_modify', 'change_pull_query', 10, 4 ); 25 | // can always reduce this number if all the arguments are not necessary 26 | function change_pull_query( $soql, $type, $salesforce_mapping, $mapped_fields ) { 27 | $soql->order = 'DESC'; 28 | return $soql; 29 | } 30 | ``` 31 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/SendEmailTest.php: -------------------------------------------------------------------------------- 1 | toAddresses = $EMAILID; 15 | $singleEmail1->plainTextBody = "Hello there"; 16 | $singleEmail1->subject = "First Single Email"; 17 | $singleEmail1->saveAsActivity = true; 18 | $singleEmail1->emailPriority = EMAIL_PRIORITY_LOW; 19 | 20 | $singleEmail2 = new SingleEmailMessage(); 21 | $singleEmail2->toAddresses = $EMAILID; 22 | $singleEmail2->plainTextBody = "Hello there"; 23 | $singleEmail2->subject = "Second Single Email"; 24 | $singleEmail2->saveAsActivity = true; 25 | $singleEmail2->emailPriority = EMAIL_PRIORITY_LOW; 26 | 27 | echo "***** Send Emails *****\n"; 28 | $emailResponse = $this->_mySforceConnection->sendSingleEmail(array ($singleEmail1, $singleEmail2)); 29 | 30 | print_r($emailResponse); 31 | 32 | } 33 | } -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/classes/ActionScheduler_SimpleSchedule.php: -------------------------------------------------------------------------------- 1 | date = clone $date; 11 | } 12 | 13 | /** 14 | * @param DateTime $after 15 | * 16 | * @return DateTime|null 17 | */ 18 | public function next( DateTime $after = NULL ) { 19 | $after = empty($after) ? as_get_datetime_object('@0') : $after; 20 | return ( $after > $this->date ) ? NULL : clone $this->date; 21 | } 22 | 23 | /** 24 | * @return bool 25 | */ 26 | public function is_recurring() { 27 | return false; 28 | } 29 | 30 | /** 31 | * For PHP 5.2 compat, since DateTime objects can't be serialized 32 | * @return array 33 | */ 34 | public function __sleep() { 35 | $this->timestamp = $this->date->getTimestamp(); 36 | return array( 37 | 'timestamp', 38 | ); 39 | } 40 | 41 | public function __wakeup() { 42 | $this->date = as_get_datetime_object($this->timestamp); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /vendor/composer/LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Copyright (c) Nils Adermann, Jordi Boggiano 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy 5 | of this software and associated documentation files (the "Software"), to deal 6 | in the Software without restriction, including without limitation the rights 7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the Software is furnished 9 | to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all 12 | copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | THE SOFTWARE. 21 | 22 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/SendEmailTest.php: -------------------------------------------------------------------------------- 1 | toAddresses = $EMAILID; 15 | $singleEmail1->plainTextBody = "Hello there"; 16 | $singleEmail1->subject = "First Single Email"; 17 | $singleEmail1->saveAsActivity = true; 18 | $singleEmail1->emailPriority = EMAIL_PRIORITY_LOW; 19 | 20 | $singleEmail2 = new SingleEmailMessage(); 21 | $singleEmail2->toAddresses = $EMAILID; 22 | $singleEmail2->plainTextBody = "Hello there"; 23 | $singleEmail2->subject = "Second Single Email"; 24 | $singleEmail2->saveAsActivity = true; 25 | $singleEmail2->emailPriority = EMAIL_PRIORITY_LOW; 26 | 27 | echo "***** Send Emails *****\n"; 28 | $emailResponse = $this->_mySforceConnection->sendSingleEmail(array ($singleEmail1, $singleEmail2)); 29 | 30 | print_r($emailResponse); 31 | } 32 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/AllowFieldTruncationHeaderTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->setAllowFieldTruncationHeader($header); 16 | 17 | $sObject = new stdclass(); 18 | $sObject->FirstName = 'Smith'; 19 | $sObject->LastName = 'John'; 20 | $sObject->Phone = '510-555-55551111111111111111111111111111111111111111111111111111111111111111111'; 21 | $sObject->BirthDate = '1927-01-25'; 22 | 23 | echo "**** Creating the following:\r\n"; 24 | print_r($this->_mySforceConnection->create(array($sObject), 'Contact')); 25 | 26 | 27 | print "**** LastRequestHeaders:\r\n"; 28 | print_r($this->_mySforceConnection->getLastRequestHeaders()); 29 | print "**** LastRequest:\r\n"; 30 | print_r($this->_mySforceConnection->getLastRequest()); 31 | } 32 | } -------------------------------------------------------------------------------- /templates/admin/fieldmaps-delete.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 |

7 |

8 | ' . esc_html( $map['label'] ) . '', 12 | esc_html( $map['salesforce_object'] ), 13 | esc_html( $map['wordpress_object'] ) 14 | ); 15 | ?> 16 |

17 | 18 |
19 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Enum/GenericAbstract.php: -------------------------------------------------------------------------------- 1 | sizeof($this->_values)) { 14 | return NULL; 15 | } 16 | 17 | return $this->_values[$id]; 18 | } 19 | 20 | /** 21 | * Validates id 22 | * 23 | * @param $value 24 | * @return boolean 25 | */ 26 | public function validateId($id) 27 | { 28 | if(!is_numeric($id)){ 29 | return FALSE; 30 | } 31 | $id = (int)$id; 32 | if($id <= 0) { 33 | return FALSE; 34 | } 35 | 36 | return $id <= sizeof($this->_values); 37 | } 38 | 39 | /** 40 | * Validates value 41 | * 42 | * @param $value 43 | * @return boolean 44 | */ 45 | public function validateValue($value) 46 | { 47 | if($value == '') { 48 | return false; 49 | } 50 | return in_array($value, $this->_values); 51 | } 52 | 53 | /** 54 | * @return array 55 | */ 56 | public function getValues() 57 | { 58 | return $this->values; 59 | } 60 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/FieldsToNullTest.php: -------------------------------------------------------------------------------- 1 | FirstName = 'Mary'; 13 | $sObject->LastName = 'Jane'; 14 | $sObject->Phone = '510-555-5555'; 15 | 16 | $createResponse = $this->_mySforceConnection->create(array($sObject), 'Contact'); 17 | 18 | $retrieveResult= $this->_mySforceConnection->retrieve("FirstName, LastName, Phone", "Contact", $createResponse->id); 19 | echo "***** Before fieldsToNull\r\n"; 20 | print_r($retrieveResult); 21 | 22 | $sObject = new stdclass(); 23 | $sObject->fieldsToNull = array("Phone"); 24 | $sObject->Id = $createResponse->id; 25 | 26 | $updateResult = $this->_mySforceConnection->update(array($sObject), 'Contact'); 27 | 28 | $queryResult = $this->_mySforceConnection->retrieve("FirstName, LastName, Phone", "Contact", $createResponse->id); 29 | echo "***** After fieldsToNull\r\n"; 30 | print_r($queryResult); 31 | } 32 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/LoginScopeHeaderTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->getUserInfo(); 16 | print_r($response); 17 | 18 | $this->_mySforceConnection->logout(); 19 | 20 | $this->_mySforceConnection = new SforcePartnerClient(); 21 | $this->_mySforceConnection->createConnection($this->getWSDL()); 22 | 23 | // this value should be taken from salesforce developer site. 24 | 25 | // $header = new LoginScopeHeader($response->organizationId, $this->_portalId); 26 | $header = new LoginScopeHeader(NULL, $this->_portalId); 27 | 28 | $this->_mySforceConnection->setLoginScopeHeader($header); 29 | $mylogin = $this->_mySforceConnection->login($this->_userName, $this->_password); 30 | print_r($mylogin); 31 | print_r($this->_mySforceConnection->getServerTimestamp()); 32 | } 33 | } -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/lib/cron-expression/CronExpression_YearField.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class CronExpression_YearField extends CronExpression_AbstractField 9 | { 10 | /** 11 | * {@inheritdoc} 12 | */ 13 | public function isSatisfiedBy(DateTime $date, $value) 14 | { 15 | return $this->isSatisfied($date->format('Y'), $value); 16 | } 17 | 18 | /** 19 | * {@inheritdoc} 20 | */ 21 | public function increment(DateTime $date, $invert = false) 22 | { 23 | if ($invert) { 24 | $date->modify('-1 year'); 25 | $date->setDate($date->format('Y'), 12, 31); 26 | $date->setTime(23, 59, 0); 27 | } else { 28 | $date->modify('+1 year'); 29 | $date->setDate($date->format('Y'), 1, 1); 30 | $date->setTime(0, 0, 0); 31 | } 32 | 33 | return $this; 34 | } 35 | 36 | /** 37 | * {@inheritdoc} 38 | */ 39 | public function validate($value) 40 | { 41 | return (bool) preg_match('/[\*,\/\-0-9]+/', $value); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/UpdateTest.php: -------------------------------------------------------------------------------- 1 | 'testupdate', 19 | 'City' => 'testupdateCity', 20 | 'Country' => 'US' 21 | ); 22 | $sObject1 = new SObject(); 23 | $sObject1->fields = $fieldsToUpdate; 24 | $sObject1->type = 'Lead'; 25 | $sObject1->Id = $UPDATEOBJECTID1; 26 | 27 | $fieldsToUpdate = array ( 28 | 'FirstName' => 'testupdate', 29 | 'City' => 'testupdate', 30 | 'State' => 'testupdate', 31 | 'Country' => 'US' 32 | ); 33 | $sObject2 = new SObject(); 34 | $sObject2->fields = $fieldsToUpdate; 35 | $sObject2->type = 'Lead'; 36 | $sObject2->Id = $UPDATEOBJECTID2; 37 | $sObject2->fieldsToNull = array('Fax', 'Email'); 38 | 39 | $response = $this->_mySforceConnection->update(array($sObject1, $sObject2)); 40 | 41 | print_r($response); 42 | } 43 | } -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/lib/cron-expression/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011 Michael Dowling and contributors 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /docs/code/js/jquery.smooth-scroll.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function() { 2 | function filterPath(string) { 3 | return string 4 | .replace(/^\//,'') 5 | .replace(/(index|default).[a-zA-Z]{3,4}$/,'') 6 | .replace(/\/$/,''); 7 | } 8 | var locationPath = filterPath(location.pathname); 9 | 10 | $('a[href*=#]').each(function() { 11 | var thisPath = filterPath(this.pathname) || locationPath; 12 | if ( locationPath == thisPath 13 | && (location.hostname == this.hostname || !this.hostname) 14 | && this.hash.replace(/#/,'') ) { 15 | var $target = $(this.hash), target = this.hash; 16 | if (target) { 17 | $(this).click(function(event) { 18 | if (!$(this.hash).offset()) { 19 | return; 20 | } 21 | 22 | event.preventDefault(); 23 | position = $(this.hash).offset().top; 24 | 25 | $('html,body').animate({scrollTop: position}, 400, function() { 26 | location.hash = target; 27 | }); 28 | }); 29 | } 30 | } 31 | }); 32 | }); 33 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/QueryMoreTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->setQueryOptions($options); 15 | $response = $this->_mySforceConnection->query($query); 16 | 17 | !$done = false; 18 | echo "Size of records: ".$response ->size."\n"; 19 | 20 | if ($response->size > 0) { 21 | while (!$done) { 22 | foreach ($response->records as $record) { 23 | echo $record->NumberOfEmployees."\r\n"; 24 | } 25 | if ($response->done != true) { 26 | echo "***** Get Next Chunk *****\n"; 27 | try { 28 | $response = $this->_mySforceConnection->queryMore($response->queryLocator); 29 | } catch (Exception $e) { 30 | print_r($this->_mySforceConnection->getLastRequest()); 31 | echo $e->faultstring; 32 | } 33 | } else { 34 | $done = true; 35 | } 36 | } 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /templates/admin/user-profile-salesforce-map.php: -------------------------------------------------------------------------------- 1 | 2 |

3 |

4 | 5 | 6 | 7 | 13 | 14 |
8 |
9 | 10 |

or

11 |

12 |
15 |
16 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/QueryOptionsTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->setQueryOptions($options); 15 | $response = $this->_mySforceConnection->query($query); 16 | !$done = false; 17 | 18 | echo "Size of records: ".$response ->size."\n"; 19 | 20 | if ($response->size > 0) { 21 | while (!$done) { 22 | foreach ($response->records as $record) { 23 | echo $record->NumberOfEmployees."\r\n"; 24 | } 25 | if ($response->done != true) { 26 | echo "***** Get Next Chunk *****\n"; 27 | try { 28 | $response = $this->_mySforceConnection->queryMore($response->queryLocator); 29 | } catch (Exception $e) { 30 | print_r($this->_mySforceConnection->getLastRequest()); 31 | echo $e->faultstring; 32 | } 33 | } else { 34 | $done = true; 35 | } 36 | } 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/ConvertLeadTest.php: -------------------------------------------------------------------------------- 1 | Company = 'test enterprise company'; 15 | $newLead->FirstName = 'John'; 16 | $newLead->LastName = 'Smith'; 17 | 18 | $createResponse = 19 | $this->_mySforceConnection->create( 20 | array($newLead), 'Lead' 21 | ); 22 | 23 | echo "**** Created lead:\r\n"; 24 | print_r($createResponse); 25 | 26 | $leadConvert = new stdClass; 27 | $leadConvert->convertedStatus = 'Closed - Converted'; 28 | $leadConvert->doNotCreateOpportunity = 'false'; 29 | $leadConvert->leadId = $createResponse->id; 30 | $leadConvert->overwriteLeadSource = 'true'; 31 | $leadConvert->sendNotificationEmail = 'true'; 32 | 33 | $leadConvertArray = array($leadConvert); 34 | $leadConvertResponse = $this->_mySforceConnection->convertLead($leadConvertArray); 35 | 36 | print_r($leadConvertResponse); 37 | } 38 | } -------------------------------------------------------------------------------- /templates/admin/mapping-errors-delete.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 |

7 |

8 | ' . esc_html( $map_row['wordpress_object'] ) . '', 12 | ' ' . esc_html( $map_row['wordpress_id'] ) . '', 13 | ' ' . esc_html( $map_row['salesforce_id'] ) . '' 14 | ); 15 | ?> 16 |

17 | 18 |
19 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/AllowFieldTruncationHeaderTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->setAllowFieldTruncationHeader($header); 16 | 17 | $fields = array ( 18 | 'FirstName' => 'John', 19 | 'LastName' => 'Smith', 20 | 'Phone' => '511111111111111111111111110-555-5555111111111111111111111111111111111111111111111111', 21 | 'BirthDate' => '1950-01-01' 22 | ); 23 | 24 | $sObject = new SObject(); 25 | $sObject->fields = $fields; 26 | $sObject->type = 'Contact'; 27 | 28 | $createResponse = $this->_mySforceConnection->create(array($sObject)); 29 | echo "**** Creating the following:\r\n"; 30 | print_r($createResponse); 31 | 32 | print "**** LastRequestHeaders:\r\n"; 33 | print_r($this->_mySforceConnection->getLastRequestHeaders()); 34 | print "**** LastRequest:\r\n"; 35 | print_r($this->_mySforceConnection->getLastRequest()); 36 | } 37 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/ConvertLeadTest.php: -------------------------------------------------------------------------------- 1 | 'test company', 16 | 'FirstName' => 'John', 17 | 'LastName' => 'Smith' 18 | ); 19 | 20 | $newLead->fields = $fields; 21 | $newLead->type = 'Lead'; 22 | 23 | $createResponse = 24 | $this->_mySforceConnection->create( 25 | array($newLead) 26 | ); 27 | 28 | echo "**** Created lead:\r\n"; 29 | print_r($createResponse); 30 | 31 | $leadConvert = new stdClass; 32 | $leadConvert->convertedStatus='Closed - Converted'; 33 | $leadConvert->doNotCreateOpportunity='false'; 34 | // $leadConvert->leadId=$convertLEADID; 35 | $leadConvert->leadId=$createResponse->id; 36 | $leadConvert->overwriteLeadSource='true'; 37 | $leadConvert->sendNotificationEmail='true'; 38 | 39 | $leadConvertArray = array($leadConvert); 40 | $leadConvertResponse = $this->_mySforceConnection->convertLead($leadConvertArray); 41 | 42 | print_r($leadConvertResponse); 43 | } 44 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/TestFactory.php: -------------------------------------------------------------------------------- 1 | _logger = new Lib_Utils_FileLogger($logName, 'a+', TRUE); 17 | $this->_soapDir = $soapDir; 18 | } 19 | 20 | /** 21 | * @param int $type 22 | * @param string $target 23 | * @return void 24 | */ 25 | public function run($type, $target) 26 | { 27 | $this->_logger->write(__METHOD__ . ' started'); 28 | 29 | $WsdlTypeEnum = new Lib_Enum_WsdlType(); 30 | $typeName = $WsdlTypeEnum->getById($type); 31 | 32 | // create appropriate test instance and run it 33 | $className = 'Lib_Test_' . ucfirst(strtolower($typeName)) . '_' . $target . 'Test'; 34 | 35 | /* @var $testCase Lib_Test_TestAbstract */ 36 | $testCase = new $className($this->_soapDir); 37 | $testCase->run($this->_logger); 38 | 39 | $this->_logger->write('Lib_Test_TestFactory->run finished'); 40 | } 41 | 42 | public function runAll() 43 | { 44 | // TODO Implement 45 | // Iterate throw all PARTNER and ENTERPRISE tests 46 | } 47 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/GetDeletedTest.php: -------------------------------------------------------------------------------- 1 | FirstName = 'Smith'; 13 | $sObject->LastName = 'John'; 14 | $sObject->Phone = '510-555-5555'; 15 | $sObject->BirthDate = '1927-01-25'; 16 | 17 | echo "**** Creating the following:\n"; 18 | $createResponse = $this->_mySforceConnection->create(array($sObject), 'Contact'); 19 | print_r($createResponse); 20 | 21 | $id = $createResponse->id; 22 | $deleteResponse = $this->_mySforceConnection->delete(array ($id)); 23 | echo "***** Deleting record *****\n"; 24 | print_r($deleteResponse); 25 | 26 | echo "***** Wait 60 seconds *****\n"; 27 | sleep(60); 28 | 29 | $currentTime = mktime(); 30 | // assume that delete occured within the last 5 mins. 31 | $startTime = $currentTime - (60*10); 32 | $endTime = $currentTime; 33 | 34 | echo "***** Get Deleted Leads *****\n"; 35 | $getDeletedResponse = $this->_mySforceConnection->getDeleted('Contact', $startTime, $endTime); 36 | print_r($getDeletedResponse); 37 | } 38 | } -------------------------------------------------------------------------------- /docs/example-extending-plugins.md: -------------------------------------------------------------------------------- 1 | # Example plugins 2 | 3 | We'd like to link to plugins that extend this plugin by using [our developer hooks](https://github.com/MinnPost/object-sync-for-salesforce/blob/master/docs/all-developer-hooks.md) when possible. If you create any of your own, please [submit a pull request to this repo](https://help.github.com/articles/creating-a-pull-request), or [create an issue](https://github.com/minnpost/object-sync-for-salesforce/issues), and tell us as much as you'd like us to know about the plugin. We don't guarantee putting any plugin submitted to us on this page. It may also be useful to tag your GitHub repository (if you have one) with `object-sync-for-salesforce` for easier discovery. 4 | 5 | ## Plugins created by MinnPost (the developer of this plugin) 6 | 7 | 1. [MinnPost WordPress Salesforce Plugin](https://github.com/MinnPost/minnpost-wordpress-salesforce-plugin) - uses various hooks to extend the plugin for our needs. For us, this is especially related to our membership efforts. 8 | 2. [MinnPost Donation Progress Widget](https://github.com/MinnPost/minnpost-donation-progress-widget) - uses the Salesforce Analytics API included in this plugin to build a donation progress widget. It is perhaps not very universal, as it depends on how we set up our campaigns for membership drives. 9 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/PackageVersionHeaderTest.php: -------------------------------------------------------------------------------- 1 | majorNumber = 2; 15 | $pv->minorNumber = 1; 16 | $pv->namespace = SforceEnterpriseClient::ENTERPRISE_NAMESPACE; 17 | $header = new PackageVersionHeader( 18 | array($pv) 19 | ); 20 | print_r($header); 21 | $this->_mySforceConnection->setPackageVersionHeader($header); 22 | 23 | $sObject = new stdclass(); 24 | $sObject->FirstName = 'Smith'; 25 | $sObject->LastName = 'John'; 26 | $sObject->Phone = '510-555-5555'; 27 | $sObject->BirthDate = '1927-01-25'; 28 | 29 | $createResponse = $this->_mySforceConnection->create(array($sObject), 'Contact'); 30 | echo "**** Creating the following:\r\n"; 31 | print_r($createResponse); 32 | 33 | print "**** LastRequestHeaders:\r\n"; 34 | print_r($this->_mySforceConnection->getLastRequestHeaders()); 35 | print "**** LastRequest:\r\n"; 36 | print_r($this->_mySforceConnection->getLastRequest()); 37 | } 38 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/TestAbstractPartner.php: -------------------------------------------------------------------------------- 1 | _soapDir . '/SforcePartnerClient.php'); 11 | require_once ($this->_soapDir . '/SforceHeaderOptions.php'); 12 | require_once ($this->_soapDir . '/SforceMetadataClient.php'); 13 | 14 | $this->_mySforceConnection = new SforcePartnerClient(); 15 | $this->_mySoapClient = $this->_mySforceConnection->createConnection($this->getWSDL()); 16 | $this->_mylogin = $this->_mySforceConnection->login($this->_userName, $this->_password); 17 | 18 | $_SESSION['location'] = $this->_mySforceConnection->getLocation(); 19 | $_SESSION['sessionId'] = $this->_mySforceConnection->getSessionId(); 20 | $_SESSION['wsdl'] = $this->getWSDL(); 21 | } 22 | 23 | public function getWSDLName() { 24 | return $this->_wsdlName; 25 | } 26 | 27 | public function getWSDLVersion() 28 | { 29 | return $this->_wsdlVersion; 30 | } 31 | 32 | public function getWSDL() { 33 | return "{$this->_soapDir}/{$this->_wsdlName}{$this->_wsdlVersion}.wsdl.xml"; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/QueryOptionsTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->setQueryOptions($options); 14 | $response = $this->_mySforceConnection->query($query); 15 | $queryResult = new QueryResult($response); 16 | !$done = false; 17 | 18 | echo "Size of records: ".$queryResult->size; 19 | 20 | if ($queryResult->size > 0) { 21 | while (!$done) { 22 | foreach ($queryResult->records as $record) { 23 | echo $record->fields->NumberOfEmployees."\r\n"; 24 | } 25 | if ($queryResult->done != true) { 26 | echo "***** Get Next Chunk *****\n"; 27 | try { 28 | $response = $this->_mySforceConnection->queryMore($queryResult->queryLocator); 29 | $queryResult = new QueryResult($response); 30 | } catch (Exception $e) { 31 | print_r($this->_mySforceConnection->getLastRequest()); 32 | echo $e->faultstring; 33 | } 34 | } else { 35 | $done = true; 36 | } 37 | } 38 | } 39 | 40 | } 41 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/test/report/SalesforceTest/package-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

Unit Test Results

8 | 9 | 10 | 11 |
Designed for use with PHPUnit2 and Phing.
12 |
13 |

Package SalesforceTest

14 |

Classes

15 |

16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 |
NameTestsErrorsFailuresTime(s)
SforcePartnerClientTest210089.304

31 | 32 | 33 | 34 |

Report generated at 2006-05-11T23:17:56-07:00
35 | 36 | 37 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/TestAbstractEnterprise.php: -------------------------------------------------------------------------------- 1 | _soapDir . '/SforceEnterpriseClient.php'); 11 | require_once ($this->_soapDir . '/SforceHeaderOptions.php'); 12 | require_once ($this->_soapDir . '/SforceMetadataClient.php'); 13 | 14 | $this->_mySforceConnection = new SforceEnterpriseClient(); 15 | $this->_mySoapClient = $this->_mySforceConnection->createConnection($this->getWSDL()); 16 | $this->_mylogin = $this->_mySforceConnection->login($this->_userName, $this->_password); 17 | 18 | $_SESSION['location'] = $this->_mySforceConnection->getLocation(); 19 | $_SESSION['sessionId'] = $this->_mySforceConnection->getSessionId(); 20 | $_SESSION['wsdl'] = $this->getWSDL(); 21 | } 22 | 23 | public function getWSDLName() 24 | { 25 | return $this->_wsdlName; 26 | } 27 | 28 | public function getWSDLVersion() 29 | { 30 | return $this->_wsdlVersion; 31 | } 32 | 33 | public function getWSDL() { 34 | return "{$this->_soapDir}/{$this->_wsdlName}{$this->_wsdlVersion}.wsdl.xml"; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/CDUTest.php: -------------------------------------------------------------------------------- 1 | FirstName = 'Smith'; 17 | $sObject->LastName = 'John'; 18 | $sObject->Phone = '510-555-5555'; 19 | $sObject->BirthDate = '1927-01-25'; 20 | 21 | $sObject2 = new stdclass(); 22 | $sObject2->FirstName = 'Mary'; 23 | $sObject2->LastName = 'Smith'; 24 | $sObject2->Phone = '510-486-9969'; 25 | $sObject2->BirthDate = '1957-01-25'; 26 | 27 | echo "**** Creating the following:\r\n"; 28 | $createResponse = $this->_mySforceConnection->create(array($sObject, $sObject2), 'Contact'); 29 | 30 | $ids = array(); 31 | foreach ($createResponse as $createResult) { 32 | print_r($createResult); 33 | array_push($ids, $createResult->id); 34 | } 35 | echo "**** Now for Delete:\r\n"; 36 | $deleteResult = $this->_mySforceConnection->delete($ids); 37 | print_r($deleteResult); 38 | 39 | echo "**** Now for UnDelete:\r\n"; 40 | $deleteResult = $this->_mySforceConnection->undelete($ids); 41 | print_r($deleteResult); 42 | } 43 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/SendEmailWithAttachTest.php: -------------------------------------------------------------------------------- 1 | toAddresses = $EMAILID; 15 | $singleEmail1->plainTextBody = "Hello there"; 16 | $singleEmail1->subject = "First Single Email"; 17 | $singleEmail1->saveAsActivity = true; 18 | $singleEmail1->emailPriority = EMAIL_PRIORITY_LOW; 19 | // $singleEmail1->inReplyTo = "First Single Email"; 20 | 21 | $filename = $this->_soapDir . '/earth.png'; 22 | $handle = fopen($filename, "rb"); 23 | $contents = fread($handle, filesize($filename)); 24 | fclose($handle); 25 | $attachment = new stdclass(); 26 | $attachment->body = $contents; 27 | $attachment->contentType = 'image/png'; 28 | $attachment->fileName = $filename; 29 | $attachment->inline = TRUE; 30 | 31 | $singleEmail1->setFileAttachments(array($attachment)); 32 | 33 | echo "***** Send Emails *****\n"; 34 | $emailResponse = $this->_mySforceConnection->sendSingleEmail(array($singleEmail1)); 35 | 36 | print_r($emailResponse); 37 | } 38 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/SendEmailWithAttachTest.php: -------------------------------------------------------------------------------- 1 | toAddresses = $EMAILID; 15 | $singleEmail1->plainTextBody = "Hello there"; 16 | $singleEmail1->subject = "First Single Email"; 17 | $singleEmail1->saveAsActivity = true; 18 | $singleEmail1->emailPriority = EMAIL_PRIORITY_LOW; 19 | // $singleEmail1->inReplyTo = "First Single Email"; 20 | 21 | $filename = $this->_soapDir . '/earth.png'; 22 | $handle = fopen($filename, "rb"); 23 | $contents = fread($handle, filesize($filename)); 24 | fclose($handle); 25 | $attachment = new stdclass(); 26 | $attachment->body = $contents; 27 | $attachment->contentType = 'image/png'; 28 | $attachment->fileName = $filename; 29 | $attachment->inline = TRUE; 30 | 31 | $singleEmail1->setFileAttachments(array($attachment)); 32 | 33 | echo "***** Send Emails *****\n"; 34 | $emailResponse = $this->_mySforceConnection->sendSingleEmail(array($singleEmail1)); 35 | 36 | print_r($emailResponse); 37 | } 38 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/CDUTest.php: -------------------------------------------------------------------------------- 1 | 'John', 17 | 'LastName' => 'Smith', 18 | 'Phone' => '510-555-5555', 19 | 'BirthDate' => '1950-01-01' 20 | ); 21 | 22 | $sObject = new SObject(); 23 | $sObject->fields = $fields; 24 | $sObject->type = 'Contact'; 25 | 26 | $sObject2 = new SObject(); 27 | $sObject2->fields = $fields; 28 | $sObject2->type = 'Contact'; 29 | 30 | $createResponse = $this->_mySforceConnection->create(array($sObject, $sObject2)); 31 | 32 | echo "**** Creating the following:\r\n"; 33 | print_r($createResponse); 34 | 35 | $ids = array(); 36 | foreach ($createResponse as $createResult) { 37 | print_r($createResult); 38 | array_push($ids, $createResult->id); 39 | } 40 | echo "**** Now for Delete:\r\n"; 41 | $deleteResult = $this->_mySforceConnection->delete($ids); 42 | print_r($deleteResult); 43 | 44 | echo "**** Now for UnDelete:\r\n"; 45 | $unDeleteResult = $this->_mySforceConnection->undelete($ids); 46 | print_r($unDeleteResult); 47 | } 48 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/GetDeletedTest.php: -------------------------------------------------------------------------------- 1 | type = 'Lead'; 12 | 13 | $fields = array ( 14 | 'Company' => 'XYZ Company', 15 | 'FirstName' => 'John', 16 | 'LastName' => 'Smith', 17 | 'LeadSource' => 'Other', 18 | 'NumberOfEmployees' => 1, 19 | 'Status' => 'Open' 20 | ); 21 | $obj1->fields = $fields; 22 | $createResponse = $this->_mySforceConnection->create(array ($obj1)); 23 | 24 | echo "***** Creating Lead *****\n"; 25 | print_r($createResponse); 26 | 27 | $id = $createResponse->id; 28 | $deleteResponse = $this->_mySforceConnection->delete(array ($id)); 29 | echo "***** Deleting Lead *****\n"; 30 | print_r($deleteResponse); 31 | 32 | echo "***** Wait 60 seconds *****\n"; 33 | sleep(60); 34 | 35 | $currentTime = mktime(); 36 | // assume that delete occured within the last 5 mins. 37 | $startTime = $currentTime - (60*10); 38 | $endTime = $currentTime; 39 | 40 | echo "***** Get Deleted Leads *****\n"; 41 | $getDeletedResponse = $this->_mySforceConnection->getDeleted('Lead', $startTime, $endTime); 42 | print_r($getDeletedResponse); 43 | } 44 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/runTest.php: -------------------------------------------------------------------------------- 1 | run($type, $target); 39 | 40 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/PackageVersionHeaderTest.php: -------------------------------------------------------------------------------- 1 | majorNumber = 2; 15 | $pv->minorNumber = 1; 16 | $pv->namespace = SforcePartnerClient::PARTNER_NAMESPACE; 17 | $header = new PackageVersionHeader( 18 | array($pv) 19 | ); 20 | print_r($header); 21 | $this->_mySforceConnection->setPackageVersionHeader($header); 22 | 23 | $fields = array ( 24 | 'FirstName' => 'John', 25 | 'LastName' => 'Smith', 26 | 'Phone' => '510-555-5555', 27 | 'BirthDate' => '1950-01-01' 28 | ); 29 | 30 | $sObject = new SObject(); 31 | $sObject->fields = $fields; 32 | $sObject->type = 'Contact'; 33 | 34 | $createResponse = $this->_mySforceConnection->create(array($sObject)); 35 | echo "**** Creating the following:\r\n"; 36 | print_r($createResponse); 37 | 38 | print "**** LastRequestHeaders:\r\n"; 39 | print_r($this->_mySforceConnection->getLastRequestHeaders()); 40 | print "**** LastRequest:\r\n"; 41 | print_r($this->_mySforceConnection->getLastRequest()); 42 | } 43 | } -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/lib/cron-expression/CronExpression_FieldInterface.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | interface CronExpression_FieldInterface 9 | { 10 | /** 11 | * Check if the respective value of a DateTime field satisfies a CRON exp 12 | * 13 | * @param DateTime $date DateTime object to check 14 | * @param string $value CRON expression to test against 15 | * 16 | * @return bool Returns TRUE if satisfied, FALSE otherwise 17 | */ 18 | public function isSatisfiedBy(DateTime $date, $value); 19 | 20 | /** 21 | * When a CRON expression is not satisfied, this method is used to increment 22 | * or decrement a DateTime object by the unit of the cron field 23 | * 24 | * @param DateTime $date DateTime object to change 25 | * @param bool $invert (optional) Set to TRUE to decrement 26 | * 27 | * @return CronExpression_FieldInterface 28 | */ 29 | public function increment(DateTime $date, $invert = false); 30 | 31 | /** 32 | * Validates a CRON expression for a given field 33 | * 34 | * @param string $value CRON expression value to validate 35 | * 36 | * @return bool Returns TRUE if valid, FALSE otherwise 37 | */ 38 | public function validate($value); 39 | } 40 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/GetUpdatedTest.php: -------------------------------------------------------------------------------- 1 | FirstName = 'Smith'; 13 | $sObject->LastName = 'John'; 14 | $sObject->Phone = '510-555-5555'; 15 | $sObject->BirthDate = '1927-01-25'; 16 | 17 | echo "**** Creating the following:\n"; 18 | $createResponse = $this->_mySforceConnection->create(array($sObject), 'Contact'); 19 | print_r($createResponse); 20 | 21 | $id = $createResponse->id; 22 | echo "***** Updating record *****\n"; 23 | $sObject->Id = $id; 24 | $sObject->Phone = '999-999-9999'; 25 | $updateResponse = $this->_mySforceConnection->update(array ($sObject), "Contact"); 26 | print_r($updateResponse); 27 | 28 | echo "***** Wait 60 seconds *****\n"; 29 | sleep(60); 30 | 31 | $currentTime = mktime(); 32 | // assume that update occured within the last 5 mins. 33 | $startTime = $currentTime-(60*10); 34 | $endTime = $currentTime; 35 | 36 | echo "***** Get Updated Leads *****\n"; 37 | $getUpdateddResponse = $this->_mySforceConnection->getUpdated('Contact', $startTime, $endTime); 38 | print_r($getUpdateddResponse); 39 | } 40 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/test/partner.php: -------------------------------------------------------------------------------- 1 |
 2 | createConnection(SOAP_CLIENT_BASEDIR.'/partner.wsdl.xml');
22 | 	$mylogin = $mySforceConnection->login($USERNAME, $PASSWORD);
23 | print_r($mySforceConnection->getUserInfo());
24 | 	//print_r($mylogin->userInfo);
25 |   echo "***** Get Server Timestamp *****\n";
26 |   //$response = $mySforceConnection->getServerTimestamp();
27 | //	print_r($response);
28 |  //print_r($mySforceConnection->describeSObject('User'));  
29 |   //$result = $mySforceConnection->query($query);
30 |   //print_r($result);
31 | } catch (Exception $e) {
32 | 	print_r($e);
33 | }
34 | ?>
35 | 
-------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/QueryMoreTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->setQueryOptions($options); 14 | $response = $this->_mySforceConnection->query($query); 15 | 16 | print_r($response); 17 | 18 | $queryResult = new QueryResult($response); 19 | 20 | // print_r($queryResult); 21 | 22 | !$done = false; 23 | 24 | echo "Size of records: ".$queryResult->size; 25 | 26 | if ($queryResult->size > 0) { 27 | while (!$done) { 28 | foreach ($queryResult->records as $record) { 29 | echo 'NumberOfEmployees=' .$record->fields->NumberOfEmployees."\r\n"; 30 | } 31 | if ($queryResult->done != true) { 32 | echo "***** Get Next Chunk *****\n"; 33 | try { 34 | $response = $this->_mySforceConnection->queryMore($queryResult->queryLocator); 35 | $queryResult = new QueryResult($response); 36 | } catch (Exception $e) { 37 | print_r($this->_mySforceConnection->getLastRequest()); 38 | echo $e->faultstring; 39 | } 40 | } else { 41 | $done = true; 42 | } 43 | } 44 | } 45 | } 46 | } -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/lib/cron-expression/CronExpression_HoursField.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class CronExpression_HoursField extends CronExpression_AbstractField 9 | { 10 | /** 11 | * {@inheritdoc} 12 | */ 13 | public function isSatisfiedBy(DateTime $date, $value) 14 | { 15 | return $this->isSatisfied($date->format('H'), $value); 16 | } 17 | 18 | /** 19 | * {@inheritdoc} 20 | */ 21 | public function increment(DateTime $date, $invert = false) 22 | { 23 | // Change timezone to UTC temporarily. This will 24 | // allow us to go back or forwards and hour even 25 | // if DST will be changed between the hours. 26 | $timezone = $date->getTimezone(); 27 | $date->setTimezone(new DateTimeZone('UTC')); 28 | if ($invert) { 29 | $date->modify('-1 hour'); 30 | $date->setTime($date->format('H'), 59); 31 | } else { 32 | $date->modify('+1 hour'); 33 | $date->setTime($date->format('H'), 0); 34 | } 35 | $date->setTimezone($timezone); 36 | 37 | return $this; 38 | } 39 | 40 | /** 41 | * {@inheritdoc} 42 | */ 43 | public function validate($value) 44 | { 45 | return (bool) preg_match('/[\*,\/\-0-9]+/', $value); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /.scrutinizer.yml: -------------------------------------------------------------------------------- 1 | checks: 2 | php: 3 | avoid_closing_tag: false 4 | avoid_superglobals: false 5 | coding_standard: 6 | name: WordPress 7 | no_exit: false 8 | no_global_keyword: false 9 | one_class_per_file: false 10 | psr2_class_declaration: false 11 | psr2_control_structure_declaration: false 12 | psr2_switch_declaration: false 13 | variable_existence: false 14 | verify_access_scope_valid: false 15 | verify_argument_usable_as_reference: false 16 | verify_property_names: false 17 | 18 | filter: 19 | excluded_paths: 20 | - 'bin/*' 21 | - 'docs/*' 22 | - 'node_modules/*' 23 | - 'tests/*' 24 | - 'vendor/*/tests/*' 25 | - '*.min.js' 26 | - '*.min.css' 27 | - 'assets/js/vendor/*' 28 | - 'Gulpfile.js' 29 | dependency_paths: 30 | - 'wordpress/' 31 | - 'vendor/' 32 | tools: 33 | php_code_sniffer: 34 | config: 35 | standard: WordPress 36 | build: 37 | environment: 38 | node: 'v11.11.0' 39 | php: '7.3.3' 40 | mysql: true 41 | apache2: 42 | modules: 43 | - rewrite 44 | nodes: 45 | analysis: 46 | dependencies: 47 | before: 48 | - composer require --dev johnpbloch/wordpress 49 | tests: 50 | override: 51 | - php-scrutinizer-run 52 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/ResetPasswordTest.php: -------------------------------------------------------------------------------- 1 | 'Johny', 15 | 'Email' => 'test@example.com', 16 | 'EmailEncodingKey' => 'UTF-8', 17 | 'LanguageLocaleKey' => 'en_US', 18 | 'LastName' => 'Smith', 19 | 'LocaleSidKey' => 'en_US', 20 | 'ProfileId' => '00et0000000qoV2AAI', // standart user 21 | 'TimeZoneSidKey' => 'America/Los_Angeles', 22 | 'Username' => 'johnysmith@example.com', 23 | 'UserPermissionsCallCenterAutoLogin' => 0, 24 | 'UserPermissionsMarketingUser' => 0, 25 | 'UserPermissionsOfflineUser' => 0, 26 | // 'UserPermissionsWirelessUser' => 0, 27 | 'CommunityNickname' => 'johnyexamplecom' 28 | ); 29 | 30 | $newUser = new SObject(); 31 | $newUser->fields = $values; 32 | $newUser->type = 'User'; 33 | 34 | $createResponse = $this->_mySforceConnection->create(array($newUser)); 35 | 36 | echo "**** Creating the following:\r\n"; 37 | print_r($createResponse); 38 | */ 39 | 40 | $new_password=$this->_mySforceConnection->resetPassword('005t0000000uonmAAA'); 41 | print_r($new_password); 42 | } 43 | 44 | } -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/classes/ActionScheduler_CronSchedule.php: -------------------------------------------------------------------------------- 1 | start = $start; 15 | $this->cron = $cron; 16 | } 17 | 18 | /** 19 | * @param DateTime $after 20 | * @return DateTime|null 21 | */ 22 | public function next( DateTime $after = NULL ) { 23 | $after = empty($after) ? clone $this->start : clone $after; 24 | return $this->cron->getNextRunDate($after, 0, false); 25 | } 26 | 27 | /** 28 | * @return bool 29 | */ 30 | public function is_recurring() { 31 | return true; 32 | } 33 | 34 | /** 35 | * @return string 36 | */ 37 | public function get_recurrence() { 38 | return strval($this->cron); 39 | } 40 | 41 | /** 42 | * For PHP 5.2 compat, since DateTime objects can't be serialized 43 | * @return array 44 | */ 45 | public function __sleep() { 46 | $this->start_timestamp = $this->start->getTimestamp(); 47 | return array( 48 | 'start_timestamp', 49 | 'cron' 50 | ); 51 | } 52 | 53 | public function __wakeup() { 54 | $this->start = as_get_datetime_object($this->start_timestamp); 55 | } 56 | } 57 | 58 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/MergeTest.php: -------------------------------------------------------------------------------- 1 | LastName = 'Tran'; 13 | $sObject->BirthDate = '1927-01-25'; 14 | $sObject->Phone = '510-555-5555'; 15 | 16 | $sObject2 = new stdclass(); 17 | $sObject2->LastName = 'Tran'; 18 | $sObject2->BirthDate = '1957-01-25'; 19 | $sObject2->Phone = '510-486-9969'; 20 | 21 | $sObject3 = new stdclass(); 22 | $sObject3->LastName = 'Tran'; 23 | $sObject3->BirthDate = '1957-01-25'; 24 | 25 | echo "Create 3 contacts.\n"; 26 | 27 | $createResponse = $this->_mySforceConnection->create(array($sObject, $sObject2, $sObject3), 'Contact'); 28 | 29 | print_r($createResponse); 30 | 31 | // Merge $sObject2 into $sObject 32 | $mergeRequest = new stdclass(); 33 | $sObject->Id = $createResponse[0]->id; 34 | $mergeRequest->masterRecord = $sObject; 35 | $mergeRequest->comments = 'My merge comments'; 36 | 37 | echo "Merge second and third contacts into the first contact.\n"; 38 | 39 | $mergeRequest->recordToMergeIds = array($createResponse[1]->id, $createResponse[2]->id); 40 | 41 | $mergeResponse = $this->_mySforceConnection->merge($mergeRequest, 'Contact'); 42 | 43 | print_r($mergeResponse); 44 | } 45 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/UpsertTest.php: -------------------------------------------------------------------------------- 1 | 'George', 16 | 'LastName' => 'Smith', 17 | 'Phone' => '510-555-5555', 18 | 'BirthDate' => '1927-01-25', 19 | 'Email' => 'test01@test.com' 20 | ); 21 | 22 | $sObject = new SObject(); 23 | $sObject->fields = $createFields; 24 | $sObject->type = 'Contact'; 25 | 26 | $createResponse = $this->_mySforceConnection->create(array($sObject)); 27 | echo "Creating New Contact\r\n"; 28 | print_r($createResponse); 29 | 30 | $sObject->fields['FirstName'] = 'Bill'; 31 | $sObject->fields['LastName'] = 'Clinton'; 32 | $sObject->fields['Email'] = 'test01@test.com'; 33 | 34 | $upsertResponse = $this->_mySforceConnection->upsert('Email', array($sObject)); 35 | echo "Upserting Contact (existing)\r\n"; 36 | print_r($upsertResponse); 37 | 38 | $sObject->fields['FirstName'] = 'John'; 39 | $sObject->fields['LastName'] = 'Smith'; 40 | $sObject->fields['Email'] = 'test02@test.com'; 41 | 42 | echo "Upserting Contact (new)\n"; 43 | $upsertResponse = $this->_mySforceConnection->upsert('Email', array ($sObject)); 44 | print_r($upsertResponse); 45 | } 46 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/GetUpdatedTest.php: -------------------------------------------------------------------------------- 1 | type = 'Lead'; 13 | 14 | $fields = array ( 15 | 'Company' => 'XYZ Company', 16 | 'FirstName' => 'John', 17 | 'LastName' => 'Smith', 18 | 'LeadSource' => 'Other', 19 | 'NumberOfEmployees' => 1, 20 | 'Status' => 'Open' 21 | ); 22 | $obj1->fields = $fields; 23 | $createResponse = $this->_mySforceConnection->create(array($obj1)); 24 | echo "***** Creating Lead *****\n"; 25 | print_r($createResponse); 26 | 27 | $obj1->Id = $createResponse->id; 28 | $obj1->fields['LastName'] = 'Doe'; 29 | 30 | $updateResponse = $this->_mySforceConnection->update(array($obj1)); 31 | echo "***** Updating Lead *****\n"; 32 | print_r($updateResponse); 33 | 34 | echo "***** Wait 60 seconds *****\n"; 35 | sleep(60); 36 | 37 | $currentTime = mktime(); 38 | // assume that update occured within the last 5 mins. 39 | $startTime = $currentTime-(60*10); 40 | $endTime = $currentTime; 41 | 42 | echo "***** Get Updated Leads from the last 5 minutes *****\n"; 43 | $getUpdatedResponse = $this->_mySforceConnection->getUpdated('Lead', $startTime, $endTime); 44 | print_r($getUpdatedResponse); 45 | } 46 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/test/report/stylesheet.css: -------------------------------------------------------------------------------- 1 | 2 | 3 | body { 4 | font-family: verdana,arial,helvetica; 5 | color:#000000; 6 | font-size: 12px; 7 | } 8 | table tr td, table tr th { 9 | font-family: verdana,arial,helvetica; 10 | font-size: 12px; 11 | } 12 | table.details tr th{ 13 | font-family: verdana,arial,helvetica; 14 | font-weight: bold; 15 | text-align:left; 16 | background:#a6caf0; 17 | } 18 | table.details tr td{ 19 | background:#eeeee0; 20 | } 21 | 22 | p { 23 | line-height:1.5em; 24 | margin-top:0.5em; margin-bottom:1.0em; 25 | font-size: 12px; 26 | } 27 | h1 { 28 | margin: 0px 0px 5px; 29 | font-family: verdana,arial,helvetica; 30 | } 31 | h2 { 32 | margin-top: 1em; margin-bottom: 0.5em; 33 | font-family: verdana,arial,helvetica; 34 | } 35 | h3 { 36 | margin-bottom: 0.5em; 37 | font-family: verdana,arial,helvetica; 38 | } 39 | h4 { 40 | margin-bottom: 0.5em; 41 | font-family: verdana,arial,helvetica; 42 | } 43 | h5 { 44 | margin-bottom: 0.5em; 45 | font-family: verdana,arial,helvetica; 46 | } 47 | h6 { 48 | margin-bottom: 0.5em; 49 | font-family: verdana,arial,helvetica; 50 | } 51 | .Error { 52 | font-weight:bold; color:red; 53 | } 54 | .Failure { 55 | font-weight:bold; color:purple; 56 | } 57 | .small { 58 | font-size: 9px; 59 | } 60 | a { 61 | color: #003399; 62 | } 63 | a:hover { 64 | color: #888888; 65 | } 66 | 67 | -------------------------------------------------------------------------------- /docs/rest-api.md: -------------------------------------------------------------------------------- 1 | # REST API 2 | 3 | This plugin contains some REST API functionality, allowing other applications to run calls on it. We have included some documentation of each endpoint 4 | 5 | ## Pull endpoints 6 | 7 | ### Check for updated records 8 | 9 | - URL: `/wp-json/object-sync-for-salesforce/pull` 10 | - HTTP Method: GET 11 | 12 | Sending a GET request to this URL will cause the plugin to check for updated/deleted records, and if it finds any, it will process them according to the plugin's fieldmaps. This is basically a manual version of what the plugin does already on schedule. 13 | 14 | ### Pull a single record from Salesforce 15 | 16 | - URL: `/wp-json/object-sync-for-salesforce/pull` 17 | - HTTP Method: POST 18 | - Parameters required: `salesforce_id` and `salesforce_object_type` 19 | 20 | Sending a POST request to this URL with a valid Salesforce ID and an object type - Contact, for example - will cause the plugin to pull that object's data and process it according to the plugin's fieldmaps. 21 | 22 | ## Push endpoints 23 | 24 | ### Push a single record to Salesforce 25 | 26 | - URL: `/wp-json/object-sync-for-salesforce/push` 27 | - HTTP Method: POST 28 | - Parameters required: `wordpress_id` and `wordpress_object_type` 29 | 30 | Sending a POST request to this URL with a valid WordPress ID and an object type - user, for example - will cause the plugin to gather that object's data in WordPress, and process it according to the plugin's fieldmaps, and attempt to push it to Salesforce. 31 | 32 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/MergeTest.php: -------------------------------------------------------------------------------- 1 | type = 'Contact'; 13 | $fields = array ( 14 | 'LastName'=>'Tran', 15 | 'BirthDate'=> '1927-01-25', 16 | 'Phone' => '510-555-5555', 17 | ); 18 | $sObject->fields = $fields; 19 | 20 | $sObject2 = new SObject(); 21 | $sObject2->type = 'Contact'; 22 | $fields['LastName'] = 'Smith'; 23 | $fields['FirstName'] = 'Nick'; 24 | $sObject2->fields = $fields; 25 | 26 | $sObject3 = new SObject(); 27 | $sObject3->type = 'Contact'; 28 | $fields['Phone'] = '555-555-5555'; 29 | $sObject3->fields = $fields; 30 | 31 | echo "Create 3 contacts.\n"; 32 | $createResponse = $this->_mySforceConnection->create(array($sObject, $sObject2, $sObject3),'Lead'); 33 | 34 | print_r($createResponse); 35 | 36 | // Merge $sObject2 into $sObject 37 | $mergeRequest = new stdclass(); 38 | $sObject->Id = $createResponse[0]->id; 39 | $mergeRequest->masterRecord = $sObject; 40 | $mergeRequest->comments = 'My merge comments'; 41 | $mergeRequest->recordToMergeIds = array($createResponse[1]->id, $createResponse[2]->id); 42 | 43 | echo "Merge second and third contacts into the first contact.\n"; 44 | $mergeResponse = $this->_mySforceConnection->merge($mergeRequest); 45 | 46 | print_r($mergeResponse); 47 | } 48 | } -------------------------------------------------------------------------------- /docs/code/css/phpdocumentor-clean-icons/style.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'phpdocumentor-clean-icons'; 3 | src:url('fonts/phpdocumentor-clean-icons.eot'); 4 | src:url('fonts/phpdocumentor-clean-icons.eot?#iefix') format('embedded-opentype'), 5 | url('fonts/phpdocumentor-clean-icons.woff') format('woff'), 6 | url('fonts/phpdocumentor-clean-icons.ttf') format('truetype'), 7 | url('fonts/phpdocumentor-clean-icons.svg#phpdocumentor-clean-icons') format('svg'); 8 | font-weight: normal; 9 | font-style: normal; 10 | } 11 | 12 | /* Use the following CSS code if you want to use data attributes for inserting your icons */ 13 | [data-icon]:before { 14 | font-family: 'phpdocumentor-clean-icons'; 15 | content: attr(data-icon); 16 | speak: none; 17 | font-weight: normal; 18 | font-variant: normal; 19 | text-transform: none; 20 | line-height: 1; 21 | -webkit-font-smoothing: antialiased; 22 | } 23 | 24 | /* Use the following CSS code if you want to have a class per icon */ 25 | /* 26 | Instead of a list of all class selectors, 27 | you can use the generic selector below, but it's slower: 28 | [class*="icon-"] { 29 | */ 30 | .icon-trait, .icon-interface, .icon-class { 31 | font-family: 'phpdocumentor-clean-icons'; 32 | speak: none; 33 | font-style: normal; 34 | font-weight: normal; 35 | font-variant: normal; 36 | text-transform: none; 37 | line-height: 1; 38 | -webkit-font-smoothing: antialiased; 39 | } 40 | .icon-trait:before { 41 | content: "\e000"; 42 | } 43 | .icon-interface:before { 44 | content: "\e001"; 45 | } 46 | .icon-class:before { 47 | content: "\e002"; 48 | } 49 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/ResetPasswordTest.php: -------------------------------------------------------------------------------- 1 | Alias = 'Johny1'; 15 | $newUser->Email = 'test1@example.com'; 16 | $newUser->EmailEncodingKey = 'UTF-8'; 17 | $newUser->LanguageLocaleKey = 'en_US'; 18 | $newUser->LastName = 'Smith1'; 19 | $newUser->LocaleSidKey = 'en_US'; 20 | $newUser->ProfileId = '00et0000000qoV2AAI'; // standart user 21 | $newUser->TimeZoneSidKey = 'America/Los_Angeles'; 22 | $newUser->Username = 'johnysmith1@example.com'; 23 | $newUser->UserPermissionsCallCenterAutoLogin = 0; 24 | $newUser->UserPermissionsMarketingUser = 0; 25 | $newUser->UserPermissionsOfflineUser = 0; 26 | $newUser->CommunityNickname = 'johnyexamplecom1'; 27 | 28 | $createResponse = $this->_mySforceConnection->create(array($newUser), 'User'); 29 | 30 | echo "**** Creating the following:\r\n"; 31 | print_r($createResponse);*/ 32 | 33 | $new_password=$this->_mySforceConnection->resetPassword('005t0000000uonmAAA'); 34 | print_r($new_password); 35 | } 36 | } -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/classes/ActionScheduler_IntervalSchedule.php: -------------------------------------------------------------------------------- 1 | start = $start; 14 | $this->interval_in_seconds = (int)$interval; 15 | } 16 | 17 | /** 18 | * @param DateTime $after 19 | * 20 | * @return DateTime|null 21 | */ 22 | public function next( DateTime $after = NULL ) { 23 | $after = empty($after) ? as_get_datetime_object('@0') : clone $after; 24 | if ( $after > $this->start ) { 25 | $after->modify('+'.$this->interval_in_seconds.' seconds'); 26 | return $after; 27 | } 28 | return clone $this->start; 29 | } 30 | 31 | /** 32 | * @return bool 33 | */ 34 | public function is_recurring() { 35 | return true; 36 | } 37 | 38 | /** 39 | * @return int 40 | */ 41 | public function interval_in_seconds() { 42 | return $this->interval_in_seconds; 43 | } 44 | 45 | /** 46 | * For PHP 5.2 compat, since DateTime objects can't be serialized 47 | * @return array 48 | */ 49 | public function __sleep() { 50 | $this->start_timestamp = $this->start->getTimestamp(); 51 | return array( 52 | 'start_timestamp', 53 | 'interval_in_seconds' 54 | ); 55 | } 56 | 57 | public function __wakeup() { 58 | $this->start = as_get_datetime_object($this->start_timestamp); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/classes/ActionScheduler_Versions.php: -------------------------------------------------------------------------------- 1 | versions[$version_string]) ) { 16 | return FALSE; 17 | } 18 | $this->versions[$version_string] = $initialization_callback; 19 | return TRUE; 20 | } 21 | 22 | public function get_versions() { 23 | return $this->versions; 24 | } 25 | 26 | public function latest_version() { 27 | $keys = array_keys($this->versions); 28 | if ( empty($keys) ) { 29 | return false; 30 | } 31 | uasort( $keys, 'version_compare' ); 32 | return end($keys); 33 | } 34 | 35 | public function latest_version_callback() { 36 | $latest = $this->latest_version(); 37 | if ( empty($latest) || !isset($this->versions[$latest]) ) { 38 | return '__return_null'; 39 | } 40 | return $this->versions[$latest]; 41 | } 42 | 43 | /** 44 | * @return ActionScheduler_Versions 45 | * @codeCoverageIgnore 46 | */ 47 | public static function instance() { 48 | if ( empty(self::$instance) ) { 49 | self::$instance = new self(); 50 | } 51 | return self::$instance; 52 | } 53 | 54 | /** 55 | * @codeCoverageIgnore 56 | */ 57 | public static function initialize_latest_version() { 58 | $self = self::instance(); 59 | call_user_func($self->latest_version_callback()); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /docs/code/css/jquery.iviewer.css: -------------------------------------------------------------------------------- 1 | .viewer { 2 | -ms-touch-action: none; 3 | } 4 | 5 | .iviewer_common { 6 | position:absolute; 7 | bottom:10px; 8 | border: 1px solid #000; 9 | height: 28px; 10 | z-index: 5000; 11 | } 12 | 13 | .iviewer_cursor { 14 | cursor: url(../images/iviewer/hand.cur) 6 8, pointer; 15 | } 16 | 17 | .iviewer_drag_cursor { 18 | cursor: url(../images/iviewer/grab.cur) 6 8, pointer; 19 | } 20 | 21 | .iviewer_button { 22 | width: 28px; 23 | cursor: pointer; 24 | background-position: center center; 25 | background-repeat: no-repeat; 26 | } 27 | 28 | .iviewer_zoom_in { 29 | left: 20px; 30 | background: url(../images/iviewer/iviewer.zoom_in.png); 31 | } 32 | 33 | .iviewer_zoom_out { 34 | left: 55px; 35 | background: url(../images/iviewer/iviewer.zoom_out.png); 36 | } 37 | 38 | .iviewer_zoom_zero { 39 | left: 90px; 40 | background: url(../images/iviewer/iviewer.zoom_zero.png); 41 | } 42 | 43 | .iviewer_zoom_fit { 44 | left: 125px; 45 | background: url(../images/iviewer/iviewer.zoom_fit.png); 46 | } 47 | 48 | .iviewer_zoom_status { 49 | left: 160px; 50 | font: 1em/28px Sans; 51 | color: #000; 52 | background-color: #fff; 53 | text-align: center; 54 | width: 60px; 55 | } 56 | 57 | .iviewer_rotate_left { 58 | left: 227px; 59 | background: #fff url(../images/iviewer/iviewer.rotate_left.png) center center no-repeat; 60 | } 61 | 62 | .iviewer_rotate_right { 63 | left: 262px; 64 | background: #fff url(../images/iviewer/iviewer.rotate_right.png) center center no-repeat; 65 | } 66 | -------------------------------------------------------------------------------- /templates/admin/mapping-errors-edit.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 |
16 |
17 | 18 | 19 |
20 | 26 |
27 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/MetaDataCheckStatusTest.php: -------------------------------------------------------------------------------- 1 | _getMetaDataWSDL(), $this->_mylogin, $this->_mySforceConnection); 12 | 13 | $customObject = new SforceCustomObject(); 14 | $customObject->fullName = 'CustomObjFromPHP__c'; 15 | $customObject->deploymentStatus = DEPLOYMENT_STATUS_DEPLOYED; 16 | 17 | $customObject->setDescription("A description"); 18 | $customObject->setEnableActivities(true); 19 | $customObject->setEnableDivisions(false); 20 | $customObject->setEnableHistory(true); 21 | $customObject->setEnableReports(true); 22 | $customObject->setHousehold(false); 23 | $customObject->setLabel("My Custom Obj from PHP"); 24 | $customField = new SforceCustomField(); 25 | $customField->setFullName('MyCustomFieldb__c'); 26 | $customField->setDescription('Description of New Field'); 27 | $customField->setLabel('My Custom Field Label'); 28 | $customField->setType('Text'); 29 | 30 | $customObject->nameField = $customField; 31 | 32 | $customObject->pluralLabel = 'My Custom Objs from PHP'; 33 | $customObject->sharingModel = SHARING_MODEL_READWRITE; 34 | 35 | print "**** Create:\r\n"; 36 | $createResult = $myMetadataConnection->create($customObject); 37 | print_r($createResult); 38 | 39 | $ids = array($createResult->result->id); 40 | 41 | print_r($myMetadataConnection->checkStatus($ids)); 42 | } 43 | } -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/lib/cron-expression/CronExpression_MonthField.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class CronExpression_MonthField extends CronExpression_AbstractField 9 | { 10 | /** 11 | * {@inheritdoc} 12 | */ 13 | public function isSatisfiedBy(DateTime $date, $value) 14 | { 15 | // Convert text month values to integers 16 | $value = str_ireplace( 17 | array( 18 | 'JAN', 'FEB', 'MAR', 'APR', 'MAY', 'JUN', 19 | 'JUL', 'AUG', 'SEP', 'OCT', 'NOV', 'DEC' 20 | ), 21 | range(1, 12), 22 | $value 23 | ); 24 | 25 | return $this->isSatisfied($date->format('m'), $value); 26 | } 27 | 28 | /** 29 | * {@inheritdoc} 30 | */ 31 | public function increment(DateTime $date, $invert = false) 32 | { 33 | if ($invert) { 34 | // $date->modify('last day of previous month'); // remove for php 5.2 compat 35 | $date->modify('previous month'); 36 | $date->modify($date->format('Y-m-t')); 37 | $date->setTime(23, 59); 38 | } else { 39 | //$date->modify('first day of next month'); // remove for php 5.2 compat 40 | $date->modify('next month'); 41 | $date->modify($date->format('Y-m-01')); 42 | $date->setTime(0, 0); 43 | } 44 | 45 | return $this; 46 | } 47 | 48 | /** 49 | * {@inheritdoc} 50 | */ 51 | public function validate($value) 52 | { 53 | return (bool) preg_match('/[\*,\/\-0-9A-Z]+/', $value); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/MetaDataCreateTest.php: -------------------------------------------------------------------------------- 1 | _getMetaDataWSDL(), $this->_mylogin, $this->_mySforceConnection); 12 | 13 | $customObject = new SforceCustomObject(); 14 | $customObject->fullName = 'CustomObjFromPHP__c'; 15 | $customObject->deploymentStatus = DEPLOYMENT_STATUS_DEPLOYED; 16 | 17 | $customObject->setDescription("A description"); 18 | $customObject->setEnableActivities(true); 19 | $customObject->setEnableDivisions(false); 20 | $customObject->setEnableHistory(true); 21 | $customObject->setEnableReports(true); 22 | $customObject->setHousehold(false); 23 | $customObject->setLabel("My Custom Obj from PHP"); 24 | $customField = new SforceCustomField(); 25 | $customField->setFullName('MyCustomFieldb__c'); 26 | $customField->setDescription('Description of New Field'); 27 | $customField->setLabel('My Custom Field Label'); 28 | $customField->setType('Text'); 29 | 30 | $customObject->nameField = $customField; 31 | 32 | $customObject->pluralLabel = 'My Custom Objs from PHP'; 33 | $customObject->sharingModel = SHARING_MODEL_READWRITE; 34 | 35 | print_r($myMetadataConnection->create($customObject)); 36 | } 37 | 38 | /** 39 | * @param string $rs 40 | * @return void 41 | * @throws Lib_Exception_InvalidResponse 42 | */ 43 | protected function _validate($rs) 44 | { 45 | if(strpos($rs, 'Error') !== FALSE) { 46 | throw new Lib_Exception_InvalidResponse(); 47 | } 48 | } 49 | } -------------------------------------------------------------------------------- /docs/extending-logging.md: -------------------------------------------------------------------------------- 1 | # Extending logging 2 | 3 | By default, this plugin creates Log post type entries that are only visible to users with the `configure_salesforce` capability (there is no public facing view for this content type; it is always only visible within the admin section). Use the `object_sync_for_salesforce_logging_post_type_args` hook to modify this, and any other, `post_type` arguments for the Log post type. 4 | 5 | WordPress provides documentation for the arguments in the [developer handbook](https://developer.wordpress.org/reference/functions/register_post_type/). The possible capabilities, which you'll need if you want to allow other users to view the logs, are documented separately [in the handbook](https://developer.wordpress.org/reference/functions/get_post_type_capabilities/). 6 | 7 | This plugin also allows you to extend who has the `configure_salesforce` capability. This is documented in the [extending roles documentation](./extending-roles.md). 8 | 9 | ## Code example 10 | 11 | This example would give editor users the capability to see these logs as well. 12 | 13 | ```php 14 | add_filter( 'object_sync_for_salesforce_logging_post_type_args', 'set_log_visibility', 10, 1 ); 15 | function set_log_visibility( $log_args ) { 16 | $log_args['capabilities'] = array( 17 | 'edit_post' => 'edit_published_posts', 18 | 'read_post' => 'edit_published_posts', 19 | 'delete_post' => 'edit_published_posts', 20 | 'edit_posts' => 'edit_published_posts', 21 | 'edit_others_posts' => 'edit_published_posts', 22 | 'delete_posts' => 'edit_published_posts', 23 | 'publish_posts' => 'edit_published_posts', 24 | 'read_private_posts' => 'edit_published_posts', 25 | ); 26 | return $log_args; 27 | } 28 | ``` 29 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "object-sync-for-salesforce", 3 | "title": "Object Sync for Salesforce", 4 | "description": "Object Sync for Salesforce is a WordPress plugin that maps and syncs data between Salesforce objects and WordPress objects.", 5 | "version": "1.9.3", 6 | "main": "Gulpfile.js", 7 | "repository": { 8 | "type": "git", 9 | "url": "git+https://github.com/MinnPost/object-sync-for-salesforce.git" 10 | }, 11 | "author": "MinnPost", 12 | "license": "GPL-2.0", 13 | "bugs": { 14 | "url": "https://github.com/MinnPost/object-sync-for-salesforce/issues" 15 | }, 16 | "homepage": "https://github.com/MinnPost/object-sync-for-salesforce#readme", 17 | "devDependencies": { 18 | "@babel/core": "^7.9.0", 19 | "@babel/preset-env": "^7.9.5", 20 | "autoprefixer": "^9.7.6", 21 | "browser-sync": "^2.26.7", 22 | "css-mqpacker": "^7.0.0", 23 | "cssnano": "^4.1.10", 24 | "eslint-config-wordpress": "^2.0.0", 25 | "fs": "0.0.2", 26 | "gulp": "^4.0.2", 27 | "gulp-babel": "^8.0.0", 28 | "gulp-concat": "^2.6.1", 29 | "gulp-eslint": "^6.0.0", 30 | "gulp-iife": "^0.4.0", 31 | "gulp-imagemin": "^7.1.0", 32 | "gulp-plumber": "^1.2.1", 33 | "gulp-postcss": "^8.0.0", 34 | "gulp-rename": "^2.0.0", 35 | "gulp-sass": "^4.0.2", 36 | "gulp-sass-glob": "^1.1.0", 37 | "gulp-sort": "~2", 38 | "gulp-sourcemaps": "^2.6.5", 39 | "gulp-stylelint": "^13.0.0", 40 | "gulp-uglify": "^3.0.2", 41 | "gulp-wp-pot": "^2.4.1", 42 | "npm-check-updates": "^4.1.2", 43 | "stylelint": "^13.3.2", 44 | "stylelint-config-wordpress": "^16.0.0" 45 | }, 46 | "browserslist": [ 47 | "last 2 version", 48 | "> 1%", 49 | "maintained node versions", 50 | "not dead" 51 | ] 52 | } 53 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/UpsertTest.php: -------------------------------------------------------------------------------- 1 | _mySforceConnection->query($query)); 20 | /**/ 21 | 22 | $objectType = 'Contact'; 23 | 24 | $createFields = array ( 25 | ); 26 | 27 | $sObject = new stdClass(); 28 | $sObject->FirstName = 'George'; 29 | $sObject->LastName = 'Smith'; 30 | $sObject->Phone = '510-555-5555'; 31 | $sObject->BirthDate = '1927-01-25'; 32 | $sObject->Email = 'test@test.com'; 33 | 34 | $createResponse = $this->_mySforceConnection->create(array($sObject), $objectType); 35 | echo "Creating New Contact\r\n"; 36 | print_r($createResponse); 37 | 38 | $sObject->FirstName = 'Bill'; 39 | $sObject->LastName = 'Clinton'; 40 | 41 | $upsertResponse = $this->_mySforceConnection->upsert('Email', array ($sObject), $objectType); 42 | echo "Upserting Contact (existing)\r\n"; 43 | print_r($upsertResponse); 44 | 45 | $sObject->FirstName = 'John'; 46 | $sObject->LastName = 'Smith'; 47 | $sObject->Email = 'testNew@test.com'; 48 | 49 | echo "Upserting Contact (new)\n"; 50 | $upsertResponse = $this->_mySforceConnection->upsert('Email', array ($sObject), $objectType); 51 | print_r($upsertResponse); 52 | } 53 | } -------------------------------------------------------------------------------- /classes/admin-notice.php: -------------------------------------------------------------------------------- 1 | condition = $condition; 35 | $this->message = $message; 36 | $this->dismissible = $dismissible; 37 | $this->type = $type; 38 | $this->template = $template; 39 | 40 | add_action( 'admin_notices', array( $this, 'render' ) ); 41 | 42 | } 43 | 44 | /** 45 | * Render an admin notice 46 | * 47 | */ 48 | public function render() { 49 | 50 | // class for the notice to use 51 | $class = ''; 52 | if ( '' !== $this->type ) { 53 | $class = ' notice-' . $this->type; 54 | } 55 | 56 | $dismissible = ''; 57 | if ( true === $this->dismissible ) { 58 | $dismissible = ' is-dismissible'; 59 | } 60 | 61 | // template for notice has a default 62 | if ( '' === $this->template ) { 63 | $template = plugin_dir_path( __FILE__ ) . '/../templates/admin/notice.php'; 64 | } else { 65 | $template = $this->template; 66 | } 67 | 68 | $condition = $this->condition; 69 | $message = $this->message; 70 | 71 | require_once( $template ); 72 | 73 | } 74 | 75 | } 76 | -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/classes/ActionScheduler_Action.php: -------------------------------------------------------------------------------- 1 | set_hook($hook); 16 | $this->set_schedule($schedule); 17 | $this->set_args($args); 18 | $this->set_group($group); 19 | } 20 | 21 | public function execute() { 22 | return do_action_ref_array($this->get_hook(), $this->get_args()); 23 | } 24 | 25 | /** 26 | * @param string $hook 27 | */ 28 | protected function set_hook( $hook ) { 29 | $this->hook = $hook; 30 | } 31 | 32 | public function get_hook() { 33 | return $this->hook; 34 | } 35 | 36 | protected function set_schedule( ActionScheduler_Schedule $schedule ) { 37 | $this->schedule = $schedule; 38 | } 39 | 40 | /** 41 | * @return ActionScheduler_Schedule 42 | */ 43 | public function get_schedule() { 44 | return $this->schedule; 45 | } 46 | 47 | protected function set_args( array $args ) { 48 | $this->args = $args; 49 | } 50 | 51 | public function get_args() { 52 | return $this->args; 53 | } 54 | 55 | /** 56 | * @param string $group 57 | */ 58 | protected function set_group( $group ) { 59 | $this->group = $group; 60 | } 61 | 62 | /** 63 | * @return string 64 | */ 65 | public function get_group() { 66 | return $this->group; 67 | } 68 | 69 | /** 70 | * @return bool If the action has been finished 71 | */ 72 | public function is_finished() { 73 | return FALSE; 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/soapclient/ProxySettings.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/code/files/classes/admin-notice.php.txt: -------------------------------------------------------------------------------- 1 | condition = $condition; 35 | $this->message = $message; 36 | $this->dismissible = $dismissible; 37 | $this->type = $type; 38 | $this->template = $template; 39 | 40 | add_action( 'admin_notices', array( $this, 'render' ) ); 41 | 42 | } 43 | 44 | /** 45 | * Render an admin notice 46 | * 47 | */ 48 | public function render() { 49 | 50 | // class for the notice to use 51 | $class = ''; 52 | if ( '' !== $this->type ) { 53 | $class = ' notice-' . $this->type; 54 | } 55 | 56 | $dismissible = ''; 57 | if ( true === $this->dismissible ) { 58 | $dismissible = ' is-dismissible'; 59 | } 60 | 61 | // template for notice has a default 62 | if ( '' === $this->template ) { 63 | $template = plugin_dir_path( __FILE__ ) . '/../templates/admin/notice.php'; 64 | } else { 65 | $template = $this->template; 66 | } 67 | 68 | $condition = $this->condition; 69 | $message = $this->message; 70 | 71 | require_once( $template ); 72 | 73 | } 74 | 75 | } 76 | 77 | -------------------------------------------------------------------------------- /docs/import-export.md: -------------------------------------------------------------------------------- 1 | # Import & Export 2 | 3 | Some of the data used by this plugin - namely, Fieldmaps, Object Maps, and Plugin Settings - can be imported (from a .json file) and exported (to a .json file). 4 | 5 | While this feature is mostly intended for developers at this time, non-developers will possibly find it useful, for example to back up plugin data. 6 | 7 | You can use this feature from the Import & Export tab in the plugin's settings. 8 | 9 | ## Importing 10 | 11 | When importing, you need a .json file that has been created by this plugin's export feature, or by hand to match its format. 12 | 13 | Once you have one, any data that you can export (defined below) can also be imported. If you check the Overwrite existing data checkbox, any matching data will be overwritten. 14 | 15 | Using this feature should not be risky to your WordPress install in general, but you should always back up your database before doing something like this. Especially if any part of this plugin is already working, as this could be affected by the import. 16 | 17 | If you intend to do any hand coding of JSON for importing, you should export the JSON first, with as much configuration as possible, so you can see how it is formatted. Much of the data that gets stored in the JSON is autogenerated based on responses from the Salesforce API, while other parts are stored as you go through the process of setting up the plugin. 18 | 19 | ## Exporting 20 | 21 | When exporting, you can include any or all of the following data: 22 | 23 | - Fieldmaps: this will include all of the data that matches a WordPress object to a Salesforce object. 24 | - Object Maps: this will include all of the individual maps between WordPress and Salesforce data records. 25 | - Plugin Settings: this is the plugin's settings. You probably don't want to make this public, since it may contain Salesforce API keys. 26 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/license: -------------------------------------------------------------------------------- 1 | This project is licensed under the 'BSD 3-Clause' license [1], also known as 2 | the 'Modified BSD' license [2]. 3 | 4 | [1] http://www.opensource.org/licenses/BSD-3-Clause 5 | [2] http://www.gnu.org/licenses/license-list.html#ModifiedBSD 6 | 7 | Copyright (c) 2010, Salesforce.com 8 | All rights reserved. 9 | 10 | Redistribution and use in source and binary forms, with or without 11 | modification, are permitted provided that the following conditions are met: 12 | 13 | * Redistributions of source code must retain the above copyright notice, this 14 | list of conditions and the following disclaimer. 15 | * Redistributions in binary form must reproduce the above copyright notice, 16 | this list of conditions and the following disclaimer in the documentation 17 | and/or other materials provided with the distribution. 18 | * Neither the name of Salesforce.com nor the names of its contributors may be 19 | used to endorse or promote products derived from this software without 20 | specific prior written permission. 21 | 22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 23 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 24 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 25 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 26 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 28 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 29 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 30 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/ProcessSubmitRequestTest.php: -------------------------------------------------------------------------------- 1 | 'John', 17 | 'LastName' => 'Smith', 18 | 'Phone' => '510-555-5555', 19 | 'BirthDate' => '1950-01-01' 20 | ); 21 | 22 | $sObject = new SObject(); 23 | $sObject->fields = $fields; 24 | $sObject->type = 'Contact'; 25 | 26 | $sObject2 = new SObject(); 27 | $sObject2->fields = $fields; 28 | $sObject2->type = 'Contact'; 29 | 30 | $createResponse = $this->_mySforceConnection->create(array($sObject, $sObject2)); 31 | 32 | echo "**** Creating the following:\r\n"; 33 | print_r($createResponse); 34 | 35 | $userInfoResponse = $this->_mySforceConnection->getUserInfo(); 36 | echo "***** Get User Info*****\n"; 37 | print_r($userInfoResponse); 38 | 39 | $processSubmitRequest1 = new ProcessSubmitRequest(); 40 | $processSubmitRequest1->objectId = $createResponse['0']->id; 41 | $processSubmitRequest1->comments = "Please approve this request."; 42 | $processSubmitRequest1->nextApproverIds = array($userInfoResponse->userId); 43 | 44 | $processSubmitRequest2 = new ProcessSubmitRequest(); 45 | $processSubmitRequest2->objectId = $createResponse['1']->id; 46 | $processSubmitRequest2->comments = "Please approve this request."; 47 | $processSubmitRequest2->nextApproverIds = array($userInfoResponse->userId); 48 | 49 | $processSubmitRequestResponse = $this->_mySforceConnection->processSubmitRequest( 50 | array($processSubmitRequest1, $processSubmitRequest2) 51 | ); 52 | print_r($processSubmitRequestResponse); 53 | } 54 | } -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/test/report/overview-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Unit Test Results: Summary 5 | 6 | 7 | 8 |

Unit Test Results

9 | 10 | 11 | 12 |
Designed for use with PHPUnit2 and Phing.
13 |
14 |

Summary

15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 |
TestsFailuresErrorsSuccess rateTime
2300100.00%23.331
31 |
32 | Note: failures are anticipated and checked for with assertions while errors are unanticipated. 33 |
34 |

Packages

35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 |
NameTestsErrorsFailuresTime(s)
SalesforceTest230023.331
51 | 52 | 53 | 54 |

Report generated at 2007-11-07T11:52:15-08:00
55 | 56 | 57 | -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/action-scheduler.php: -------------------------------------------------------------------------------- 1 | . 25 | * 26 | */ 27 | 28 | if ( ! function_exists( 'action_scheduler_register_2_dot_2_dot_5' ) ) { 29 | 30 | if ( ! class_exists( 'ActionScheduler_Versions' ) ) { 31 | require_once( 'classes/ActionScheduler_Versions.php' ); 32 | add_action( 'plugins_loaded', array( 'ActionScheduler_Versions', 'initialize_latest_version' ), 1, 0 ); 33 | } 34 | 35 | add_action( 'plugins_loaded', 'action_scheduler_register_2_dot_2_dot_5', 0, 0 ); 36 | 37 | function action_scheduler_register_2_dot_2_dot_5() { 38 | $versions = ActionScheduler_Versions::instance(); 39 | $versions->register( '2.2.5', 'action_scheduler_initialize_2_dot_2_dot_5' ); 40 | } 41 | 42 | function action_scheduler_initialize_2_dot_2_dot_5() { 43 | require_once( 'classes/ActionScheduler.php' ); 44 | ActionScheduler::init( __FILE__ ); 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/classes/ActionScheduler_DateTime.php: -------------------------------------------------------------------------------- 1 | format( 'U' ); 29 | } 30 | 31 | /** 32 | * Set the UTC offset. 33 | * 34 | * This represents a fixed offset instead of a timezone setting. 35 | * 36 | * @param $offset 37 | */ 38 | public function setUtcOffset( $offset ) { 39 | $this->utcOffset = intval( $offset ); 40 | } 41 | 42 | /** 43 | * Returns the timezone offset. 44 | * 45 | * @return int 46 | * @link http://php.net/manual/en/datetime.getoffset.php 47 | */ 48 | public function getOffset() { 49 | return $this->utcOffset ? $this->utcOffset : parent::getOffset(); 50 | } 51 | 52 | /** 53 | * Set the TimeZone associated with the DateTime 54 | * 55 | * @param DateTimeZone $timezone 56 | * 57 | * @return static 58 | * @link http://php.net/manual/en/datetime.settimezone.php 59 | */ 60 | public function setTimezone( $timezone ) { 61 | $this->utcOffset = 0; 62 | parent::setTimezone( $timezone ); 63 | 64 | return $this; 65 | } 66 | 67 | /** 68 | * Get the timestamp with the WordPress timezone offset added or subtracted. 69 | * 70 | * @since 3.0.0 71 | * @return int 72 | */ 73 | public function getOffsetTimestamp() { 74 | return $this->getTimestamp() + $this->getOffset(); 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/classes/ActionScheduler_wpPostStore_PostStatusRegistrar.php: -------------------------------------------------------------------------------- 1 | post_status_args(), $this->post_status_running_labels() ) ); 10 | register_post_status( ActionScheduler_Store::STATUS_FAILED, array_merge( $this->post_status_args(), $this->post_status_failed_labels() ) ); 11 | } 12 | 13 | /** 14 | * Build the args array for the post type definition 15 | * 16 | * @return array 17 | */ 18 | protected function post_status_args() { 19 | $args = array( 20 | 'public' => false, 21 | 'exclude_from_search' => false, 22 | 'show_in_admin_all_list' => true, 23 | 'show_in_admin_status_list' => true, 24 | ); 25 | 26 | return apply_filters( 'action_scheduler_post_status_args', $args ); 27 | } 28 | 29 | /** 30 | * Build the args array for the post type definition 31 | * 32 | * @return array 33 | */ 34 | protected function post_status_failed_labels() { 35 | $labels = array( 36 | 'label' => _x( 'Failed', 'post' ), 37 | 'label_count' => _n_noop( 'Failed (%s)', 'Failed (%s)' ), 38 | ); 39 | 40 | return apply_filters( 'action_scheduler_post_status_failed_labels', $labels ); 41 | } 42 | 43 | /** 44 | * Build the args array for the post type definition 45 | * 46 | * @return array 47 | */ 48 | protected function post_status_running_labels() { 49 | $labels = array( 50 | 'label' => _x( 'In-Progress', 'post' ), 51 | 'label_count' => _n_noop( 'In-Progress (%s)', 'In-Progress (%s)' ), 52 | ); 53 | 54 | return apply_filters( 'action_scheduler_post_status_running_labels', $labels ); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/samples/userAuth.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/apidocs/classtrees_SalesforceTest.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Class Trees for Package SalesforceTest 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 19 | 20 | 21 |
SalesforceTest
15 | [ class tree: SalesforceTest ] 16 | [ index: SalesforceTest ] 17 | [ all elements ] 18 |
22 | 23 | 24 | 25 | 31 | 46 | 47 |
32 |
33 | 34 |

Class Trees for Package SalesforceTest

35 |
36 |
Root class PHPUnit_Framework_TestCase

37 | 39 | 40 |
41 |
42 | Documentation generated on Fri, 15 Feb 2008 14:42:29 -0800 by phpDocumentor 1.3.1 43 |
44 |
45 |
48 | 49 | 50 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "minnpost/object-sync-for-salesforce", 3 | "description": "WordPress plugin that implements mapping and syncing between Salesforce objects and WordPress objects", 4 | "type": "wordpress-plugin", 5 | "license": "GPL-2.0", 6 | "minimum-stability": "dev", 7 | "authors": [ 8 | { 9 | "name": "MinnPost", 10 | "email": "tech@minnpost.com" 11 | } 12 | ], 13 | "autoload": { 14 | "files": ["vendor/prospress/action-scheduler/action-scheduler.php"], 15 | "classmap": ["vendor/pippinsplugins/wp-logging/"] 16 | }, 17 | "config": { 18 | "platform": { 19 | "php": "7.3" 20 | } 21 | }, 22 | "repositories": [ 23 | { 24 | "url": "https://github.com/pippinsplugins/wp-logging.git", 25 | "type": "git" 26 | }, 27 | { 28 | "url": "https://github.com/prospress/action-scheduler.git", 29 | "type": "git" 30 | } 31 | ], 32 | "require": { 33 | "php": ">=5.6|>=7.0", 34 | "pippinsplugins/wp-logging": "dev-master", 35 | "developerforce/force.com-toolkit-for-php": "^1.0@dev", 36 | "prospress/action-scheduler": "^2.2.5" 37 | }, 38 | "require-dev": { 39 | "phpunit/phpunit": "7.5.15", 40 | "johnpbloch/wordpress": "dev-master" 41 | }, 42 | "scripts": { 43 | "test": [ 44 | "phpunit" 45 | ], 46 | "phpcs": [ 47 | "phpcs -s -p" 48 | ], 49 | "phpcs-pre-commit": [ 50 | "phpcs -s -p -n" 51 | ], 52 | "phpcbf": [ 53 | "phpcbf -p" 54 | ] 55 | }, 56 | "extra": { 57 | "scripts-description": { 58 | "test": "Run unit tests", 59 | "phpcs": "Analyze code against the WordPress coding standards with PHP_CodeSniffer", 60 | "phpcbf": "Fix coding standards warnings/errors automatically with PHP Code Beautifier" 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/soapclient/SforceProcessRequest.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/lib/cron-expression/CronExpression_FieldFactory.php: -------------------------------------------------------------------------------- 1 | 7 | * @link http://en.wikipedia.org/wiki/Cron 8 | */ 9 | class CronExpression_FieldFactory 10 | { 11 | /** 12 | * @var array Cache of instantiated fields 13 | */ 14 | private $fields = array(); 15 | 16 | /** 17 | * Get an instance of a field object for a cron expression position 18 | * 19 | * @param int $position CRON expression position value to retrieve 20 | * 21 | * @return CronExpression_FieldInterface 22 | * @throws InvalidArgumentException if a position is not valid 23 | */ 24 | public function getField($position) 25 | { 26 | if (!isset($this->fields[$position])) { 27 | switch ($position) { 28 | case 0: 29 | $this->fields[$position] = new CronExpression_MinutesField(); 30 | break; 31 | case 1: 32 | $this->fields[$position] = new CronExpression_HoursField(); 33 | break; 34 | case 2: 35 | $this->fields[$position] = new CronExpression_DayOfMonthField(); 36 | break; 37 | case 3: 38 | $this->fields[$position] = new CronExpression_MonthField(); 39 | break; 40 | case 4: 41 | $this->fields[$position] = new CronExpression_DayOfWeekField(); 42 | break; 43 | case 5: 44 | $this->fields[$position] = new CronExpression_YearField(); 45 | break; 46 | default: 47 | throw new InvalidArgumentException( 48 | $position . ' is not a valid position' 49 | ); 50 | } 51 | } 52 | 53 | return $this->fields[$position]; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/classes/ActionScheduler_wpPostStore_PostTypeRegistrar.php: -------------------------------------------------------------------------------- 1 | post_type_args() ); 10 | } 11 | 12 | /** 13 | * Build the args array for the post type definition 14 | * 15 | * @return array 16 | */ 17 | protected function post_type_args() { 18 | $args = array( 19 | 'label' => __( 'Scheduled Actions', 'action-scheduler' ), 20 | 'description' => __( 'Scheduled actions are hooks triggered on a cetain date and time.', 'action-scheduler' ), 21 | 'public' => false, 22 | 'map_meta_cap' => true, 23 | 'hierarchical' => false, 24 | 'supports' => array('title', 'editor','comments'), 25 | 'rewrite' => false, 26 | 'query_var' => false, 27 | 'can_export' => true, 28 | 'ep_mask' => EP_NONE, 29 | 'labels' => array( 30 | 'name' => __( 'Scheduled Actions', 'action-scheduler' ), 31 | 'singular_name' => __( 'Scheduled Action', 'action-scheduler' ), 32 | 'menu_name' => _x( 'Scheduled Actions', 'Admin menu name', 'action-scheduler' ), 33 | 'add_new' => __( 'Add', 'action-scheduler' ), 34 | 'add_new_item' => __( 'Add New Scheduled Action', 'action-scheduler' ), 35 | 'edit' => __( 'Edit', 'action-scheduler' ), 36 | 'edit_item' => __( 'Edit Scheduled Action', 'action-scheduler' ), 37 | 'new_item' => __( 'New Scheduled Action', 'action-scheduler' ), 38 | 'view' => __( 'View Action', 'action-scheduler' ), 39 | 'view_item' => __( 'View Action', 'action-scheduler' ), 40 | 'search_items' => __( 'Search Scheduled Actions', 'action-scheduler' ), 41 | 'not_found' => __( 'No actions found', 'action-scheduler' ), 42 | 'not_found_in_trash' => __( 'No actions found in trash', 'action-scheduler' ), 43 | ), 44 | ); 45 | 46 | $args = apply_filters('action_scheduler_post_type_args', $args); 47 | return $args; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /docs/logging.md: -------------------------------------------------------------------------------- 1 | # Logging 2 | 3 | The plugin uses, by extending, the [WP Logging Class](https://github.com/pippinsplugins/WP-Logging) to log plugin-specific events. The main class is stored in the /vendor/wp-logging folder, which we tie into this plugin with composer. 4 | 5 | We use the default settings for this class when possible. One place we override them is the capability to see log posts. All admin users can see the Logs content type in their admin view. 6 | 7 | Our extension to this class does a few things: 8 | 9 | 1. Allow all users who can configure this plugin to see the Logs content type in their admin view by default (there is a [developer hook](./extending-logging.md) to customize this). 10 | 2. Force a type of 'salesforce' on all logs this plugin creates. 11 | 3. Get logging-related options configured by the `admin` class. 12 | 4. Setup new log entries based on the plugin's settings, including user-defined. 13 | 5. Retrieve log entries related to this plugin. 14 | 15 | ## Settings 16 | 17 | Use the Log Settings tab to enable logs, and also to configure what gets logged by the plugin. 18 | 19 | ![WordPress Log Settings screen](./assets/img/screenshots/06-wordpress-log-settings.png) 20 | 21 | If you choose to enable logging, you'll see a Logs custom content type added to WordPress. There, you'll be able to see the log entries created based on your settings. 22 | 23 | ### The Log Content Type 24 | 25 | ![WordPress Log Content Type](./assets/img/screenshots/08-wordpress-log-content-type.png) 26 | 27 | ### Back in the Log Settings screen 28 | 29 | If you do enable logging, you'll need to also indicate, at minimum: 30 | 31 | 1. What statuses to log 32 | 2. What triggers to log 33 | 34 | We recommend that you allow WordPress to automatically delete old log entries. If you want to do that, you'll have to enable that option, and also fill out the settings for how often the plugin should delete and how often it should check. 35 | 36 | These settings together mean that the plugin will check at intervals, and when it finds log entries that meet its criteria, it will delete them. 37 | -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/classes/ActionScheduler_LogEntry.php: -------------------------------------------------------------------------------- 1 | comment_type 35 | * to ActionScheduler_LogEntry::__construct(), goodness knows why, and the Follow-up Emails plugin 36 | * hard-codes loading its own version of ActionScheduler_wpCommentLogger with that out-dated method, 37 | * goodness knows why, so we need to guard against that here instead of using a DateTime type declaration 38 | * for the constructor's 3rd param of $date and causing a fatal error with older versions of FUE. 39 | */ 40 | if ( null !== $date && ! is_a( $date, 'DateTime' ) ) { 41 | _doing_it_wrong( __METHOD__, 'The third parameter must be a valid DateTime instance, or null.', '2.0.0' ); 42 | $date = null; 43 | } 44 | 45 | $this->action_id = $action_id; 46 | $this->message = $message; 47 | $this->date = $date ? $date : new Datetime; 48 | } 49 | 50 | /** 51 | * Returns the date when this log entry was created 52 | * 53 | * @return Datetime 54 | */ 55 | public function get_date() { 56 | return $this->date; 57 | } 58 | 59 | public function get_action_id() { 60 | return $this->action_id; 61 | } 62 | 63 | public function get_message() { 64 | return $this->message; 65 | } 66 | } 67 | 68 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # Travis CI Configuration File 2 | sudo: false 3 | dist: trusty 4 | language: php 5 | cache: 6 | apt: true 7 | directories: 8 | - $HOME/.composer/cache 9 | - node_modules 10 | - vendor 11 | env: 12 | global: 13 | - WP_VERSION=latest WP_MULTISITE=0 14 | 15 | # Test main supported versions of PHP against latest WP. 16 | php: 17 | - 5.6 18 | - 7.0 19 | - 7.1 20 | - 7.2 21 | - 7.3 22 | 23 | notifications: 24 | email: 25 | on_success: never 26 | on_failure: change 27 | 28 | branches: 29 | only: 30 | - master 31 | 32 | # PHP/WP versions 33 | matrix: 34 | fast_finish: true 35 | include: 36 | - name: "Coding standard check" 37 | php: 7.2 38 | env: WP_VERSION=latest WP_MULTISITE=0 RUN_PHPCS=1 39 | - name: "Unit tests code coverage" 40 | php: 7.3 41 | env: WP_VERSION=latest WP_MULTISITE=0 RUN_CODE_COVERAGE=1 42 | - name: "Object Sync for Salesforce unit tests using WordPress nightly" 43 | php: 7.3 44 | env: WP_VERSION=nightly WP_MULTISITE=0 45 | - php: 7.4snapshot 46 | env: WP_VERSION=nightly WP_MULTISITE=0 47 | allow_failures: 48 | - php: 7.3 49 | env: WP_VERSION=latest WP_MULTISITE=0 RUN_CODE_COVERAGE=1 50 | - php: 7.4snapshot 51 | env: WP_VERSION=nightly WP_MULTISITE=0 52 | 53 | before_script: 54 | - export PATH="$HOME/.composer/vendor/bin:$PATH" 55 | - export WP_TESTS_DIR=/tmp/wordpress/tests/phpunit 56 | - export WP_CORE_DIR=/tmp/wordpress/ 57 | - | 58 | # Remove Xdebug for a huge performance increase: 59 | if [ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]; then 60 | phpenv config-rm xdebug.ini 61 | else 62 | echo "xdebug.ini does not exist" 63 | fi 64 | - composer install --no-dev 65 | - | 66 | # Install WP Test suite, install PHPUnit globally: 67 | if [[ ! -z "$WP_VERSION" ]]; then 68 | bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION 69 | composer global require "phpunit/phpunit=5.7.*|7.5.*" 70 | fi 71 | - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16" 72 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Partner/DescribeDataCategoryGroupStructuresTest.php: -------------------------------------------------------------------------------- 1 | sobject = new SoapVar('Question', XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); 22 | $pair->dataCategoryGroupName = new SoapVar('Products', XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); 23 | 24 | $pairs[] = new SoapVar($pair, SOAP_ENC_OBJECT, 'DataCategoryGroupSobjectTypePair', SforcePartnerClient::PARTNER_NAMESPACE); 25 | $response = $this->_mySforceConnection->describeDataCategoryGroupStructures($pairs, true); 26 | 27 | echo "***** ".$this->getTestName()." Get information only about top categories *****\n"; 28 | print_r($response); 29 | 30 | /* 31 | Get info about two categories 32 | */ 33 | $pairs = array(); 34 | 35 | // First category 36 | $pair = new stdClass; 37 | $pair->sobject = new SoapVar('Question', XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); 38 | $pair->dataCategoryGroupName = new SoapVar('Products', XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); 39 | 40 | // Second category 41 | $pair = new stdClass; 42 | $pair->sobject = new SoapVar('Question', XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); 43 | $pair->dataCategoryGroupName = new SoapVar('Products', XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); 44 | 45 | $pairs[] = new SoapVar($pair, SOAP_ENC_OBJECT, 'DataCategoryGroupSobjectTypePair', SforcePartnerClient::PARTNER_NAMESPACE); 46 | $response = $this->_mySforceConnection->describeDataCategoryGroupStructures($pairs, false); 47 | 48 | echo "\n\n***** ".$this->getTestName()." Get information about two categories *****\n"; 49 | print_r($response); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/unit_test/Lib/Test/Enterprise/DescribeDataCategoryGroupStructuresTest.php: -------------------------------------------------------------------------------- 1 | sobject = new SoapVar('Question', XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); 22 | $pair->dataCategoryGroupName = new SoapVar('Products', XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); 23 | 24 | $pairs[] = new SoapVar($pair, SOAP_ENC_OBJECT, 'DataCategoryGroupSobjectTypePair', SforcePartnerClient::PARTNER_NAMESPACE); 25 | $response = $this->_mySforceConnection->describeDataCategoryGroupStructures($pairs, true); 26 | 27 | echo "***** ".$this->getTestName()." Get information only about top categories *****\n"; 28 | print_r($response); 29 | 30 | /* 31 | Get info about two categories 32 | */ 33 | $pairs = array(); 34 | 35 | // First category 36 | $pair = new stdClass; 37 | $pair->sobject = new SoapVar('Question', XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); 38 | $pair->dataCategoryGroupName = new SoapVar('Products', XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); 39 | 40 | // Second category 41 | $pair = new stdClass; 42 | $pair->sobject = new SoapVar('Question', XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); 43 | $pair->dataCategoryGroupName = new SoapVar('Products', XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); 44 | 45 | $pairs[] = new SoapVar($pair, SOAP_ENC_OBJECT, 'DataCategoryGroupSobjectTypePair', SforcePartnerClient::PARTNER_NAMESPACE); 46 | $response = $this->_mySforceConnection->describeDataCategoryGroupStructures($pairs, false); 47 | 48 | echo "\n\n***** ".$this->getTestName()." Get information about two categories *****\n"; 49 | print_r($response); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /vendor/prospress/action-scheduler/classes/ActionScheduler_FatalErrorMonitor.php: -------------------------------------------------------------------------------- 1 | store = $store; 15 | } 16 | 17 | public function attach( ActionScheduler_ActionClaim $claim ) { 18 | $this->claim = $claim; 19 | add_action( 'shutdown', array( $this, 'handle_unexpected_shutdown' ) ); 20 | add_action( 'action_scheduler_before_execute', array( $this, 'track_current_action' ), 0, 1 ); 21 | add_action( 'action_scheduler_after_execute', array( $this, 'untrack_action' ), 0, 0 ); 22 | add_action( 'action_scheduler_execution_ignored', array( $this, 'untrack_action' ), 0, 0 ); 23 | add_action( 'action_scheduler_failed_execution', array( $this, 'untrack_action' ), 0, 0 ); 24 | } 25 | 26 | public function detach() { 27 | $this->claim = NULL; 28 | $this->untrack_action(); 29 | remove_action( 'shutdown', array( $this, 'handle_unexpected_shutdown' ) ); 30 | remove_action( 'action_scheduler_before_execute', array( $this, 'track_current_action' ), 0 ); 31 | remove_action( 'action_scheduler_after_execute', array( $this, 'untrack_action' ), 0 ); 32 | remove_action( 'action_scheduler_execution_ignored', array( $this, 'untrack_action' ), 0 ); 33 | remove_action( 'action_scheduler_failed_execution', array( $this, 'untrack_action' ), 0 ); 34 | } 35 | 36 | public function track_current_action( $action_id ) { 37 | $this->action_id = $action_id; 38 | } 39 | 40 | public function untrack_action() { 41 | $this->action_id = 0; 42 | } 43 | 44 | public function handle_unexpected_shutdown() { 45 | if ( $error = error_get_last() ) { 46 | if ( in_array( $error['type'], array( E_ERROR, E_PARSE, E_COMPILE_ERROR, E_USER_ERROR, E_RECOVERABLE_ERROR ) ) ) { 47 | if ( !empty($this->action_id) ) { 48 | $this->store->mark_failure( $this->action_id ); 49 | do_action( 'action_scheduler_unexpected_shutdown', $this->action_id, $error ); 50 | } 51 | } 52 | $this->store->release_claim( $this->claim ); 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /templates/admin/status.php: -------------------------------------------------------------------------------- 1 |

2 |

3 | login_credentials['rest_api_version'] ) 8 | ); 9 | ?> 10 |

11 | 12 | 13 | 14 |

15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | login_credentials['rest_api_version'] ) { 28 | $class = ' class="current"'; 29 | $is_current = ' ' . esc_html__( 'This is the currently active version.', 'object-sync-for-salesforce' ); 30 | } 31 | ?> 32 | > 33 | 34 | 35 | 36 | 37 | 38 | 39 |
40 | 41 | 42 | 43 | 44 | 45 |

46 |
47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 |
61 | 62 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/apidocs/li_SalesforceTest.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Generated Documentation 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 19 | 20 | 21 |
SalesforceTest
15 | [ class tree: SalesforceTest ] 16 | [ index: SalesforceTest ] 17 | [ all elements ] 18 |
22 | 23 | 24 | 25 | 42 | 55 | 56 |
43 |
44 | 45 |

Generated Documentation

46 | Welcome to SalesforceTest!
47 |
48 | This documentation was generated by phpDocumentor v1.3.1
49 |
50 |
51 | Documentation generated on Fri, 15 Feb 2008 14:42:29 -0800 by phpDocumentor 1.3.1 52 |
53 |
54 |
57 | 58 | 59 | -------------------------------------------------------------------------------- /vendor/developerforce/force.com-toolkit-for-php/soapclient/SforceFieldTypes.php: -------------------------------------------------------------------------------- 1 | --------------------------------------------------------------------------------