Skip to content

Commit

Permalink
Fix constructors
Browse files Browse the repository at this point in the history
developerforce#59
its/4b0ac9bd54946afd79af4964a22c6d7905e08e4e
  • Loading branch information
ronanchilvers committed Dec 14, 2016
1 parent 0ff94cf commit c931109
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion soapclient/SforceEnterpriseClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
class SforceEnterpriseClient extends SforceBaseClient {
const ENTERPRISE_NAMESPACE = 'urn:enterprise.soap.sforce.com';

function __construct() {
public function __construct() {
$this->namespace = self::ENTERPRISE_NAMESPACE;
}

Expand Down
20 changes: 10 additions & 10 deletions soapclient/SforcePartnerClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function __doRequest($request, $location, $action, $version, $one_way=0) {
$node->removeAttributeNS('http://www.w3.org/2001/XMLSchema-instance', 'type');
}

return $dom->saveXML();
return $dom->saveXML();
}
}

Expand All @@ -73,14 +73,14 @@ function __doRequest($request, $location, $action, $version, $one_way=0) {
*/
class SforcePartnerClient extends SforceBaseClient {
const PARTNER_NAMESPACE = 'urn:partner.soap.sforce.com';
function SforcePartnerClient() {

public function __construct() {
$this->namespace = self::PARTNER_NAMESPACE;
}

protected function getSoapClient($wsdl, $options) {
// Workaround an issue in parsing OldValue and NewValue in histories
return new SforceSoapClient($wsdl, $options);
return new SforceSoapClient($wsdl, $options);
}

/**
Expand Down Expand Up @@ -118,7 +118,7 @@ public function merge($mergeRequest) {
}

/**
*
*
* @param array $request
*/
public function sendSingleEmail($request) {
Expand Down Expand Up @@ -193,7 +193,7 @@ public function upsert($ext_Id, $sObjects) {
$arg->sObjects = $sObjects;
return parent::_upsert($arg);
}

/**
* @param string $fieldList
* @param string $sObjectType
Expand All @@ -202,7 +202,7 @@ public function upsert($ext_Id, $sObjects) {
*/
public function retrieve($fieldList, $sObjectType, $ids) {
return $this->_retrieveResult(parent::retrieve($fieldList, $sObjectType, $ids));
}
}

/**
*
Expand All @@ -222,5 +222,5 @@ private function _retrieveResult($response) {
}
return $arr;
}
}

}

0 comments on commit c931109

Please sign in to comment.