Changeset 1658970
- Timestamp:
- 05/17/2017 12:01:00 AM (9 years ago)
- Location:
- infusionsoft-official-opt-in-forms/trunk
- Files:
-
- 6 edited
-
changelog.txt (modified) (1 diff)
-
includes/classes/integrations/class.infusionsoft-infusionsoft.php (modified) (4 diffs)
-
infusionsoft.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
subscription/infusionsoft/InfusionsoftWordPressSDK.php (modified) (7 diffs)
-
subscription/infusionsoft/class.infusion_infusionsoft.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
infusionsoft-official-opt-in-forms/trunk/changelog.txt
r1656253 r1658970 1 version 1.0.4 2 - Fixes contact 7 forms plugin conflict 3 1 4 version 1.0.3 2 5 - Optinid is no longer removed on form edit -
infusionsoft-official-opt-in-forms/trunk/includes/classes/integrations/class.infusionsoft-infusionsoft.php
r1647443 r1658970 48 48 $infusion_app = new InfusionsoftWordPressSDK(); 49 49 $infusion_app->cfgCon( $app_id, $api_key, 'throw' ); 50 } catch ( iSDKException $e ) {50 } catch ( InfusionsoftWordPressSDKException $e ) { 51 51 $error_message = $e->getMessage(); 52 52 } … … 73 73 $infusion_app = new InfusionsoftWordPressSDK(); 74 74 $infusion_app->cfgCon( $app_id, $api_key, 'throw' ); 75 } catch ( iSDKException $e ) {75 } catch ( InfusionsoftWordPressSDKException $e ) { 76 76 $error_message = $e->getMessage(); 77 77 } … … 100 100 $infusion_app = new InfusionsoftWordPressSDK(); 101 101 $infusion_app->cfgCon( $app_id, $api_key, 'throw' ); 102 } catch ( iSDKException $e ) {102 } catch ( InfusionsoftWordPressSDKException $e ) { 103 103 $error_message = $e->getMessage(); 104 104 } … … 142 142 $infusion_app->cfgCon( $app_id, $api_key, 'throw' ); 143 143 $infusion_app->dsGetSetting( 'application', 'enabled' ); 144 } catch ( iSDKException $e ) {144 } catch ( InfusionsoftWordPressSDKException $e ) { 145 145 $error_message = $e->getMessage(); 146 146 } -
infusionsoft-official-opt-in-forms/trunk/infusionsoft.php
r1656253 r1658970 3 3 * Plugin Name: Infusionsoft Official Opt-in Forms 4 4 * Plugin URI: https://www.infusionsoft.com 5 * Version: 1.0. 35 * Version: 1.0.4 6 6 * Description: Infusionsoft Official Opt-in Forms 7 7 * Author: Infusionsoft -
infusionsoft-official-opt-in-forms/trunk/readme.txt
r1656253 r1658970 4 4 Requires at least: 3.5 5 5 Tested up to: 4.7 6 Stable tag: 1.0. 36 Stable tag: 1.0.4 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 80 80 81 81 == Changelog == 82 = 1.0.4 = 83 * Fixes Contact 7 Forms Conflict 84 85 = 1.0.3 = 86 * Optinid is no longer removed on form edit 82 87 83 88 = 1.0.2 = … … 100 105 101 106 == Upgrade Notice == 107 = 1.0.4 = 108 Fixes Contact 7 Forms Conflict 109 102 110 = 1.0.3 = 103 111 Optinid is no longer removed on form edit -
infusionsoft-official-opt-in-forms/trunk/subscription/infusionsoft/InfusionsoftWordPressSDK.php
r1647443 r1658970 13 13 } 14 14 15 class iSDKException extends Exception {15 class InfusionsoftWordPressSDKException extends Exception { 16 16 } 17 17 … … 32 32 * 33 33 * @return bool 34 * @throws iSDKException34 * @throws InfusionsoftWordPressSDKException 35 35 */ 36 36 public function cfgCon( $name, $key = "", $dbOn = "on" ) { … … 79 79 * 80 80 * @return bool 81 * @throws iSDKException81 * @throws InfusionsoftWordPressSDKException 82 82 */ 83 83 public function vendorCon( $name, $user, $pass, $key = "", $dbOn = "on" ) { … … 99 99 $this->client = new xmlrpc_client( "https://" . $details[ $name ][1] . ".mortgageprocrm.com/api/xmlrpc" ); 100 100 } else { 101 throw new iSDKException( "Invalid application name: \"" . $name . "\"" );101 throw new InfusionsoftWordPressSDKException( "Invalid application name: \"" . $name . "\"" ); 102 102 } 103 103 } else { 104 throw new iSDKException( "Application Does Not Exist: \"" . $name . "\"" );104 throw new InfusionsoftWordPressSDKException( "Application Does Not Exist: \"" . $name . "\"" ); 105 105 } 106 106 $this->key = $details[ $name ][3]; … … 126 126 try { 127 127 $connected = $this->dsGetSetting( "Application", "enabled" ); 128 } catch ( iSDKException $e ) {129 throw new iSDKException( "Connection Failed" );128 } catch ( InfusionsoftWordPressSDKException $e ) { 129 throw new InfusionsoftWordPressSDKException( "Connection Failed" ); 130 130 } 131 131 … … 157 157 * 158 158 * @return int|mixed|string 159 * @throws iSDKException159 * @throws InfusionsoftWordPressSDKException 160 160 */ 161 161 public function methodCaller( $service, $callArray ) { … … 207 207 return "ERROR: " . $result->faultCode() . " - " . $result->faultString(); 208 208 } elseif ( $this->debug == "throw" ) { 209 throw new iSDKException( $result->faultString(), $result->faultCode() );209 throw new InfusionsoftWordPressSDKException( $result->faultString(), $result->faultCode() ); 210 210 } elseif ( $this->debug == "off" ) { 211 211 //ignore! -
infusionsoft-official-opt-in-forms/trunk/subscription/infusionsoft/class.infusion_infusionsoft.php
r1647443 r1658970 33 33 $infusion_app = new iSDK(); 34 34 $infusion_app->cfgCon( $this->app_id, $this->api_key, 'throw' ); 35 } catch ( iSDKException $e ) {35 } catch ( InfusionsoftWordPressSDKException $e ) { 36 36 $error_message = $e->getMessage(); 37 37 } … … 98 98 $infusion_app = new iSDK(); 99 99 $infusion_app->cfgCon( $this->app_id, $this->api_key, 'throw' ); 100 } catch ( iSDKException $e ) {100 } catch ( InfusionsoftWordPressSDKException $e ) { 101 101 $error_message = $e->getMessage(); 102 102 } … … 136 136 $infusion_app = new InfusionsoftWordPressSDK(); 137 137 $infusion_app->cfgCon( $app_id, $api_key, 'off' ); 138 } catch ( iSDKException $e ) {138 } catch ( InfusionsoftWordPressSDKException $e ) { 139 139 $error_message = $e->getMessage(); 140 140 } … … 196 196 $infusion_app = new InfusionsoftWordPressSDK(); 197 197 $infusion_app->cfgCon( $app_id, $api_key, 'throw' ); 198 } catch ( iSDKException $e ) {198 } catch ( InfusionsoftWordPressSDKException $e ) { 199 199 $error_message = $e->getMessage(); 200 200 }
Note: See TracChangeset
for help on using the changeset viewer.