@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | $pairs[] = new SoapVar($pair, SOAP_ENC_OBJECT, 'DataCategoryGroupSobjectTypePair', SforcePartnerClient::PARTNER_NAMESPACE); |
25 | 25 | $response = $this->_mySforceConnection->describeDataCategoryGroupStructures($pairs, true); |
26 | 26 | |
27 | - echo "***** ".$this->getTestName()." Get information only about top categories *****\n"; |
|
27 | + echo "***** " . $this->getTestName() . " Get information only about top categories *****\n"; |
|
28 | 28 | print_r($response); |
29 | 29 | |
30 | 30 | /* |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $pairs[] = new SoapVar($pair, SOAP_ENC_OBJECT, 'DataCategoryGroupSobjectTypePair', SforcePartnerClient::PARTNER_NAMESPACE); |
46 | 46 | $response = $this->_mySforceConnection->describeDataCategoryGroupStructures($pairs, false); |
47 | 47 | |
48 | - echo "\n\n***** ".$this->getTestName()." Get information about two categories *****\n"; |
|
48 | + echo "\n\n***** " . $this->getTestName() . " Get information about two categories *****\n"; |
|
49 | 49 | print_r($response); |
50 | 50 | } |
51 | 51 | } |
@@ -19,14 +19,14 @@ |
||
19 | 19 | |
20 | 20 | // print_r($queryResult); |
21 | 21 | |
22 | - !$done = false; |
|
22 | + ! $done = false; |
|
23 | 23 | |
24 | - echo "Size of records: ".$queryResult->size; |
|
24 | + echo "Size of records: " . $queryResult->size; |
|
25 | 25 | |
26 | 26 | if ($queryResult->size > 0) { |
27 | - while (!$done) { |
|
27 | + while ( ! $done) { |
|
28 | 28 | foreach ($queryResult->records as $record) { |
29 | - echo 'NumberOfEmployees=' .$record->fields->NumberOfEmployees."\r\n"; |
|
29 | + echo 'NumberOfEmployees=' . $record->fields->NumberOfEmployees . "\r\n"; |
|
30 | 30 | } |
31 | 31 | if ($queryResult->done != true) { |
32 | 32 | echo "***** Get Next Chunk *****\n"; |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | protected function _validate($rs) |
44 | 44 | { |
45 | - if(strpos($rs, 'Error') !== FALSE) { |
|
45 | + if (strpos($rs, 'Error') !== FALSE) { |
|
46 | 46 | throw new Lib_Exception_InvalidResponse(); |
47 | 47 | } |
48 | 48 | } |
@@ -10,17 +10,17 @@ discard block |
||
10 | 10 | |
11 | 11 | protected function _run() |
12 | 12 | { |
13 | - $pv = new stdClass(); |
|
14 | - $pv->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); |
|
13 | + $pv = new stdClass(); |
|
14 | + $pv->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 | 22 | |
23 | - $fields = array ( |
|
23 | + $fields = array ( |
|
24 | 24 | 'FirstName' => 'John', |
25 | 25 | 'LastName' => 'Smith', |
26 | 26 | 'Phone' => '510-555-5555', |
@@ -32,12 +32,12 @@ discard block |
||
32 | 32 | $sObject->type = 'Contact'; |
33 | 33 | |
34 | 34 | $createResponse = $this->_mySforceConnection->create(array($sObject)); |
35 | - echo "**** Creating the following:\r\n"; |
|
35 | + echo "**** Creating the following:\r\n"; |
|
36 | 36 | print_r($createResponse); |
37 | 37 | |
38 | 38 | print "**** LastRequestHeaders:\r\n"; |
39 | - print_r($this->_mySforceConnection->getLastRequestHeaders()); |
|
40 | - print "**** LastRequest:\r\n"; |
|
41 | - print_r($this->_mySforceConnection->getLastRequest()); |
|
39 | + print_r($this->_mySforceConnection->getLastRequestHeaders()); |
|
40 | + print "**** LastRequest:\r\n"; |
|
41 | + print_r($this->_mySforceConnection->getLastRequest()); |
|
42 | 42 | } |
43 | 43 | } |
44 | 44 | \ No newline at end of file |
@@ -20,7 +20,7 @@ |
||
20 | 20 | print_r($header); |
21 | 21 | $this->_mySforceConnection->setPackageVersionHeader($header); |
22 | 22 | |
23 | - $fields = array ( |
|
23 | + $fields = array( |
|
24 | 24 | 'FirstName' => 'John', |
25 | 25 | 'LastName' => 'Smith', |
26 | 26 | 'Phone' => '510-555-5555', |
@@ -29,12 +29,12 @@ |
||
29 | 29 | print_r($createResponse); |
30 | 30 | |
31 | 31 | $leadConvert = new stdClass; |
32 | - $leadConvert->convertedStatus='Closed - Converted'; |
|
33 | - $leadConvert->doNotCreateOpportunity='false'; |
|
32 | + $leadConvert->convertedStatus = 'Closed - Converted'; |
|
33 | + $leadConvert->doNotCreateOpportunity = 'false'; |
|
34 | 34 | // $leadConvert->leadId=$convertLEADID; |
35 | - $leadConvert->leadId=$createResponse->id; |
|
36 | - $leadConvert->overwriteLeadSource='true'; |
|
37 | - $leadConvert->sendNotificationEmail='true'; |
|
35 | + $leadConvert->leadId = $createResponse->id; |
|
36 | + $leadConvert->overwriteLeadSource = 'true'; |
|
37 | + $leadConvert->sendNotificationEmail = 'true'; |
|
38 | 38 | |
39 | 39 | $leadConvertArray = array($leadConvert); |
40 | 40 | $leadConvertResponse = $this->_mySforceConnection->convertLead($leadConvertArray); |
@@ -16,7 +16,7 @@ |
||
16 | 16 | 'LastName' => 'Smith', |
17 | 17 | 'Phone' => '510-555-5555', |
18 | 18 | 'BirthDate' => '1927-01-25', |
19 | - 'Email' => '[email protected]' |
|
19 | + 'Email' => '[email protected]' |
|
20 | 20 | ); |
21 | 21 | |
22 | 22 | $sObject = new SObject(); |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | */ |
12 | 12 | protected function _run() |
13 | 13 | { |
14 | - $createFields = array ( |
|
14 | + $createFields = array( |
|
15 | 15 | 'FirstName' => 'George', |
16 | 16 | 'LastName' => 'Smith', |
17 | 17 | 'Phone' => '510-555-5555', |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | $sObject->fields['Email'] = '[email protected]'; |
41 | 41 | |
42 | 42 | echo "Upserting Contact (new)\n"; |
43 | - $upsertResponse = $this->_mySforceConnection->upsert('Email', array ($sObject)); |
|
43 | + $upsertResponse = $this->_mySforceConnection->upsert('Email', array($sObject)); |
|
44 | 44 | print_r($upsertResponse); |
45 | 45 | } |
46 | 46 | } |
47 | 47 | \ No newline at end of file |
@@ -10,11 +10,11 @@ discard block |
||
10 | 10 | |
11 | 11 | protected function _run() |
12 | 12 | { |
13 | - $header = new AllowFieldTruncationHeader(true); |
|
14 | - print_r($header); |
|
15 | - $this->_mySforceConnection->setAllowFieldTruncationHeader($header); |
|
13 | + $header = new AllowFieldTruncationHeader(true); |
|
14 | + print_r($header); |
|
15 | + $this->_mySforceConnection->setAllowFieldTruncationHeader($header); |
|
16 | 16 | |
17 | - $fields = array ( |
|
17 | + $fields = array ( |
|
18 | 18 | 'FirstName' => 'John', |
19 | 19 | 'LastName' => 'Smith', |
20 | 20 | 'Phone' => '511111111111111111111111110-555-5555111111111111111111111111111111111111111111111111', |
@@ -26,12 +26,12 @@ discard block |
||
26 | 26 | $sObject->type = 'Contact'; |
27 | 27 | |
28 | 28 | $createResponse = $this->_mySforceConnection->create(array($sObject)); |
29 | - echo "**** Creating the following:\r\n"; |
|
29 | + echo "**** Creating the following:\r\n"; |
|
30 | 30 | print_r($createResponse); |
31 | 31 | |
32 | 32 | print "**** LastRequestHeaders:\r\n"; |
33 | - print_r($this->_mySforceConnection->getLastRequestHeaders()); |
|
34 | - print "**** LastRequest:\r\n"; |
|
35 | - print_r($this->_mySforceConnection->getLastRequest()); |
|
33 | + print_r($this->_mySforceConnection->getLastRequestHeaders()); |
|
34 | + print "**** LastRequest:\r\n"; |
|
35 | + print_r($this->_mySforceConnection->getLastRequest()); |
|
36 | 36 | } |
37 | 37 | } |
38 | 38 | \ No newline at end of file |
@@ -14,7 +14,7 @@ |
||
14 | 14 | print_r($header); |
15 | 15 | $this->_mySforceConnection->setAllowFieldTruncationHeader($header); |
16 | 16 | |
17 | - $fields = array ( |
|
17 | + $fields = array( |
|
18 | 18 | 'FirstName' => 'John', |
19 | 19 | 'LastName' => 'Smith', |
20 | 20 | 'Phone' => '511111111111111111111111110-555-5555111111111111111111111111111111111111111111111111', |
@@ -37,7 +37,7 @@ |
||
37 | 37 | print_r($createResponse); |
38 | 38 | */ |
39 | 39 | |
40 | - $new_password=$this->_mySforceConnection->resetPassword('005t0000000uonmAAA'); |
|
40 | + $new_password = $this->_mySforceConnection->resetPassword('005t0000000uonmAAA'); |
|
41 | 41 | print_r($new_password); |
42 | 42 | } |
43 | 43 |
@@ -25,7 +25,7 @@ |
||
25 | 25 | $singleEmail2->emailPriority = EMAIL_PRIORITY_LOW; |
26 | 26 | |
27 | 27 | echo "***** Send Emails *****\n"; |
28 | - $emailResponse = $this->_mySforceConnection->sendSingleEmail(array ($singleEmail1, $singleEmail2)); |
|
28 | + $emailResponse = $this->_mySforceConnection->sendSingleEmail(array($singleEmail1, $singleEmail2)); |
|
29 | 29 | |
30 | 30 | print_r($emailResponse); |
31 | 31 |