@@ -28,8 +28,8 @@ |
||
| 28 | 28 | |
| 29 | 29 | class ProcessWorkitemRequest extends ProcessRequest |
| 30 | 30 | { |
| 31 | - public $action; |
|
| 32 | - public $workitemId; |
|
| 31 | + public $action; |
|
| 32 | + public $workitemId; |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | ?> |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php namespace Davispeixoto\ForceDotComToolkitForPhp; |
| 2 | 2 | |
| 3 | - /* |
|
| 3 | + /* |
|
| 4 | 4 | * Copyright (c) 2007, salesforce.com, inc. |
| 5 | 5 | * All rights reserved. |
| 6 | 6 | * |
@@ -33,18 +33,18 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | class QueryOptions |
| 35 | 35 | { |
| 36 | - // int - Batch size for the number of records returned in a query or queryMore call. The default is 500; the minimum is 200, and the maximum is 2,000. |
|
| 37 | - public $batchSize; |
|
| 36 | + // int - Batch size for the number of records returned in a query or queryMore call. The default is 500; the minimum is 200, and the maximum is 2,000. |
|
| 37 | + public $batchSize; |
|
| 38 | 38 | |
| 39 | - /** |
|
| 40 | - * Constructor |
|
| 41 | - * |
|
| 42 | - * @param int $limit Batch size |
|
| 43 | - */ |
|
| 44 | - public function __construct($limit) |
|
| 45 | - { |
|
| 46 | - $this->batchSize = $limit; |
|
| 47 | - } |
|
| 39 | + /** |
|
| 40 | + * Constructor |
|
| 41 | + * |
|
| 42 | + * @param int $limit Batch size |
|
| 43 | + */ |
|
| 44 | + public function __construct($limit) |
|
| 45 | + { |
|
| 46 | + $this->batchSize = $limit; |
|
| 47 | + } |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | ?> |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php namespace Davispeixoto\ForceDotComToolkitForPhp; |
| 2 | 2 | |
| 3 | - /* |
|
| 3 | + /* |
|
| 4 | 4 | * Copyright (c) 2007, salesforce.com, inc. |
| 5 | 5 | * All rights reserved. |
| 6 | 6 | * |
@@ -33,15 +33,15 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | class LoginScopeHeader |
| 35 | 35 | { |
| 36 | - // boolean that Indicates whether to update the list of most recently used items (True) or not (False). |
|
| 37 | - public $organizationId; |
|
| 38 | - public $portalId; |
|
| 36 | + // boolean that Indicates whether to update the list of most recently used items (True) or not (False). |
|
| 37 | + public $organizationId; |
|
| 38 | + public $portalId; |
|
| 39 | 39 | |
| 40 | - public function __construct($orgId = null, $portalId = null) |
|
| 41 | - { |
|
| 42 | - $this->organizationId = $orgId; |
|
| 43 | - $this->portalId = $portalId; |
|
| 44 | - } |
|
| 40 | + public function __construct($orgId = null, $portalId = null) |
|
| 41 | + { |
|
| 42 | + $this->organizationId = $orgId; |
|
| 43 | + $this->portalId = $portalId; |
|
| 44 | + } |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | ?> |
@@ -28,14 +28,14 @@ |
||
| 28 | 28 | |
| 29 | 29 | class CallOptions |
| 30 | 30 | { |
| 31 | - public $client; |
|
| 32 | - public $defaultNamespace; |
|
| 31 | + public $client; |
|
| 32 | + public $defaultNamespace; |
|
| 33 | 33 | |
| 34 | - public function __construct($client, $defaultNamespace = null) |
|
| 35 | - { |
|
| 36 | - $this->client = $client; |
|
| 37 | - $this->defaultNamespace = $defaultNamespace; |
|
| 38 | - } |
|
| 34 | + public function __construct($client, $defaultNamespace = null) |
|
| 35 | + { |
|
| 36 | + $this->client = $client; |
|
| 37 | + $this->defaultNamespace = $defaultNamespace; |
|
| 38 | + } |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | ?> |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php namespace Davispeixoto\ForceDotComToolkitForPhp; |
| 2 | 2 | |
| 3 | - /* |
|
| 3 | + /* |
|
| 4 | 4 | * Copyright (c) 2007, salesforce.com, inc. |
| 5 | 5 | * All rights reserved. |
| 6 | 6 | * |
@@ -34,27 +34,27 @@ discard block |
||
| 34 | 34 | */ |
| 35 | 35 | class AssignmentRuleHeader |
| 36 | 36 | { |
| 37 | - // int |
|
| 38 | - public $assignmentRuleId; |
|
| 39 | - // boolean |
|
| 40 | - public $useDefaultRuleFlag; |
|
| 37 | + // int |
|
| 38 | + public $assignmentRuleId; |
|
| 39 | + // boolean |
|
| 40 | + public $useDefaultRuleFlag; |
|
| 41 | 41 | |
| 42 | - /** |
|
| 43 | - * Constructor. Only one param can be set. |
|
| 44 | - * |
|
| 45 | - * @param int $id AssignmentRuleId |
|
| 46 | - * @param boolean $flag UseDefaultRule flag |
|
| 47 | - */ |
|
| 48 | - public function __construct($id = null, $flag = null) |
|
| 49 | - { |
|
| 50 | - if ($id != null) { |
|
| 51 | - $this->assignmentRuleId = $id; |
|
| 52 | - } |
|
| 42 | + /** |
|
| 43 | + * Constructor. Only one param can be set. |
|
| 44 | + * |
|
| 45 | + * @param int $id AssignmentRuleId |
|
| 46 | + * @param boolean $flag UseDefaultRule flag |
|
| 47 | + */ |
|
| 48 | + public function __construct($id = null, $flag = null) |
|
| 49 | + { |
|
| 50 | + if ($id != null) { |
|
| 51 | + $this->assignmentRuleId = $id; |
|
| 52 | + } |
|
| 53 | 53 | |
| 54 | - if ($flag != null) { |
|
| 55 | - $this->useDefaultRuleFlag = $flag; |
|
| 56 | - } |
|
| 57 | - } |
|
| 54 | + if ($flag != null) { |
|
| 55 | + $this->useDefaultRuleFlag = $flag; |
|
| 56 | + } |
|
| 57 | + } |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | ?> |
@@ -28,8 +28,8 @@ |
||
| 28 | 28 | |
| 29 | 29 | abstract class ProcessRequest |
| 30 | 30 | { |
| 31 | - public $comments; |
|
| 32 | - public $nextApproverIds; |
|
| 31 | + public $comments; |
|
| 32 | + public $nextApproverIds; |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | ?> |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php namespace Davispeixoto\ForceDotComToolkitForPhp; |
| 2 | 2 | |
| 3 | - /* |
|
| 3 | + /* |
|
| 4 | 4 | * Copyright (c) 2007, salesforce.com, inc. |
| 5 | 5 | * All rights reserved. |
| 6 | 6 | * |
@@ -32,24 +32,24 @@ discard block |
||
| 32 | 32 | */ |
| 33 | 33 | class PackageVersion |
| 34 | 34 | { |
| 35 | - public $majorNumber; |
|
| 36 | - public $minorNumber; |
|
| 37 | - public $namespace; |
|
| 35 | + public $majorNumber; |
|
| 36 | + public $minorNumber; |
|
| 37 | + public $namespace; |
|
| 38 | 38 | |
| 39 | - /** |
|
| 40 | - * Class constructor. |
|
| 41 | - * |
|
| 42 | - * @param int $majorNumber |
|
| 43 | - * @param int $minorNumber |
|
| 44 | - * @param string $namespace |
|
| 45 | - * @return void |
|
| 46 | - */ |
|
| 47 | - public function __construct($majorNumber, $minorNumber, $namespace) |
|
| 48 | - { |
|
| 49 | - $this->majorNumber = $majorNumber; |
|
| 50 | - $this->minorNumber = $minorNumber; |
|
| 51 | - $this->namespace = $namespace; |
|
| 52 | - } |
|
| 39 | + /** |
|
| 40 | + * Class constructor. |
|
| 41 | + * |
|
| 42 | + * @param int $majorNumber |
|
| 43 | + * @param int $minorNumber |
|
| 44 | + * @param string $namespace |
|
| 45 | + * @return void |
|
| 46 | + */ |
|
| 47 | + public function __construct($majorNumber, $minorNumber, $namespace) |
|
| 48 | + { |
|
| 49 | + $this->majorNumber = $majorNumber; |
|
| 50 | + $this->minorNumber = $minorNumber; |
|
| 51 | + $this->namespace = $namespace; |
|
| 52 | + } |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | ?> |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php namespace Davispeixoto\ForceDotComToolkitForPhp; |
| 2 | 2 | |
| 3 | - /* |
|
| 3 | + /* |
|
| 4 | 4 | * Copyright (c) 2007, salesforce.com, inc. |
| 5 | 5 | * All rights reserved. |
| 6 | 6 | * |
@@ -26,40 +26,40 @@ discard block |
||
| 26 | 26 | * POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 | */ |
| 28 | 28 | |
| 29 | - /** |
|
| 30 | - * SforceSoapClient class. |
|
| 31 | - * |
|
| 32 | - * @package SalesforceSoapClient |
|
| 33 | - */ |
|
| 29 | + /** |
|
| 30 | + * SforceSoapClient class. |
|
| 31 | + * |
|
| 32 | + * @package SalesforceSoapClient |
|
| 33 | + */ |
|
| 34 | 34 | // When parsing partner WSDL, when PHP SOAP sees NewValue and OldValue, since |
| 35 | 35 | // the element has a xsi:type attribute with value 'string', it drops the |
| 36 | 36 | // string content into the parsed output and loses the tag name. Removing the |
| 37 | 37 | // xsi:type forces PHP SOAP to just leave the tags intact |
| 38 | 38 | class SforceSoapClient extends \SoapClient |
| 39 | 39 | { |
| 40 | - public function __doRequest($request, $location, $action, $version, $one_way = 0) |
|
| 41 | - { |
|
| 42 | - $response = parent::__doRequest($request, $location, $action, $version, $one_way); |
|
| 40 | + public function __doRequest($request, $location, $action, $version, $one_way = 0) |
|
| 41 | + { |
|
| 42 | + $response = parent::__doRequest($request, $location, $action, $version, $one_way); |
|
| 43 | 43 | |
| 44 | - if (strpos($response, '<sf:OldValue') === false && strpos($response, '<sf:NewValue') === false) { |
|
| 45 | - return $response; |
|
| 46 | - } |
|
| 44 | + if (strpos($response, '<sf:OldValue') === false && strpos($response, '<sf:NewValue') === false) { |
|
| 45 | + return $response; |
|
| 46 | + } |
|
| 47 | 47 | |
| 48 | - $dom = new \DOMDocument(); |
|
| 49 | - $dom->loadXML($response); |
|
| 48 | + $dom = new \DOMDocument(); |
|
| 49 | + $dom->loadXML($response); |
|
| 50 | 50 | |
| 51 | - $nodeList = $dom->getElementsByTagName('NewValue'); |
|
| 52 | - foreach ($nodeList as $key => $node) { |
|
| 53 | - $node->removeAttributeNS('http://www.w3.org/2001/XMLSchema-instance', 'type'); |
|
| 54 | - } |
|
| 51 | + $nodeList = $dom->getElementsByTagName('NewValue'); |
|
| 52 | + foreach ($nodeList as $key => $node) { |
|
| 53 | + $node->removeAttributeNS('http://www.w3.org/2001/XMLSchema-instance', 'type'); |
|
| 54 | + } |
|
| 55 | 55 | |
| 56 | - $nodeList = $dom->getElementsByTagName('OldValue'); |
|
| 57 | - foreach ($nodeList as $key => $node) { |
|
| 58 | - $node->removeAttributeNS('http://www.w3.org/2001/XMLSchema-instance', 'type'); |
|
| 59 | - } |
|
| 56 | + $nodeList = $dom->getElementsByTagName('OldValue'); |
|
| 57 | + foreach ($nodeList as $key => $node) { |
|
| 58 | + $node->removeAttributeNS('http://www.w3.org/2001/XMLSchema-instance', 'type'); |
|
| 59 | + } |
|
| 60 | 60 | |
| 61 | - return $dom->saveXML(); |
|
| 62 | - } |
|
| 61 | + return $dom->saveXML(); |
|
| 62 | + } |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | ?> |
@@ -27,20 +27,20 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | class MassEmailMessage extends Email |
| 29 | 29 | { |
| 30 | - public function setTemplateId($templateId) |
|
| 31 | - { |
|
| 32 | - $this->templateId = $templateId; |
|
| 33 | - } |
|
| 30 | + public function setTemplateId($templateId) |
|
| 31 | + { |
|
| 32 | + $this->templateId = $templateId; |
|
| 33 | + } |
|
| 34 | 34 | |
| 35 | - public function setWhatIds($array) |
|
| 36 | - { |
|
| 37 | - $this->whatIds = $array; |
|
| 38 | - } |
|
| 35 | + public function setWhatIds($array) |
|
| 36 | + { |
|
| 37 | + $this->whatIds = $array; |
|
| 38 | + } |
|
| 39 | 39 | |
| 40 | - public function setTargetObjectIds($array) |
|
| 41 | - { |
|
| 42 | - $this->targetObjectIds = $array; |
|
| 43 | - } |
|
| 40 | + public function setTargetObjectIds($array) |
|
| 41 | + { |
|
| 42 | + $this->targetObjectIds = $array; |
|
| 43 | + } |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | ?> |