@@ -12,11 +12,11 @@ |
||
12 | 12 | $response = $this->_mySforceConnection->query($query); |
13 | 13 | $response = new QueryResult($response); |
14 | 14 | |
15 | - echo "\n***** ".$this->getTestName()." *****\n"; |
|
15 | + echo "\n***** " . $this->getTestName() . " *****\n"; |
|
16 | 16 | print_r($response); |
17 | 17 | |
18 | - echo "\n***** ".$this->getTestName()." response records: *****\n"; |
|
19 | - if (isset($response->records) && !empty($response->records)) { |
|
18 | + echo "\n***** " . $this->getTestName() . " response records: *****\n"; |
|
19 | + if (isset($response->records) && ! empty($response->records)) { |
|
20 | 20 | foreach ($response->records as $key=>$record) { |
21 | 21 | echo "\n***** $key *****\n"; |
22 | 22 | if (isset($record->fields)) { |
@@ -8,18 +8,18 @@ |
||
8 | 8 | |
9 | 9 | protected function _run() |
10 | 10 | { |
11 | - $header = new LocaleOptions('en_US'); |
|
12 | - $this->_mySforceConnection->setLocaleOptions($header); |
|
11 | + $header = new LocaleOptions('en_US'); |
|
12 | + $this->_mySforceConnection->setLocaleOptions($header); |
|
13 | 13 | |
14 | - print "**** DescribeSObject result: \r\n"; |
|
15 | - print_r( |
|
14 | + print "**** DescribeSObject result: \r\n"; |
|
15 | + print_r( |
|
16 | 16 | $this->_mySforceConnection->describeSObject('Account') |
17 | - ); |
|
17 | + ); |
|
18 | 18 | |
19 | - print "**** LastRequestHeaders:\r\n"; |
|
20 | - print_r($this->_mySforceConnection->getLastRequestHeaders()); |
|
21 | - print "**** LastRequest:\r\n"; |
|
22 | - print_r($this->_mySforceConnection->getLastRequest()); |
|
19 | + print "**** LastRequestHeaders:\r\n"; |
|
20 | + print_r($this->_mySforceConnection->getLastRequestHeaders()); |
|
21 | + print "**** LastRequest:\r\n"; |
|
22 | + print_r($this->_mySforceConnection->getLastRequest()); |
|
23 | 23 | |
24 | 24 | } |
25 | 25 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | $createResponse = $this->_mySforceConnection->create(array($sObject), 'Contact'); |
17 | 17 | |
18 | - $retrieveResult= $this->_mySforceConnection->retrieve("FirstName, LastName, Phone", "Contact", $createResponse->id); |
|
18 | + $retrieveResult = $this->_mySforceConnection->retrieve("FirstName, LastName, Phone", "Contact", $createResponse->id); |
|
19 | 19 | echo "***** Before fieldsToNull\r\n"; |
20 | 20 | print_r($retrieveResult); |
21 | 21 |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | |
9 | 9 | protected function _run() |
10 | 10 | { |
11 | - $fields = array ( |
|
11 | + $fields = array( |
|
12 | 12 | 'Type' => 'Electrical' |
13 | 13 | ); |
14 | 14 | |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $sObject->fields = $fields; |
17 | 17 | $sObject->type = 'Case'; |
18 | 18 | |
19 | - $response = $this->_mySforceConnection->create(array ($sObject)); |
|
19 | + $response = $this->_mySforceConnection->create(array($sObject)); |
|
20 | 20 | |
21 | 21 | echo "Creating Case:\n"; |
22 | 22 | print_r($response); |
@@ -25,7 +25,7 @@ |
||
25 | 25 | */ |
26 | 26 | protected function _validateSoapFault($rs) |
27 | 27 | { |
28 | - if(strpos($rs, 'INVALID_SESSION_ID') === FALSE) { |
|
28 | + if (strpos($rs, 'INVALID_SESSION_ID') === FALSE) { |
|
29 | 29 | throw new Lib_Exception_InvalidResponse(); |
30 | 30 | } |
31 | 31 | } |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | { |
11 | 11 | $obj1->type = 'Lead'; |
12 | 12 | |
13 | - $fields = array ( |
|
13 | + $fields = array( |
|
14 | 14 | 'Company' => 'XYZ Company', |
15 | 15 | 'FirstName' => 'John', |
16 | 16 | 'LastName' => 'Smith', |
@@ -19,13 +19,13 @@ discard block |
||
19 | 19 | 'Status' => 'Open' |
20 | 20 | ); |
21 | 21 | $obj1->fields = $fields; |
22 | - $createResponse = $this->_mySforceConnection->create(array ($obj1)); |
|
22 | + $createResponse = $this->_mySforceConnection->create(array($obj1)); |
|
23 | 23 | |
24 | 24 | echo "***** Creating Lead *****\n"; |
25 | 25 | print_r($createResponse); |
26 | 26 | |
27 | 27 | $id = $createResponse->id; |
28 | - $deleteResponse = $this->_mySforceConnection->delete(array ($id)); |
|
28 | + $deleteResponse = $this->_mySforceConnection->delete(array($id)); |
|
29 | 29 | echo "***** Deleting Lead *****\n"; |
30 | 30 | print_r($deleteResponse); |
31 | 31 | |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | $currentTime = mktime(); |
36 | 36 | // assume that delete occured within the last 5 mins. |
37 | - $startTime = $currentTime - (60*10); |
|
37 | + $startTime = $currentTime - (60 * 10); |
|
38 | 38 | $endTime = $currentTime; |
39 | 39 | |
40 | 40 | echo "***** Get Deleted Leads *****\n"; |
@@ -29,7 +29,7 @@ |
||
29 | 29 | */ |
30 | 30 | protected function _validateSoapFault($rs) |
31 | 31 | { |
32 | - if(strpos($rs, 'INVALID_SESSION_ID') === FALSE) { |
|
32 | + if (strpos($rs, 'INVALID_SESSION_ID') === FALSE) { |
|
33 | 33 | throw new Lib_Exception_InvalidResponse(); |
34 | 34 | } |
35 | 35 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | protected function _run() |
13 | 13 | { |
14 | 14 | // Create Contact |
15 | - $fields = array ( |
|
15 | + $fields = array( |
|
16 | 16 | 'FirstName' => 'John', |
17 | 17 | 'LastName' => 'Smith', |
18 | 18 | 'Phone' => '510-555-5555', |
@@ -16,7 +16,7 @@ |
||
16 | 16 | protected function _run() |
17 | 17 | { |
18 | 18 | $response = $this->_mySforceConnection->describeDataCategoryGroups('Question'); |
19 | - echo "***** ".$this->getTestName()." # Question *****\n"; |
|
19 | + echo "***** " . $this->getTestName() . " # Question *****\n"; |
|
20 | 20 | print_r($response); |
21 | 21 | } |
22 | 22 | } |