diff --git a/.gitignore b/.gitignore index a31e303..0fdcea6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ /vendor/ -.buildpath -.settings -.project -.idea +composer.lock +composer.phar diff --git a/license b/LICENSE similarity index 100% rename from license rename to LICENSE diff --git a/apache.html b/apache.html deleted file mode 100644 index c370074..0000000 --- a/apache.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - -Apache Setup - - - - - -

-

Apache Setup

-

Instructions | API Docs | Apache Setup | PHP Setup | Unit Tests

-
-

The current version of Apache as this is written is 2.0.55.

-

Installation

-

You can get the current distribution from the download section of the Apache site.

-

This document will assume C:\Apache Group\Apache2 as your Apache base directory. It will assume C:\dev\php5 as your PHP base directory.

-

Configure

-

Apache's configuration is captured in the C:\Apache Group\Apache2\conf\httpd.conf file.

-

Turning on PHP 5 Support

-Edit the configuration file and add the following entries in the appropriate sections: -
# Dynamic Shared Object (DSO) Support
-  LoadModule php5_module "c:/dev/php5/php5apache2.dll"
-
-  # AddType
-  AddType application/x-httpd-php .php
-
-  # Anywhere
-  PHPIniDir "c:/dev/php5"
-

Document Root

-

Search for "DocumentRoot" to locate the directory for your document root. If you decide to change this, please also change the value of <Directory to match the document root.

-

Restart Apache server to have the changes take effect.

-

Tips / Troubleshooting

-

To test whether PHP is properly configured for you web server, create a file, call it phpinfo.php and paste the following in:

-<?php phpinfo(); ?> -

Copy the file to your document root and access it in your browser by navigating to http://localhost:[port]/phpinfo.php where port is your http port. You should be presented with a page of PHP information about the current stage of PHP.

-

 

- - diff --git a/apidocs/SalesforceSoapClient/AssignmentRuleHeader.html b/apidocs/SalesforceSoapClient/AssignmentRuleHeader.html deleted file mode 100644 index f3c5ab8..0000000 --- a/apidocs/SalesforceSoapClient/AssignmentRuleHeader.html +++ /dev/null @@ -1,250 +0,0 @@ - - -Docs For Class AssignmentRuleHeader - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Class: AssignmentRuleHeader

-Source Location: /soapclient/SforceHeaderOptions.php

- - - - - - - - - - -
- -

Class Overview

-

-
To be used with Create and Update operations.


- - - - - - - -
-

Variables

- -
-

Methods

- -
-
- - - - - - - - -
-
- - -

Class Details

-
-[line 52]
-To be used with Create and Update operations.

Only one attribute can be set at a time.




-
[ Top ]

- -
- -

Class Variables

-
- -

-

$assignmentRuleId =

-

[line 54]

-

-

Tags:

-
- - - - -
access:  public
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$useDefaultRuleFlag =

-

[line 56]

-

-

Tags:

-
- - - - -
access:  public
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

-

- -
- -

Class Methods

-
- -
- -

constructor __construct [line 64]

-
-
-
- AssignmentRuleHeader __construct( -[int -$id = NULL], [boolean -$flag = NULL]) -
-

- - Constructor. Only one param can be set.



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - - - - - - -
int  $id  AssignmentRuleId
boolean  $flag  UseDefaultRule flag
-

-
[ Top ]
-
-

- - -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:32 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/CallOptions.html b/apidocs/SalesforceSoapClient/CallOptions.html deleted file mode 100644 index e744352..0000000 --- a/apidocs/SalesforceSoapClient/CallOptions.html +++ /dev/null @@ -1,250 +0,0 @@ - - -Docs For Class CallOptions - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Class: CallOptions

-Source Location: /soapclient/SforceHeaderOptions.php

- - - - - - - - - - -
- -

Class Overview

-

-
This file contains three classes.


- - - - - - - -
-

Variables

- -
-

Methods

- -
-
- - - - - - - - -
-
- - -

Class Details

-
-[line 34]
-This file contains three classes.



-
[ Top ]

- -
- -

Class Variables

-
- -

-

$client =

-

[line 35]

-

-

Tags:

-
- - - - -
access:  public
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$defaultNamespace =

-

[line 36]

-

-

Tags:

-
- - - - -
access:  public
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

-

- -
- -

Class Methods

-
- -
- -

constructor __construct [line 38]

-
-
-
- CallOptions __construct( - -$client, [ -$defaultNamespace = NULL]) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - - - - - - -
  $client  
  $defaultNamespace  
-

-
[ Top ]
-
-

- - -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:32 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/Email.html b/apidocs/SalesforceSoapClient/Email.html deleted file mode 100644 index 70373cf..0000000 --- a/apidocs/SalesforceSoapClient/Email.html +++ /dev/null @@ -1,419 +0,0 @@ - - -Docs For Class Email - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Class: Email

-Source Location: /soapclient/SforceEmail.php

- - - - - - - - - -
- -

Class Overview

-

-


- - - - - - - -
-

Methods

- -
-
- - - - - - - - - -
-

Child classes:

- -
-
- - -

Class Details

-
-[line 8]
-


-
[ Top ]

- - -
- -

Class Methods

-
- -
- -

method setBccSender [line 9]

-
-
-
- void setBccSender( - -$bccSender) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $bccSender  
-

-
[ Top ]
-
-
- -

method setEmailPriority [line 13]

-
-
-
- void setEmailPriority( - -$priority) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $priority  
-

-
[ Top ]
-
-
- -

method setReplyTo [line 25]

-
-
-
- void setReplyTo( - -$replyTo) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $replyTo  
-

-
[ Top ]
-
-
- -

method setSaveAsActivity [line 21]

-
-
-
- void setSaveAsActivity( - -$saveAsActivity) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $saveAsActivity  
-

-
[ Top ]
-
-
- -

method setSenderDisplayName [line 33]

-
-
-
- void setSenderDisplayName( - -$name) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $name  
-

-
[ Top ]
-
-
- -

method setSubject [line 17]

-
-
-
- void setSubject( - -$subject) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $subject  
-

-
[ Top ]
-
-
- -

method setUseSignature [line 29]

-
-
-
- void setUseSignature( - -$useSignature) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $useSignature  
-

-
[ Top ]
-
-

- - -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:31 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/EmailHeader.html b/apidocs/SalesforceSoapClient/EmailHeader.html deleted file mode 100644 index dea18fe..0000000 --- a/apidocs/SalesforceSoapClient/EmailHeader.html +++ /dev/null @@ -1,281 +0,0 @@ - - -Docs For Class EmailHeader - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Class: EmailHeader

-Source Location: /soapclient/SforceHeaderOptions.php

- - - - - - - - - - -
- -

Class Overview

-

-


- - - - - - - -
-

Variables

- -
-

Methods

- -
-
- - - - - - - - -
-
- - -

Class Details

-
-[line 123]
-


-
[ Top ]

- -
- -

Class Variables

-
- -

-

$triggerAutoResponseEmail =

-

[line 124]

-

-

Tags:

-
- - - - -
access:  public
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$triggerOtherEmail =

-

[line 125]

-

-

Tags:

-
- - - - -
access:  public
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$triggerUserEmail =

-

[line 126]

-

-

Tags:

-
- - - - -
access:  public
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

-

- -
- -

Class Methods

-
- -
- -

constructor __construct [line 128]

-
-
-
- EmailHeader __construct( -[ -$triggerAutoResponseEmail = false], [ -$triggerOtherEmail = false], [ -$triggerUserEmail = false]) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - - - - - - - - - - - -
  $triggerAutoResponseEmail  
  $triggerOtherEmail  
  $triggerUserEmail  
-

-
[ Top ]
-
-

- - -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:32 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/LoginScopeHeader.html b/apidocs/SalesforceSoapClient/LoginScopeHeader.html deleted file mode 100644 index af4084d..0000000 --- a/apidocs/SalesforceSoapClient/LoginScopeHeader.html +++ /dev/null @@ -1,250 +0,0 @@ - - -Docs For Class LoginScopeHeader - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Class: LoginScopeHeader

-Source Location: /soapclient/SforceHeaderOptions.php

- - - - - - - - - - -
- -

Class Overview

-

-
To be used with the Login operation.


- - - - - - - -
-

Variables

- -
-

Methods

- -
-
- - - - - - - - -
-
- - -

Class Details

-
-[line 93]
-To be used with the Login operation.



-
[ Top ]

- -
- -

Class Variables

-
- -

-

$organizationId =

-

[line 95]

-

-

Tags:

-
- - - - -
access:  public
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$portalId =

-

[line 96]

-

-

Tags:

-
- - - - -
access:  public
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

-

- -
- -

Class Methods

-
- -
- -

constructor __construct [line 98]

-
-
-
- LoginScopeHeader __construct( -[ -$orgId = NULL], [ -$portalId = NULL]) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - - - - - - -
  $orgId  
  $portalId  
-

-
[ Top ]
-
-

- - -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:32 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/MassEmailMessage.html b/apidocs/SalesforceSoapClient/MassEmailMessage.html deleted file mode 100644 index dd26a91..0000000 --- a/apidocs/SalesforceSoapClient/MassEmailMessage.html +++ /dev/null @@ -1,310 +0,0 @@ - - -Docs For Class MassEmailMessage - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Class: MassEmailMessage

-Source Location: /soapclient/SforceEmail.php

- - - - - - - - - -
- -

Class Overview

-
Email
-   |
-   --MassEmailMessage

-


- - - - - - - -
-

Methods

- -
-
- - - - - - - - - -
-

Inherited Methods

- -
-
- - -

Class Details

-
-[line 88]
-


-
[ Top ]

- - -
- -

Class Methods

-
- -
- -

method setTargetObjectIds [line 97]

-
-
-
- void setTargetObjectIds( - -$array) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $array  
-

-
[ Top ]
-
-
- -

method setTemplateId [line 89]

-
-
-
- void setTemplateId( - -$templateId) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $templateId  
-

-
[ Top ]
-
-
- -

method setWhatIds [line 93]

-
-
-
- void setWhatIds( - -$array) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $array  
-

-
[ Top ]
-
-

- - -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:31 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/MruHeader.html b/apidocs/SalesforceSoapClient/MruHeader.html deleted file mode 100644 index afe5950..0000000 --- a/apidocs/SalesforceSoapClient/MruHeader.html +++ /dev/null @@ -1,219 +0,0 @@ - - -Docs For Class MruHeader - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Class: MruHeader

-Source Location: /soapclient/SforceHeaderOptions.php

- - - - - - - - - - -
- -

Class Overview

-

-
To be used with Create and Update operations.


- - - - - - - -
-

Variables

- -
-

Methods

- -
-
- - - - - - - - -
-
- - -

Class Details

-
-[line 79]
-To be used with Create and Update operations.



-
[ Top ]

- -
- -

Class Variables

-
- -

-

$updateMruFlag =

-

[line 81]

-

-

Tags:

-
- - - - -
access:  public
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

-

- -
- -

Class Methods

-
- -
- -

constructor __construct [line 83]

-
-
-
- MruHeader __construct( - -$bool) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $bool  
-

-
[ Top ]
-
-

- - -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:33 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/ProcessRequest.html b/apidocs/SalesforceSoapClient/ProcessRequest.html deleted file mode 100644 index 6b3a234..0000000 --- a/apidocs/SalesforceSoapClient/ProcessRequest.html +++ /dev/null @@ -1,221 +0,0 @@ - - -Docs For Class ProcessRequest - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Class: ProcessRequest

-Source Location: /soapclient/SforceProcessRequest.php

- - - - - - - - - -
- -

Class Overview

-

-


-

Author(s):

-
    -
- - - - - - - -
-

Variables

- -
-
- - - - - - - - - -
-

Child classes:

- -
-
- - -

Class Details

-
-[line 2]
-

-

Tags:

-
- - - - -
abstract:  
-
-


-
[ Top ]

- -
- -

Class Variables

-
- -

-

$comments =

-

[line 3]

-

-

Tags:

-
- - - - -
access:  public
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$nextApproverIds =

-

[line 4]

-

-

Tags:

-
- - - - -
access:  public
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

-

- - - -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:35 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/ProcessSubmitRequest.html b/apidocs/SalesforceSoapClient/ProcessSubmitRequest.html deleted file mode 100644 index e8423c8..0000000 --- a/apidocs/SalesforceSoapClient/ProcessSubmitRequest.html +++ /dev/null @@ -1,193 +0,0 @@ - - -Docs For Class ProcessSubmitRequest - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Class: ProcessSubmitRequest

-Source Location: /soapclient/SforceProcessRequest.php

- - - - - - - - - -
- -

Class Overview

-
ProcessRequest
-   |
-   --ProcessSubmitRequest

-


- - - - - - - -
-

Variables

- -
-
- - - - - - - - - -
-

Inherited Variables

- -
-
- - -

Class Details

-
-[line 7]
-


-
[ Top ]

- -
- -

Class Variables

-
- -

-

$objectId =

-

[line 8]

-

-

Tags:

-
- - - - -
access:  public
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

-

- - - -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:35 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/ProcessWorkitemRequest.html b/apidocs/SalesforceSoapClient/ProcessWorkitemRequest.html deleted file mode 100644 index 2f18720..0000000 --- a/apidocs/SalesforceSoapClient/ProcessWorkitemRequest.html +++ /dev/null @@ -1,218 +0,0 @@ - - -Docs For Class ProcessWorkitemRequest - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Class: ProcessWorkitemRequest

-Source Location: /soapclient/SforceProcessRequest.php

- - - - - - - - - -
- -

Class Overview

-
ProcessRequest
-   |
-   --ProcessWorkitemRequest

-


- - - - - - - -
-

Variables

- -
-
- - - - - - - - - -
-

Inherited Variables

- -
-
- - -

Class Details

-
-[line 11]
-


-
[ Top ]

- -
- -

Class Variables

-
- -

-

$action =

-

[line 12]

-

-

Tags:

-
- - - - -
access:  public
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$workitemId =

-

[line 13]

-

-

Tags:

-
- - - - -
access:  public
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

-

- - - -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:35 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/QueryOptions.html b/apidocs/SalesforceSoapClient/QueryOptions.html deleted file mode 100644 index c154535..0000000 --- a/apidocs/SalesforceSoapClient/QueryOptions.html +++ /dev/null @@ -1,219 +0,0 @@ - - -Docs For Class QueryOptions - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Class: QueryOptions

-Source Location: /soapclient/SforceHeaderOptions.php

- - - - - - - - - - -
- -

Class Overview

-

-
To be used with Retrieve, Query, and QueryMore operations.


- - - - - - - -
-

Variables

- -
-

Methods

- -
-
- - - - - - - - -
-
- - -

Class Details

-
-[line 109]
-To be used with Retrieve, Query, and QueryMore operations.



-
[ Top ]

- -
- -

Class Variables

-
- -

-

$batchSize =

-

[line 111]

-

-

Tags:

-
- - - - -
access:  public
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

-

- -
- -

Class Methods

-
- -
- -

constructor __construct [line 118]

-
-
-
- QueryOptions __construct( -int -$limit) -
-

- - Constructor



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
int  $limit  Batch size
-

-
[ Top ]
-
-

- - -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:33 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/QueryResult.html b/apidocs/SalesforceSoapClient/QueryResult.html deleted file mode 100644 index 507caef..0000000 --- a/apidocs/SalesforceSoapClient/QueryResult.html +++ /dev/null @@ -1,294 +0,0 @@ - - -Docs For Class QueryResult - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Class: QueryResult

-Source Location: /soapclient/SforcePartnerClient.php

- - - - - - - - - - -
- -

Class Overview

-

-


- - - - - - - -
-

Variables

- -
-

Methods

- -
-
- - - - - - - - -
-
- - -

Class Details

-
-[line 155]
-


-
[ Top ]

- -
- -

Class Variables

-
- -

-

$done =

-

[line 157]

-

-

Tags:

-
- - - - -
access:  public
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$queryLocator =

-

[line 156]

-

-

Tags:

-
- - - - -
access:  public
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$records =

-

[line 158]

-

-

Tags:

-
- - - - -
access:  public
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$size =

-

[line 159]

-

-

Tags:

-
- - - - -
access:  public
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

-

- -
- -

Class Methods

-
- -
- -

constructor __construct [line 161]

-
-
-
- QueryResult __construct( - -$response) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $response  
-

-
[ Top ]
-
-

- - -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:34 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/SObject.html b/apidocs/SalesforceSoapClient/SObject.html deleted file mode 100644 index 30a54d9..0000000 --- a/apidocs/SalesforceSoapClient/SObject.html +++ /dev/null @@ -1,328 +0,0 @@ - - -Docs For Class SObject - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Class: SObject

-Source Location: /soapclient/SforcePartnerClient.php

- - - - - - - - - - -
- -

Class Overview

-

-
Salesforce Object


- - - - - - - -
-

Variables

- -
-

Methods

- -
-
- - - - - - - - -
-
- - -

Class Details

-
-[line 187]
-Salesforce Object



-
[ Top ]

- -
- -

Class Variables

-
- -

-

$fields =

-

[line 189]

-

-

Tags:

-
- - - - -
access:  public
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$type =

-

[line 188]

-

-

Tags:

-
- - - - -
access:  public
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

-

- -
- -

Class Methods

-
- -
- -

constructor __construct [line 192]

-
-
-
- SObject __construct( -[ -$response = NULL]) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $response  
-

-
[ Top ]
-
-
- -

method convertFields [line 284]

-
-
-
- void convertFields( - -$any) -
-

- - Parse the "any" string from an sObject. First strip out the sf: and then enclose string with <Object></Object>. Load the string using simplexml_load_string and return an array that can be traversed.



- - -

Parameters:

-
- - - - - - -
  $any  
-

-
[ Top ]
-
-
- -

method isQueryResult [line 294]

-
-
-
- void isQueryResult( - -$param) -
-

- -

- - -

Parameters:

-
- - - - - - -
  $param  
-

-
[ Top ]
-
-
- -

method isSObject [line 301]

-
-
-
- void isSObject( - -$param) -
-

- -

- - -

Parameters:

-
- - - - - - -
  $param  
-

-
[ Top ]
-
-

- - -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:34 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/SforceBaseClient.html b/apidocs/SalesforceSoapClient/SforceBaseClient.html deleted file mode 100644 index dd28b34..0000000 --- a/apidocs/SalesforceSoapClient/SforceBaseClient.html +++ /dev/null @@ -1,2437 +0,0 @@ - - -Docs For Class SforceBaseClient - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Class: SforceBaseClient

-Source Location: /soapclient/SforceBaseClient.php

- - - - - - - - - - -
- -

Class Overview

-

-
SalesforceSoapClient


- - - - - - - -
-

Variables

- -
-

Methods

- -
-
- - - - - - - - - -
-

Child classes:

-
-
-
SforceEnterpriseClient
-
SforceEnterpriseClient class.
-
-
-
SforcePartnerClient
-
SforcePartnerClient class.
-
-
-
-
- - -

Class Details

-
-[line 41]
-SalesforceSoapClient



-
[ Top ]

- -
- -

Class Variables

-
- -

-

$assignmentRuleHeader =

-

[line 51]

-

-

Tags:

-
- - - - -
access:  protected
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$callOptions =

-

[line 50]

-

-

Tags:

-
- - - - -
access:  protected
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$client_id =

-

[line 68]

-

-

Tags:

-
- - - - -
access:  protected
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$emailHeader =

-

[line 52]

-

-

Tags:

-
- - - - -
access:  protected
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$location =

-

[line 44]

-

-

Tags:

-
- - - - -
access:  protected
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$loginScopeHeader =

-

[line 53]

-

-

Tags:

-
- - - - -
access:  protected
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$mruHeader =

-

[line 54]

-

-

Tags:

-
- - - - -
access:  protected
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$namespace =

-

[line 47]

-

-

Tags:

-
- - - - -
access:  protected
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$queryHeader =

-

[line 55]

-

-

Tags:

-
- - - - -
access:  protected
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$sessionHeader =

-

[line 57]

-

-

Tags:

-
- - - - -
access:  protected
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$sessionId =

-

[line 43]

-

-

Tags:

-
- - - - -
access:  protected
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$sforce =

-

[line 42]

-

-

Tags:

-
- - - - -
access:  protected
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$userTerritoryDeleteHeader =

-

[line 56]

-

-

Tags:

-
- - - - -
access:  protected
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$version =  '11.0'

-

[line 45]

-

-

Tags:

-
- - - - -
access:  protected
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

-

- -
- -

Class Methods

-
- -
- -

method convertLead [line 441]

-
-
-
- LeadConvertResult convertLead( -array -$leadConverts) -
-

- - Converts a Lead into an Account, Contact, or (optionally) an Opportunity.



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
array  $leadConverts  Array of LeadConvert
-

-
[ Top ]
-
-
- -

method createConnection [line 94]

-
-
-
- void createConnection( -string -$wsdl, [ -$proxy = null]) -
-

- - Connect method to www.salesforce.com



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - - - - - - -
string  $wsdl  Salesforce.com Partner WSDL
  $proxy  
-

-
[ Top ]
-
-
- -

method delete [line 454]

-
-
-
- DeleteResult delete( -array -$ids) -
-

- - Deletes one or more new individual objects to your organization's data.



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
array  $ids  Array of fields
-

-
[ Top ]
-
-
- -

method describeGlobal [line 530]

-
-
-
- DescribeGlobalResult describeGlobal( -) -
-

- - Retrieves a list of available objects for your organization's data.



-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method describeLayout [line 545]

-
-
-
- DescribeLayoutResult describeLayout( -string -$type) -
-

- - Use describeLayout to retrieve information about the layout (presentation

of data to users) for a given object type. The describeLayout call returns metadata about a given page layout, including layouts for edit and display-only views and record type mappings. Note that field-level security and layout editability affects which fields appear in a layout.




-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
string  $type  Type Object Type
-

-
[ Top ]
-
-
- -

method describeSObject [line 559]

-
-
-
- DescribsSObjectResult describeSObject( -string -$type) -
-

- - Describes metadata (field list and object properties) for the specified object.



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
string  $type  Object type
-

-
[ Top ]
-
-
- -

method describeSObjects [line 573]

-
-
-
- DescribsSObjectResult describeSObjects( -array -$arrayOfTypes) -
-

- - An array-based version of describeSObject; describes metadata (field list and object properties) for the specified object or array of objects.



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
array  $arrayOfTypes  Array of object types.
-

-
[ Top ]
-
-
- -

method describeTabs [line 585]

-
-
-
- DescribeTabSetResult describeTabs( -) -
-

- - The describeTabs call returns information about the standard apps and custom apps, if any, available for the user who sends the call, including the list of tabs defined for each app.



-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method emptyRecycleBin [line 480]

-
-
-
- DeleteResult emptyRecycleBin( -array -$ids) -
-

- - Deletes one or more new individual objects to your organization's data.



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
array  $ids  Array of fields
-

-
[ Top ]
-
-
- -

method getConnection [line 338]

-
-
-
- void getConnection( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method getDeleted [line 599]

-
-
-
- GetDeletedResult getDeleted( -string -$type, date -$startDate, date -$endDate) -
-

- - Retrieves the list of individual objects that have been deleted within the given timespan for the specified object.



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - - - - - - - - - - - -
string  $type  Ojbect type
date  $startDate  Start date
date  $endDate  End Date
-

-
[ Top ]
-
-
- -

method getFunctions [line 342]

-
-
-
- void getFunctions( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method getLastRequest [line 350]

-
-
-
- void getLastRequest( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method getLastRequestHeaders [line 354]

-
-
-
- void getLastRequestHeaders( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method getLastResponse [line 358]

-
-
-
- void getLastResponse( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method getLastResponseHeaders [line 362]

-
-
-
- void getLastResponseHeaders( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method getLocation [line 334]

-
-
-
- void getLocation( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method getNamespace [line 59]

-
-
-
- void getNamespace( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method getServerTimestamp [line 724]

-
-
-
- timestamp getServerTimestamp( -) -
-

- - Retrieves the current system timestamp (GMT) from the Web service.



-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method getSessionId [line 330]

-
-
-
- void getSessionId( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method getTypes [line 346]

-
-
-
- void getTypes( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method getUpdated [line 617]

-
-
-
- GetUpdatedResult getUpdated( -string -$type, date -$startDate, date -$endDate) -
-

- - Retrieves the list of individual objects that have been updated (added or changed) within the given timespan for the specified object.



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - - - - - - - - - - - -
string  $type  Ojbect type
date  $startDate  Start date
date  $endDate  End Date
-

-
[ Top ]
-
-
- -

method getUserInfo [line 729]

-
-
-
- void getUserInfo( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method login [line 144]

-
-
-
- LoginResult login( -string -$username, string -$password) -
-

- - Login to Salesforce.com and starts a client session.



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - - - - - - -
string  $username  Username
string  $password  Password
-

-
[ Top ]
-
-
- -

method printDebugInfo [line 70]

-
-
-
- void printDebugInfo( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method processSubmitRequest [line 493]

-
-
-
- ProcessResult processSubmitRequest( -array -$processRequestArray) -
-

- - Process Submit Request for Approval



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
array  $processRequestArray  
-

-
[ Top ]
-
-
- -

method processWorkitemRequest [line 512]

-
-
-
- ProcessResult processWorkitemRequest( -array -$processRequestArray) -
-

- - Process Work Item Request for Approval



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
array  $processRequestArray  
-

-
[ Top ]
-
-
- -

method query [line 634]

-
-
-
- QueryResult query( -String -$query, QueryOptions -$queryOptions) -
-

- - Executes a query against the specified object and returns data that matches the specified criteria.



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - - - - - - -
String  $query  Query String
QueryOptions  $queryOptions  Batch size limit. OPTIONAL
-

-
[ Top ]
-
-
- -

method queryAll [line 666]

-
-
-
- QueryResult queryAll( -String -$query, [QueryOptions -$queryOptions = NULL]) -
-

- - Retrieves data from specified objects, whether or not they have been deleted.



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - - - - - - -
String  $query  Query String
QueryOptions  $queryOptions  Batch size limit. OPTIONAL
-

-
[ Top ]
-
-
- -

method queryMore [line 650]

-
-
-
- QueryResult queryMore( -QueryLocator -$queryLocator, QueryOptions -$queryOptions) -
-

- - Retrieves the next batch of objects from a query.



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - - - - - - -
QueryLocator  $queryLocator  Represents the server-side cursor that tracks the current processing location in the query result set.
QueryOptions  $queryOptions  Batch size limit. OPTIONAL
-

-
[ Top ]
-
-
- -

method resetPassword [line 754]

-
-
-
- password resetPassword( -string -$userId) -
-

- - Changes a user's password to a system-generated value.



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
string  $userId  Id of the User
-

-
[ Top ]
-
-
- -

method retrieve [line 697]

-
-
-
- sObject[] retrieve( -string -$fieldList, string -$sObjectType, array -$ids) -
-

- - Retrieves one or more objects based on the specified object IDs.



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - - - - - - - - - - - -
string  $fieldList  One or more fields separated by commas.
string  $sObjectType  Object from which to retrieve data.
array  $ids  Array of one or more IDs of the objects to retrieve.
-

-
[ Top ]
-
-
- -

method search [line 712]

-
-
-
- SearchResult search( -string -$searchString) -
-

- - Executes a text search in your organization's data.



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
string  $searchString  Search string that specifies the text expression to search for.
-

-
[ Top ]
-
-
- -

method sendMassEmail [line 414]

-
-
-
- void sendMassEmail( - -$request) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- -

Overridden in child classes as:
-

-
SforcePartnerClient::sendMassEmail()
-
-
-

- -

Parameters:

-
- - - - - - -
  $request  
-

-
[ Top ]
-
-
- -

method sendSingleEmail [line 399]

-
-
-
- void sendSingleEmail( - -$request) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- -

Overridden in child classes as:
-

-
SforcePartnerClient::sendSingleEmail()
-
-
-

- -

Parameters:

-
- - - - - - -
  $request  
-

-
[ Top ]
-
-
- -

method setAssignmentRuleHeader [line 253]

-
-
-
- void setAssignmentRuleHeader( - -$header) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $header  
-

-
[ Top ]
-
-
- -

method setCallOptions [line 125]

-
-
-
- void setCallOptions( - -$header) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $header  
-

-
[ Top ]
-
-
- -

method setEmailHeader [line 264]

-
-
-
- void setEmailHeader( - -$header) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $header  
-

-
[ Top ]
-
-
- -

method setEndpoint [line 177]

-
-
-
- void setEndpoint( -string -$location) -
-

- - Set the endpoint.



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
string  $location  Location
-

-
[ Top ]
-
-
- -

method setLoginScopeHeader [line 276]

-
-
-
- void setLoginScopeHeader( - -$header) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $header  
-

-
[ Top ]
-
-
- -

method setMruHeader [line 288]

-
-
-
- void setMruHeader( - -$header) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $header  
-

-
[ Top ]
-
-
- -

method setPassword [line 740]

-
-
-
- void setPassword( -string -$userId, string -$password) -
-

- - Sets the specified user's password to the specified value.



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - - - - - - -
string  $userId  ID of the User.
string  $password  New password
-

-
[ Top ]
-
-
- -

method setQueryOptions [line 320]

-
-
-
- void setQueryOptions( - -$header) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $header  
-

-
[ Top ]
-
-
- -

method setSessionHeader [line 298]

-
-
-
- void setSessionHeader( - -$id) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $id  
-

-
[ Top ]
-
-
- -

method setUserTerritoryDeleteHeader [line 310]

-
-
-
- void setUserTerritoryDeleteHeader( - -$header) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $header  
-

-
[ Top ]
-
-
- -

method undelete [line 467]

-
-
-
- DeleteResult undelete( -array -$ids) -
-

- - Deletes one or more new individual objects to your organization's data.



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
array  $ids  Array of fields
-

-
[ Top ]
-
-
- -

method _convertToAny [line 366]

-
-
-
- void _convertToAny( - -$fields) -
-

- -

-

Tags:

-
- - - - -
access:  protected
-
-

- - -

Parameters:

-
- - - - - - -
  $fields  
-

-
[ Top ]
-
-
- -

method _create [line 374]

-
-
-
- void _create( - -$arg) -
-

- -

-

Tags:

-
- - - - -
access:  protected
-
-

- - -

Parameters:

-
- - - - - - -
  $arg  
-

-
[ Top ]
-
-
- -

method _merge [line 379]

-
-
-
- void _merge( - -$arg) -
-

- -

-

Tags:

-
- - - - -
access:  protected
-
-

- - -

Parameters:

-
- - - - - - -
  $arg  
-

-
[ Top ]
-
-
- -

method _process [line 384]

-
-
-
- void _process( - -$arg) -
-

- -

-

Tags:

-
- - - - -
access:  protected
-
-

- - -

Parameters:

-
- - - - - - -
  $arg  
-

-
[ Top ]
-
-
- -

method _sendEmail [line 429]

-
-
-
- void _sendEmail( - -$arg) -
-

- -

-

Tags:

-
- - - - -
access:  protected
-
-

- - -

Parameters:

-
- - - - - - -
  $arg  
-

-
[ Top ]
-
-
- -

method _setLoginHeader [line 165]

-
-
-
- void _setLoginHeader( - -$loginResult) -
-

- - Specifies the session ID returned from the login server after a successful login.



-

Tags:

-
- - - - -
access:  protected
-
-

- - -

Parameters:

-
- - - - - - -
  $loginResult  
-

-
[ Top ]
-
-
- -

method _update [line 389]

-
-
-
- void _update( - -$arg) -
-

- -

-

Tags:

-
- - - - -
access:  protected
-
-

- - -

Parameters:

-
- - - - - - -
  $arg  
-

-
[ Top ]
-
-
- -

method _upsert [line 394]

-
-
-
- void _upsert( - -$arg) -
-

- -

-

Tags:

-
- - - - -
access:  protected
-
-

- - -

Parameters:

-
- - - - - - -
  $arg  
-

-
[ Top ]
-
-

- - -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:29 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/SforceCustomField.html b/apidocs/SalesforceSoapClient/SforceCustomField.html deleted file mode 100644 index e5f193c..0000000 --- a/apidocs/SalesforceSoapClient/SforceCustomField.html +++ /dev/null @@ -1,1183 +0,0 @@ - - -Docs For Class SforceCustomField - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Class: SforceCustomField

-Source Location: /soapclient/SforceMetaObject.php

- - - - - - - - - -
- -

Class Overview

-

-


- - - - - - - -
-

Methods

- -
-
- - - - - - - - -
-
- - -

Class Details

-
-[line 62]
-


-
[ Top ]

- - -
- -

Class Methods

-
- -
- -

method setCaseSensitive [line 63]

-
-
-
- void setCaseSensitive( - -$caseSensitive) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $caseSensitive  
-

-
[ Top ]
-
-
- -

method setDefaultValue [line 67]

-
-
-
- void setDefaultValue( - -$defaultValue) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $defaultValue  
-

-
[ Top ]
-
-
- -

method setDescription [line 71]

-
-
-
- void setDescription( - -$description) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $description  
-

-
[ Top ]
-
-
- -

method setDisplayFormat [line 75]

-
-
-
- void setDisplayFormat( - -$displayFormat) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $displayFormat  
-

-
[ Top ]
-
-
- -

method setExternalId [line 79]

-
-
-
- void setExternalId( - -$externalId) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $externalId  
-

-
[ Top ]
-
-
- -

method setFormula [line 83]

-
-
-
- void setFormula( - -$formula) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $formula  
-

-
[ Top ]
-
-
- -

method setFormulaTreatBlankAs [line 87]

-
-
-
- void setFormulaTreatBlankAs( - -$formulaTreatBlankAs) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $formulaTreatBlankAs  
-

-
[ Top ]
-
-
- -

method setFullName [line 91]

-
-
-
- void setFullName( - -$fullName) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $fullName  
-

-
[ Top ]
-
-
- -

method setInlineHelpText [line 95]

-
-
-
- void setInlineHelpText( - -$inlineHelpText) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $inlineHelpText  
-

-
[ Top ]
-
-
- -

method setLabel [line 99]

-
-
-
- void setLabel( - -$label) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $label  
-

-
[ Top ]
-
-
- -

method setLength [line 103]

-
-
-
- void setLength( - -$length) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $length  
-

-
[ Top ]
-
-
- -

method setMaskChar [line 107]

-
-
-
- void setMaskChar( - -$maskChar) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $maskChar  
-

-
[ Top ]
-
-
- -

method setMaskType [line 111]

-
-
-
- void setMaskType( - -$maskType) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $maskType  
-

-
[ Top ]
-
-
- -

method setPicklist [line 115]

-
-
-
- void setPicklist( - -$picklist) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $picklist  
-

-
[ Top ]
-
-
- -

method setPopulateExistingRows [line 119]

-
-
-
- void setPopulateExistingRows( - -$populateExistingRows) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $populateExistingRows  
-

-
[ Top ]
-
-
- -

method setPrecision [line 123]

-
-
-
- void setPrecision( - -$precision) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $precision  
-

-
[ Top ]
-
-
- -

method setReferenceTo [line 127]

-
-
-
- void setReferenceTo( - -$referenceTo) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $referenceTo  
-

-
[ Top ]
-
-
- -

method setRelationshipName [line 131]

-
-
-
- void setRelationshipName( - -$relationshipName) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $relationshipName  
-

-
[ Top ]
-
-
- -

method setRequired [line 135]

-
-
-
- void setRequired( - -$required) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $required  
-

-
[ Top ]
-
-
- -

method setScale [line 139]

-
-
-
- void setScale( - -$scale) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $scale  
-

-
[ Top ]
-
-
- -

method setStartingNumber [line 143]

-
-
-
- void setStartingNumber( - -$startingNumber) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $startingNumber  
-

-
[ Top ]
-
-
- -

method setSummarizeField [line 147]

-
-
-
- void setSummarizeField( - -$summarizeField) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $summarizeField  
-

-
[ Top ]
-
-
- -

method setSummaryFilterItems [line 151]

-
-
-
- void setSummaryFilterItems( - -$summaryFilterItems) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $summaryFilterItems  
-

-
[ Top ]
-
-
- -

method setSummaryForeignKey [line 155]

-
-
-
- void setSummaryForeignKey( - -$summaryForeignKey) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $summaryForeignKey  
-

-
[ Top ]
-
-
- -

method setSummaryOperation [line 159]

-
-
-
- void setSummaryOperation( - -$summaryOperation) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $summaryOperation  
-

-
[ Top ]
-
-
- -

method setType [line 163]

-
-
-
- void setType( - -$type) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $type  
-

-
[ Top ]
-
-
- -

method setUnique [line 167]

-
-
-
- void setUnique( - -$unique) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $unique  
-

-
[ Top ]
-
-
- -

method setVisibleLines [line 171]

-
-
-
- void setVisibleLines( - -$visibleLines) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $visibleLines  
-

-
[ Top ]
-
-

- - -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:33 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/SforceCustomObject.html b/apidocs/SalesforceSoapClient/SforceCustomObject.html deleted file mode 100644 index d8d16f7..0000000 --- a/apidocs/SalesforceSoapClient/SforceCustomObject.html +++ /dev/null @@ -1,665 +0,0 @@ - - -Docs For Class SforceCustomObject - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Class: SforceCustomObject

-Source Location: /soapclient/SforceMetaObject.php

- - - - - - - - - -
- -

Class Overview

-

-


- - - - - - - -
-

Methods

- -
-
- - - - - - - - -
-
- - -

Class Details

-
-[line 4]
-


-
[ Top ]

- - -
- -

Class Methods

-
- -
- -

method setDeploymentStatus [line 5]

-
-
-
- void setDeploymentStatus( - -$deploymentStatus) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $deploymentStatus  
-

-
[ Top ]
-
-
- -

method setDescription [line 9]

-
-
-
- void setDescription( - -$description) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $description  
-

-
[ Top ]
-
-
- -

method setEnableActivities [line 13]

-
-
-
- void setEnableActivities( - -$enableActivities) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $enableActivities  
-

-
[ Top ]
-
-
- -

method setEnableDivisions [line 17]

-
-
-
- void setEnableDivisions( - -$enableDivisions) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $enableDivisions  
-

-
[ Top ]
-
-
- -

method setEnableHistory [line 21]

-
-
-
- void setEnableHistory( - -$enableHistory) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $enableHistory  
-

-
[ Top ]
-
-
- -

method setEnableReports [line 25]

-
-
-
- void setEnableReports( - -$enableReports) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $enableReports  
-

-
[ Top ]
-
-
- -

method setFields [line 29]

-
-
-
- void setFields( - -$fields) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $fields  
-

-
[ Top ]
-
-
- -

method setFullName [line 33]

-
-
-
- void setFullName( - -$fullName) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $fullName  
-

-
[ Top ]
-
-
- -

method setGender [line 37]

-
-
-
- void setGender( - -$gender) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $gender  
-

-
[ Top ]
-
-
- -

method setHousehold [line 41]

-
-
-
- void setHousehold( - -$household) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $household  
-

-
[ Top ]
-
-
- -

method setLabel [line 45]

-
-
-
- void setLabel( - -$label) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $label  
-

-
[ Top ]
-
-
- -

method setNameField [line 49]

-
-
-
- void setNameField( - -$nameField) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $nameField  
-

-
[ Top ]
-
-
- -

method setPluralLabel [line 53]

-
-
-
- void setPluralLabel( - -$pluralLabel) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $pluralLabel  
-

-
[ Top ]
-
-
- -

method setStartsWith [line 57]

-
-
-
- void setStartsWith( - -$startsWith) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $startsWith  
-

-
[ Top ]
-
-

- - -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:34 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/SforceEnterpriseClient.html b/apidocs/SalesforceSoapClient/SforceEnterpriseClient.html deleted file mode 100644 index 1289527..0000000 --- a/apidocs/SalesforceSoapClient/SforceEnterpriseClient.html +++ /dev/null @@ -1,804 +0,0 @@ - - -Docs For Class SforceEnterpriseClient - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Class: SforceEnterpriseClient

-Source Location: /soapclient/SforceEnterpriseClient.php

- - - - - - - - - - -
- -

Class Overview

-
SforceBaseClient
-   |
-   --SforceEnterpriseClient

-
SforceEnterpriseClient class.


- - - - - - - -
-

Constants

- -
-

Methods

- -
-
- - - - - - - - - - -
-

Inherited Variables

- -
-

Inherited Methods

-
-

Class: SforceBaseClient

-
-
- SforceBaseClient::convertLead() -
-
- Converts a Lead into an Account, Contact, or (optionally) an Opportunity. -
-
- SforceBaseClient::createConnection() -
-
- Connect method to www.salesforce.com -
-
- SforceBaseClient::delete() -
-
- Deletes one or more new individual objects to your organization's data. -
-
- SforceBaseClient::describeGlobal() -
-
- Retrieves a list of available objects for your organization's data. -
-
- SforceBaseClient::describeLayout() -
-
- Use describeLayout to retrieve information about the layout (presentation -
-
- SforceBaseClient::describeSObject() -
-
- Describes metadata (field list and object properties) for the specified object. -
-
- SforceBaseClient::describeSObjects() -
-
- An array-based version of describeSObject; describes metadata (field list and object properties) for the specified object or array of objects. -
-
- SforceBaseClient::describeTabs() -
-
- The describeTabs call returns information about the standard apps and custom apps, if any, available for the user who sends the call, including the list of tabs defined for each app. -
-
- SforceBaseClient::emptyRecycleBin() -
-
- Deletes one or more new individual objects to your organization's data. -
-
- SforceBaseClient::getConnection() -
-
- -
-
- SforceBaseClient::getDeleted() -
-
- Retrieves the list of individual objects that have been deleted within the given timespan for the specified object. -
-
- SforceBaseClient::getFunctions() -
-
- -
-
- SforceBaseClient::getLastRequest() -
-
- -
-
- SforceBaseClient::getLastRequestHeaders() -
-
- -
-
- SforceBaseClient::getLastResponse() -
-
- -
-
- SforceBaseClient::getLastResponseHeaders() -
-
- -
-
- SforceBaseClient::getLocation() -
-
- -
-
- SforceBaseClient::getNamespace() -
-
- -
-
- SforceBaseClient::getServerTimestamp() -
-
- Retrieves the current system timestamp (GMT) from the Web service. -
-
- SforceBaseClient::getSessionId() -
-
- -
-
- SforceBaseClient::getTypes() -
-
- -
-
- SforceBaseClient::getUpdated() -
-
- Retrieves the list of individual objects that have been updated (added or changed) within the given timespan for the specified object. -
-
- SforceBaseClient::getUserInfo() -
-
- -
-
- SforceBaseClient::login() -
-
- Login to Salesforce.com and starts a client session. -
-
- SforceBaseClient::printDebugInfo() -
-
- -
-
- SforceBaseClient::processSubmitRequest() -
-
- Process Submit Request for Approval -
-
- SforceBaseClient::processWorkitemRequest() -
-
- Process Work Item Request for Approval -
-
- SforceBaseClient::query() -
-
- Executes a query against the specified object and returns data that matches the specified criteria. -
-
- SforceBaseClient::queryAll() -
-
- Retrieves data from specified objects, whether or not they have been deleted. -
-
- SforceBaseClient::queryMore() -
-
- Retrieves the next batch of objects from a query. -
-
- SforceBaseClient::resetPassword() -
-
- Changes a user's password to a system-generated value. -
-
- SforceBaseClient::retrieve() -
-
- Retrieves one or more objects based on the specified object IDs. -
-
- SforceBaseClient::search() -
-
- Executes a text search in your organization's data. -
-
- SforceBaseClient::sendMassEmail() -
-
- -
-
- SforceBaseClient::sendSingleEmail() -
-
- -
-
- SforceBaseClient::setAssignmentRuleHeader() -
-
- -
-
- SforceBaseClient::setCallOptions() -
-
- -
-
- SforceBaseClient::setEmailHeader() -
-
- -
-
- SforceBaseClient::setEndpoint() -
-
- Set the endpoint. -
-
- SforceBaseClient::setLoginScopeHeader() -
-
- -
-
- SforceBaseClient::setMruHeader() -
-
- -
-
- SforceBaseClient::setPassword() -
-
- Sets the specified user's password to the specified value. -
-
- SforceBaseClient::setQueryOptions() -
-
- -
-
- SforceBaseClient::setSessionHeader() -
-
- -
-
- SforceBaseClient::setUserTerritoryDeleteHeader() -
-
- -
-
- SforceBaseClient::undelete() -
-
- Deletes one or more new individual objects to your organization's data. -
-
- SforceBaseClient::_convertToAny() -
-
- -
-
- SforceBaseClient::_create() -
-
- -
-
- SforceBaseClient::_merge() -
-
- -
-
- SforceBaseClient::_process() -
-
- -
-
- SforceBaseClient::_sendEmail() -
-
- -
-
- SforceBaseClient::_setLoginHeader() -
-
- Specifies the session ID returned from the login server after a successful login. -
-
- SforceBaseClient::_update() -
-
- -
-
- SforceBaseClient::_upsert() -
-
- -
-
-
-
-
- - -

Class Details

-
-[line 38]
-SforceEnterpriseClient class.



-
[ Top ]

- - -
- -

Class Methods

-
- -
- -

constructor SforceEnterpriseClient [line 41]

-
-
-
- SforceEnterpriseClient SforceEnterpriseClient( -) -
-

- -

- - -
[ Top ]
-
-
- -

method create [line 52]

-
-
-
- SaveResult create( -array -$sObjects, -$type, AssignmentRuleHeader -$assignment_header, MruHeader -$mru_header) -
-

- - Adds one or more new individual objects to your organization's data.



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - - - - - - - - - - - - - - - - -
array  $sObjects  Array of one or more sObjects (up to 200) to create.
AssignmentRuleHeader  $assignment_header  is optional. Defaults to NULL
MruHeader  $mru_header  is optional. Defaults to NULL
  $type  
-

-
[ Top ]
-
-
- -

method merge [line 103]

-
-
-
- unknown merge( -stdclass -$mergeRequest, String -$type) -
-

- - Merge records



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - - - - - - -
stdclass  $mergeRequest  
String  $type  
-

-
[ Top ]
-
-
- -

method update [line 68]

-
-
-
- UpdateResult update( -array -$sObjects, -$type, [AssignmentRuleHeader -$assignment_header = NULL], [MruHeader -$mru_header = NULL]) -
-

- - Updates one or more new individual objects to your organization's data.



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - - - - - - - - - - - - - - - - -
AssignmentRuleHeader  $assignment_header  is optional. Defaults to NULL
MruHeader  $mru_header  is optional. Defaults to NULL
array  $sObjects  sObjects Array of sObjects
  $type  
-

-
[ Top ]
-
-
- -

method upsert [line 86]

-
-
-
- UpsertResult upsert( -string -$ext_Id, array -$sObjects) -
-

- - Creates new objects and updates existing objects; uses a custom field to determine the presence of existing objects. In most cases, we recommend that you use upsert instead of create because upsert is idempotent.

Available in the API version 7.0 and later.




-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - - - - - - -
string  $ext_Id  External Id
array  $sObjects  Array of sObjects
-

-
[ Top ]
-
-

- -
- -

Class Constants

-
- -

-

ENTERPRISE_NAMESPACE =  'urn:enterprise.soap.sforce.com'

-

[line 39]

- -
-
[ Top ]

-

- -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:31 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/SforceMetadataClient.html b/apidocs/SalesforceSoapClient/SforceMetadataClient.html deleted file mode 100644 index e612081..0000000 --- a/apidocs/SalesforceSoapClient/SforceMetadataClient.html +++ /dev/null @@ -1,632 +0,0 @@ - - -Docs For Class SforceMetadataClient - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Class: SforceMetadataClient

-Source Location: /soapclient/SforceMetadataClient.php

- - - - - - - - - - -
- -

Class Overview

-

-


- - - - - - - -
-

Variables

- -
-

Methods

- -
-
- - - - - - - - -
-
- - -

Class Details

-
-[line 4]
-


-
[ Top ]

- -
- -

Class Variables

-
- -

-

$location =

-

[line 7]

-

-

Tags:

-
- - - - -
access:  protected
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$namespace =  'http://soap.sforce.com/2006/04/metadata'

-

[line 9]

-

-

Tags:

-
- - - - -
access:  protected
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$sessionId =

-

[line 6]

-

-

Tags:

-
- - - - -
access:  protected
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$sforce =

-

[line 5]

-

-

Tags:

-
- - - - -
access:  public
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

-

- -
- -

Class Methods

-
- -
- -

constructor __construct [line 11]

-
-
-
- SforceMetadataClient __construct( - -$wsdl, -$loginResult, -$sforceConn) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - - - - - - - - - - - -
  $wsdl  
  $loginResult  
  $sforceConn  
-

-
[ Top ]
-
-
- -

method checkStatus [line 101]

-
-
-
- void checkStatus( - -$ids) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $ids  
-

-
[ Top ]
-
-
- -

method create [line 89]

-
-
-
- void create( - -$obj) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $obj  
-

-
[ Top ]
-
-
- -

method delete [line 95]

-
-
-
- void delete( - -$obj) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $obj  
-

-
[ Top ]
-
-
- -

method getLastRequest [line 105]

-
-
-
- void getLastRequest( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method getLastRequestHeaders [line 109]

-
-
-
- void getLastRequestHeaders( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method getLastResponse [line 113]

-
-
-
- void getLastResponse( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method getLastResponseHeaders [line 117]

-
-
-
- void getLastResponseHeaders( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method setEndpoint [line 66]

-
-
-
- void setEndpoint( -string -$location) -
-

- - Set the endpoint.



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
string  $location  Location
-

-
[ Top ]
-
-
- -

method setSessionHeader [line 76]

-
-
-
- void setSessionHeader( -string -$sessionId) -
-

- - Set the Session ID



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
string  $sessionId  Session ID
-

-
[ Top ]
-
-
- -

method _setLoginHeader [line 54]

-
-
-
- void _setLoginHeader( - -$loginResult) -
-

- - Specifies the session ID returned from the login server after a successful login.



-

Tags:

-
- - - - -
access:  protected
-
-

- - -

Parameters:

-
- - - - - - -
  $loginResult  
-

-
[ Top ]
-
-

- - -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:33 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/SforcePartnerClient.html b/apidocs/SalesforceSoapClient/SforcePartnerClient.html deleted file mode 100644 index 11f7009..0000000 --- a/apidocs/SalesforceSoapClient/SforcePartnerClient.html +++ /dev/null @@ -1,866 +0,0 @@ - - -Docs For Class SforcePartnerClient - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Class: SforcePartnerClient

-Source Location: /soapclient/SforcePartnerClient.php

- - - - - - - - - - -
- -

Class Overview

-
SforceBaseClient
-   |
-   --SforcePartnerClient

-
SforcePartnerClient class.


- - - - - - - -
-

Constants

- -
-

Methods

- -
-
- - - - - - - - - - -
-

Inherited Variables

- -
-

Inherited Methods

-
-

Class: SforceBaseClient

-
-
- SforceBaseClient::convertLead() -
-
- Converts a Lead into an Account, Contact, or (optionally) an Opportunity. -
-
- SforceBaseClient::createConnection() -
-
- Connect method to www.salesforce.com -
-
- SforceBaseClient::delete() -
-
- Deletes one or more new individual objects to your organization's data. -
-
- SforceBaseClient::describeGlobal() -
-
- Retrieves a list of available objects for your organization's data. -
-
- SforceBaseClient::describeLayout() -
-
- Use describeLayout to retrieve information about the layout (presentation -
-
- SforceBaseClient::describeSObject() -
-
- Describes metadata (field list and object properties) for the specified object. -
-
- SforceBaseClient::describeSObjects() -
-
- An array-based version of describeSObject; describes metadata (field list and object properties) for the specified object or array of objects. -
-
- SforceBaseClient::describeTabs() -
-
- The describeTabs call returns information about the standard apps and custom apps, if any, available for the user who sends the call, including the list of tabs defined for each app. -
-
- SforceBaseClient::emptyRecycleBin() -
-
- Deletes one or more new individual objects to your organization's data. -
-
- SforceBaseClient::getConnection() -
-
- -
-
- SforceBaseClient::getDeleted() -
-
- Retrieves the list of individual objects that have been deleted within the given timespan for the specified object. -
-
- SforceBaseClient::getFunctions() -
-
- -
-
- SforceBaseClient::getLastRequest() -
-
- -
-
- SforceBaseClient::getLastRequestHeaders() -
-
- -
-
- SforceBaseClient::getLastResponse() -
-
- -
-
- SforceBaseClient::getLastResponseHeaders() -
-
- -
-
- SforceBaseClient::getLocation() -
-
- -
-
- SforceBaseClient::getNamespace() -
-
- -
-
- SforceBaseClient::getServerTimestamp() -
-
- Retrieves the current system timestamp (GMT) from the Web service. -
-
- SforceBaseClient::getSessionId() -
-
- -
-
- SforceBaseClient::getTypes() -
-
- -
-
- SforceBaseClient::getUpdated() -
-
- Retrieves the list of individual objects that have been updated (added or changed) within the given timespan for the specified object. -
-
- SforceBaseClient::getUserInfo() -
-
- -
-
- SforceBaseClient::login() -
-
- Login to Salesforce.com and starts a client session. -
-
- SforceBaseClient::printDebugInfo() -
-
- -
-
- SforceBaseClient::processSubmitRequest() -
-
- Process Submit Request for Approval -
-
- SforceBaseClient::processWorkitemRequest() -
-
- Process Work Item Request for Approval -
-
- SforceBaseClient::query() -
-
- Executes a query against the specified object and returns data that matches the specified criteria. -
-
- SforceBaseClient::queryAll() -
-
- Retrieves data from specified objects, whether or not they have been deleted. -
-
- SforceBaseClient::queryMore() -
-
- Retrieves the next batch of objects from a query. -
-
- SforceBaseClient::resetPassword() -
-
- Changes a user's password to a system-generated value. -
-
- SforceBaseClient::retrieve() -
-
- Retrieves one or more objects based on the specified object IDs. -
-
- SforceBaseClient::search() -
-
- Executes a text search in your organization's data. -
-
- SforceBaseClient::sendMassEmail() -
-
- -
-
- SforceBaseClient::sendSingleEmail() -
-
- -
-
- SforceBaseClient::setAssignmentRuleHeader() -
-
- -
-
- SforceBaseClient::setCallOptions() -
-
- -
-
- SforceBaseClient::setEmailHeader() -
-
- -
-
- SforceBaseClient::setEndpoint() -
-
- Set the endpoint. -
-
- SforceBaseClient::setLoginScopeHeader() -
-
- -
-
- SforceBaseClient::setMruHeader() -
-
- -
-
- SforceBaseClient::setPassword() -
-
- Sets the specified user's password to the specified value. -
-
- SforceBaseClient::setQueryOptions() -
-
- -
-
- SforceBaseClient::setSessionHeader() -
-
- -
-
- SforceBaseClient::setUserTerritoryDeleteHeader() -
-
- -
-
- SforceBaseClient::undelete() -
-
- Deletes one or more new individual objects to your organization's data. -
-
- SforceBaseClient::_convertToAny() -
-
- -
-
- SforceBaseClient::_create() -
-
- -
-
- SforceBaseClient::_merge() -
-
- -
-
- SforceBaseClient::_process() -
-
- -
-
- SforceBaseClient::_sendEmail() -
-
- -
-
- SforceBaseClient::_setLoginHeader() -
-
- Specifies the session ID returned from the login server after a successful login. -
-
- SforceBaseClient::_update() -
-
- -
-
- SforceBaseClient::_upsert() -
-
- -
-
-
-
-
- - -

Class Details

-
-[line 40]
-SforcePartnerClient class.



-
[ Top ]

- - -
- -

Class Methods

-
- -
- -

constructor SforcePartnerClient [line 43]

-
-
-
- SforcePartnerClient SforcePartnerClient( -) -
-

- -

- - -
[ Top ]
-
-
- -

method create [line 54]

-
-
-
- SaveResult create( -array -$sObjects, AssignmentRuleHeader -$assignment_header, MruHeader -$mru_header) -
-

- - Adds one or more new individual objects to your organization's data.



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - - - - - - - - - - - -
array  $sObjects  Array of one or more sObjects (up to 200) to create.
AssignmentRuleHeader  $assignment_header  is optional. Defaults to NULL
MruHeader  $mru_header  is optional. Defaults to NULL
-

-
[ Top ]
-
-
- -

method merge [line 72]

-
-
-
- unknown merge( -stdclass -$mergeRequest, String -$type) -
-

- - Merge records



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - - - - - - -
stdclass  $mergeRequest  
String  $type  
-

-
[ Top ]
-
-
- -

method sendMassEmail [line 98]

-
-
-
- void sendMassEmail( - -$request) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - Overrides SforceBaseClient::sendMassEmail() (parent method not documented)

-

Parameters:

-
- - - - - - -
  $request  
-

-
[ Top ]
-
-
- -

method sendSingleEmail [line 83]

-
-
-
- void sendSingleEmail( - -$request) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - Overrides SforceBaseClient::sendSingleEmail() (parent method not documented)

-

Parameters:

-
- - - - - - -
  $request  
-

-
[ Top ]
-
-
- -

method update [line 120]

-
-
-
- UpdateResult update( -array -$sObjects, AssignmentRuleHeader -$assignment_header, MruHeader -$mru_header) -
-

- - Updates one or more new individual objects to your organization's data.



-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - - - - - - - - - - - -
AssignmentRuleHeader  $assignment_header  is optional. Defaults to NULL
MruHeader  $mru_header  is optional. Defaults to NULL
array  $sObjects  sObjects Array of sObjects
-

-
[ Top ]
-
-
- -

method upsert [line 141]

-
-
-
- UpsertResult upsert( -string -$ext_Id, array -$sObjects) -
-

- - Creates new objects and updates existing objects; uses a custom field to determine the presence of existing objects. In most cases, we recommend that you use upsert instead of create because upsert is idempotent.

Available in the API version 7.0 and later.




-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - - - - - - -
string  $ext_Id  External Id
array  $sObjects  Array of sObjects
-

-
[ Top ]
-
-

- -
- -

Class Constants

-
- -

-

PARTNER_NAMESPACE =  'urn:partner.soap.sforce.com'

-

[line 41]

- -
-
[ Top ]

-

- -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:34 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/SingleEmailMessage.html b/apidocs/SalesforceSoapClient/SingleEmailMessage.html deleted file mode 100644 index 760d7c5..0000000 --- a/apidocs/SalesforceSoapClient/SingleEmailMessage.html +++ /dev/null @@ -1,667 +0,0 @@ - - -Docs For Class SingleEmailMessage - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Class: SingleEmailMessage

-Source Location: /soapclient/SforceEmail.php

- - - - - - - - - - -
- -

Class Overview

-
Email
-   |
-   --SingleEmailMessage

-


- - - - - - - -
-

Variables

- -
-

Methods

- -
-
- - - - - - - - - -
-

Inherited Methods

- -
-
- - -

Class Details

-
-[line 38]
-


-
[ Top ]

- -
- -

Class Variables

-
- -

-

$ccAddresses =

-

[line 45]

-

-

Tags:

-
- - - - -
access:  public
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

-

- -
- -

Class Methods

-
- -
- -

constructor __construct [line 39]

-
-
-
- SingleEmailMessage __construct( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method setBccAddresses [line 42]

-
-
-
- void setBccAddresses( - -$addresses) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $addresses  
-

-
[ Top ]
-
-
- -

method setCcAddresses [line 47]

-
-
-
- void setCcAddresses( - -$addresses) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $addresses  
-

-
[ Top ]
-
-
- -

method setCharset [line 51]

-
-
-
- void setCharset( - -$charset) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $charset  
-

-
[ Top ]
-
-
- -

method setDocumentAttachments [line 83]

-
-
-
- void setDocumentAttachments( - -$array) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $array  
-

-
[ Top ]
-
-
- -

method setFileAttachments [line 79]

-
-
-
- void setFileAttachments( - -$array) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $array  
-

-
[ Top ]
-
-
- -

method setHtmlBody [line 55]

-
-
-
- void setHtmlBody( - -$htmlBody) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $htmlBody  
-

-
[ Top ]
-
-
- -

method setPlainTextBody [line 59]

-
-
-
- void setPlainTextBody( - -$plainTextBody) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $plainTextBody  
-

-
[ Top ]
-
-
- -

method setTargetObjectId [line 63]

-
-
-
- void setTargetObjectId( - -$targetObjectId) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $targetObjectId  
-

-
[ Top ]
-
-
- -

method setTemplateId [line 67]

-
-
-
- void setTemplateId( - -$templateId) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $templateId  
-

-
[ Top ]
-
-
- -

method setToAddresses [line 71]

-
-
-
- void setToAddresses( - -$array) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $array  
-

-
[ Top ]
-
-
- -

method setWhatId [line 75]

-
-
-
- void setWhatId( - -$whatId) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $whatId  
-

-
[ Top ]
-
-

- - -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:31 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/UserTerritoryDeleteHeader.html b/apidocs/SalesforceSoapClient/UserTerritoryDeleteHeader.html deleted file mode 100644 index 9f608c2..0000000 --- a/apidocs/SalesforceSoapClient/UserTerritoryDeleteHeader.html +++ /dev/null @@ -1,219 +0,0 @@ - - -Docs For Class UserTerritoryDeleteHeader - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Class: UserTerritoryDeleteHeader

-Source Location: /soapclient/SforceHeaderOptions.php

- - - - - - - - - - -
- -

Class Overview

-

-


- - - - - - - -
-

Variables

- -
-

Methods

- -
-
- - - - - - - - -
-
- - -

Class Details

-
-[line 135]
-


-
[ Top ]

- -
- -

Class Variables

-
- -

-

$transferToUserId =

-

[line 136]

-

-

Tags:

-
- - - - -
access:  public
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

-

- -
- -

Class Methods

-
- -
- -

constructor __construct [line 138]

-
-
-
- UserTerritoryDeleteHeader __construct( - -$transferToUserId) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $transferToUserId  
-

-
[ Top ]
-
-

- - -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:33 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/_soapclient---SforceBaseClient.php.html b/apidocs/SalesforceSoapClient/_soapclient---SforceBaseClient.php.html deleted file mode 100644 index f7b3c43..0000000 --- a/apidocs/SalesforceSoapClient/_soapclient---SforceBaseClient.php.html +++ /dev/null @@ -1,116 +0,0 @@ - - -Docs for page SforceBaseClient.php - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Procedural File: SforceBaseClient.php

-Source Location: /soapclient/SforceBaseClient.php

- -
-
- -
-

Classes:

-
SforceBaseClient
-
SalesforceSoapClient
-


- -

Page Details:

-

-

Includes:

-
-require_once('SforceEmail.php') [line 27]
-require_once('SforceProcessRequest.php') [line 28]
-require_once('ProxySettings.php') [line 29]
-require_once('SforceHeaderOptions.php') [line 30]
-
-

-

-
- -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:29 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/_soapclient---SforceEmail.php.html b/apidocs/SalesforceSoapClient/_soapclient---SforceEmail.php.html deleted file mode 100644 index 3656de5..0000000 --- a/apidocs/SalesforceSoapClient/_soapclient---SforceEmail.php.html +++ /dev/null @@ -1,178 +0,0 @@ - - -Docs for page SforceEmail.php - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Procedural File: SforceEmail.php

-Source Location: /soapclient/SforceEmail.php

- -
-
- -

- -

Page Details:

-

-

-

-
- -

EMAIL_PRIORITY_HIGH [line 3]

-
-
-
- EMAIL_PRIORITY_HIGH = 'High' -
-
- -
-
-
[ Top ]


-
- -

EMAIL_PRIORITY_HIGHEST [line 2]

-
-
-
- EMAIL_PRIORITY_HIGHEST = 'Highest' -
-
- -
-
-
[ Top ]


-
- -

EMAIL_PRIORITY_LOW [line 5]

-
-
-
- EMAIL_PRIORITY_LOW = 'Low' -
-
- -
-
-
[ Top ]


-
- -

EMAIL_PRIORITY_LOWEST [line 6]

-
-
-
- EMAIL_PRIORITY_LOWEST = 'Lowest' -
-
- -
-
-
[ Top ]


-
- -

EMAIL_PRIORITY_NORMAL [line 4]

-
-
-
- EMAIL_PRIORITY_NORMAL = 'Normal' -
-
- -
-
-
[ Top ]


-
- -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:31 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/_soapclient---SforceEnterpriseClient.php.html b/apidocs/SalesforceSoapClient/_soapclient---SforceEnterpriseClient.php.html deleted file mode 100644 index a1b170e..0000000 --- a/apidocs/SalesforceSoapClient/_soapclient---SforceEnterpriseClient.php.html +++ /dev/null @@ -1,113 +0,0 @@ - - -Docs for page SforceEnterpriseClient.php - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Procedural File: SforceEnterpriseClient.php

-Source Location: /soapclient/SforceEnterpriseClient.php

- -
-
- -
-

Classes:

-
SforceEnterpriseClient
-
SforceEnterpriseClient class.
-


- -

Page Details:

-

-

Includes:

-
-require_once('SforceBaseClient.php') [line 27]
-
-

-

-
- -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:31 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/_soapclient---SforceFieldTypes.php.html b/apidocs/SalesforceSoapClient/_soapclient---SforceFieldTypes.php.html deleted file mode 100644 index 320a419..0000000 --- a/apidocs/SalesforceSoapClient/_soapclient---SforceFieldTypes.php.html +++ /dev/null @@ -1,273 +0,0 @@ - - -Docs for page SforceFieldTypes.php - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Procedural File: SforceFieldTypes.php

-Source Location: /soapclient/SforceFieldTypes.php

- -
-
- - -

Page Details:

-

-

-

-
- -

DEPLOYMENT_STATUS_DEPLOYED [line 3]

-
-
-
- DEPLOYMENT_STATUS_DEPLOYED = 'Deployed' -
-
- -
-
-
[ Top ]


-
- -

DEPLOYMENT_STATUS_INDEVELOPMENT [line 2]

-
-
-
- DEPLOYMENT_STATUS_INDEVELOPMENT = 'InDevelopment' -
-
- -
-
-
[ Top ]


-
- -

GENDER_FEMININE [line 7]

-
-
-
- GENDER_FEMININE = 'Feminine' -
-
- -
-
-
[ Top ]


-
- -

GENDER_MASCULINE [line 6]

-
-
-
- GENDER_MASCULINE = 'Masculine' -
-
- -
-
-
[ Top ]


-
- -

GENDER_NEUTER [line 5]

-
-
-
- GENDER_NEUTER = 'Neuter' -
-
- -
-
-
[ Top ]


-
- -

SHARING_MODEL_PRIVATE [line 9]

-
-
-
- SHARING_MODEL_PRIVATE = 'Private' -
-
- -
-
-
[ Top ]


-
- -

SHARING_MODEL_READ [line 10]

-
-
-
- SHARING_MODEL_READ = 'Read' -
-
- -
-
-
[ Top ]


-
- -

SHARING_MODEL_READWRITE [line 11]

-
-
-
- SHARING_MODEL_READWRITE = 'ReadWrite' -
-
- -
-
-
[ Top ]


-
- -

STARTS_WITH_CONSONANT [line 13]

-
-
-
- STARTS_WITH_CONSONANT = 'Consonant' -
-
- -
-
-
[ Top ]


-
- -

STARTS_WITH_SPECIAL [line 15]

-
-
-
- STARTS_WITH_SPECIAL = 'Special' -
-
- -
-
-
[ Top ]


-
- -

STARTS_WITH_VOWEL [line 14]

-
-
-
- STARTS_WITH_VOWEL = 'Vowel' -
-
- -
-
-
[ Top ]


-
- -

TREAT_BLANKS_AS_BLANK [line 17]

-
-
-
- TREAT_BLANKS_AS_BLANK = 'BlankAsBlank' -
-
- -
-
-
[ Top ]


-
- -

TREAT_BLANKS_AS_ZERO [line 18]

-
-
-
- TREAT_BLANKS_AS_ZERO = 'BlankAsZero' -
-
- -
-
-
[ Top ]


-
- -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:32 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/_soapclient---SforceHeaderOptions.php.html b/apidocs/SalesforceSoapClient/_soapclient---SforceHeaderOptions.php.html deleted file mode 100644 index a476db1..0000000 --- a/apidocs/SalesforceSoapClient/_soapclient---SforceHeaderOptions.php.html +++ /dev/null @@ -1,121 +0,0 @@ - - -Docs for page SforceHeaderOptions.php - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Procedural File: SforceHeaderOptions.php

-Source Location: /soapclient/SforceHeaderOptions.php

- -
-
- -
-

Classes:

-
CallOptions
-
This file contains three classes.
-
AssignmentRuleHeader
-
To be used with Create and Update operations.
-
MruHeader
-
To be used with Create and Update operations.
-
LoginScopeHeader
-
To be used with the Login operation.
-
QueryOptions
-
To be used with Retrieve, Query, and QueryMore operations.
-
EmailHeader
-
-
UserTerritoryDeleteHeader
-
-


- -

Page Details:

-

-

-

-
- -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:32 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/_soapclient---SforceMetaObject.php.html b/apidocs/SalesforceSoapClient/_soapclient---SforceMetaObject.php.html deleted file mode 100644 index 55ffa72..0000000 --- a/apidocs/SalesforceSoapClient/_soapclient---SforceMetaObject.php.html +++ /dev/null @@ -1,115 +0,0 @@ - - -Docs for page SforceMetaObject.php - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Procedural File: SforceMetaObject.php

-Source Location: /soapclient/SforceMetaObject.php

- -
-
- -

- -

Page Details:

-

-

Includes:

-
-require_once('SforceFieldTypes.php') [line 2]
-
-

-

-
- -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:33 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/_soapclient---SforceMetadataClient.php.html b/apidocs/SalesforceSoapClient/_soapclient---SforceMetadataClient.php.html deleted file mode 100644 index a1bf935..0000000 --- a/apidocs/SalesforceSoapClient/_soapclient---SforceMetadataClient.php.html +++ /dev/null @@ -1,113 +0,0 @@ - - -Docs for page SforceMetadataClient.php - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Procedural File: SforceMetadataClient.php

-Source Location: /soapclient/SforceMetadataClient.php

- -
-
- -
-

Classes:

-
SforceMetadataClient
-
-


- -

Page Details:

-

-

Includes:

-
-require_once('SforceMetaObject.php') [line 2]
-
-

-

-
- -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:33 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/_soapclient---SforcePartnerClient.php.html b/apidocs/SalesforceSoapClient/_soapclient---SforcePartnerClient.php.html deleted file mode 100644 index d004328..0000000 --- a/apidocs/SalesforceSoapClient/_soapclient---SforcePartnerClient.php.html +++ /dev/null @@ -1,118 +0,0 @@ - - -Docs for page SforcePartnerClient.php - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Procedural File: SforcePartnerClient.php

-Source Location: /soapclient/SforcePartnerClient.php

- -
-
- -
-

Classes:

-
SforcePartnerClient
-
SforcePartnerClient class.
-
QueryResult
-
-
SObject
-
Salesforce Object
-


- -

Page Details:

-

-

Includes:

-
-require_once('SforceBaseClient.php') [line 27]
-require_once('SforceEmail.php') [line 28]
-
-

-

-
- -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:34 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceSoapClient/_soapclient---SforceProcessRequest.php.html b/apidocs/SalesforceSoapClient/_soapclient---SforceProcessRequest.php.html deleted file mode 100644 index f46a06b..0000000 --- a/apidocs/SalesforceSoapClient/_soapclient---SforceProcessRequest.php.html +++ /dev/null @@ -1,113 +0,0 @@ - - -Docs for page SforceProcessRequest.php - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Procedural File: SforceProcessRequest.php

-Source Location: /soapclient/SforceProcessRequest.php

- -
-
- -

- -

Page Details:

-

-

-

-
- -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:35 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceTest/SforcePartnerClientTest.html b/apidocs/SalesforceTest/SforcePartnerClientTest.html deleted file mode 100644 index aeadf41..0000000 --- a/apidocs/SalesforceTest/SforcePartnerClientTest.html +++ /dev/null @@ -1,859 +0,0 @@ - - -Docs For Class SforcePartnerClientTest - - - - - - - - - - - - - -
SalesforceTest
- [ class tree: SalesforceTest ] - [ index: SalesforceTest ] - [ all elements ] -
- - - - - - -
-
- -

Class: SforcePartnerClientTest

-Source Location: /test/SforcePartnerClientTest.php

- - - - - - - - - - -
- -

Class Overview

-
PHPUnit_Framework_TestCase
-   |
-   --SforcePartnerClientTest

-
SforcePartnerClientTest class.


- - - - - - - -
-

Variables

- -
-

Methods

- -
-
- - - - - - - - -
-
- - -

Class Details

-
-[line 41]
-SforcePartnerClientTest class.



-
[ Top ]

- -
- -

Class Variables

-
- -

-

$mylogin =  null

-

[line 46]

-

-

Tags:

-
- - - - -
access:  protected
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$mySforceConnection =  null

-

[line 45]

-

-

Tags:

-
- - - - -
access:  protected
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

- -

-

$theId =  null

-

[line 47]

-

-

Tags:

-
- - - - -
access:  protected
-
- -
-
- - - - - -
Type:  mixed
-


-
[ Top ]

-

- -
- -

Class Methods

-
- -
- -

method deleteAll [line 49]

-
-
-
- void deleteAll( - -$queryResult) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -

Parameters:

-
- - - - - - -
  $queryResult  
-

-
[ Top ]
-
-
- -

method setUp [line 75]

-
-
-
- void setUp( -) -
-

- -

-

Tags:

-
- - - - -
access:  protected
-
-

- - -
[ Top ]
-
-
- -

method testAssignmentRuleHeaderFlag [line 401]

-
-
-
- void testAssignmentRuleHeaderFlag( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method testAssignmentRuleHeaderId [line 379]

-
-
-
- void testAssignmentRuleHeaderId( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method testCreate [line 208]

-
-
-
- void testCreate( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method testDelete [line 268]

-
-
-
- void testDelete( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method testDescribeGlobal [line 175]

-
-
-
- void testDescribeGlobal( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method testDescribeLayout [line 186]

-
-
-
- void testDescribeLayout( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method testDescribeSObject [line 149]

-
-
-
- void testDescribeSObject( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method testDescribeSObjects [line 161]

-
-
-
- void testDescribeSObjects( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method testDescribeTabs [line 197]

-
-
-
- void testDescribeTabs( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method testEmptyRecycleBin [line 499]

-
-
-
- void testEmptyRecycleBin( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method testGetDeleted [line 281]

-
-
-
- void testGetDeleted( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method testGetUpdated [line 252]

-
-
-
- void testGetUpdated( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method testLogin [line 115]

-
-
-
- void testLogin( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method testMruHeader [line 425]

-
-
-
- void testMruHeader( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method testQuery [line 299]

-
-
-
- void testQuery( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method testRetrieve [line 212]

-
-
-
- void testRetrieve( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method testSearch [line 446]

-
-
-
- void testSearch( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method testSendMassEmail [line 481]

-
-
-
- void testSendMassEmail( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method testSendSingleEmail [line 457]

-
-
-
- void testSendSingleEmail( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method testServerTimestamp [line 126]

-
-
-
- void testServerTimestamp( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method testUpdate [line 231]

-
-
-
- void testUpdate( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method testUpsert [line 348]

-
-
-
- void testUpsert( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-
- -

method testUserInfo [line 137]

-
-
-
- void testUserInfo( -) -
-

- -

-

Tags:

-
- - - - -
access:  public
-
-

- - -
[ Top ]
-
-

- - -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:35 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/SalesforceTest/_test---SforcePartnerClientTest.php.html b/apidocs/SalesforceTest/_test---SforcePartnerClientTest.php.html deleted file mode 100644 index ef041fb..0000000 --- a/apidocs/SalesforceTest/_test---SforcePartnerClientTest.php.html +++ /dev/null @@ -1,79 +0,0 @@ - - -Docs for page SforcePartnerClientTest.php - - - - - - - - - - - - - -
SalesforceTest
- [ class tree: SalesforceTest ] - [ index: SalesforceTest ] - [ all elements ] -
- - - - - - -
-
- -

Procedural File: SforcePartnerClientTest.php

-Source Location: /test/SforcePartnerClientTest.php

- -
-
- -
-

Classes:

-
SforcePartnerClientTest
-
SforcePartnerClientTest class.
-


- -

Page Details:

-

-

Includes:

-
-require_once('PHPUnit/Framework/TestCase.php') [line 2]
-require_once('../soapclient/SforcePartnerClient.php') [line 3]
-require_once('../soapclient/SforceHeaderOptions.php') [line 4]
-
-

-

-
- -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:35 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/classtrees_SalesforceSoapClient.html b/apidocs/classtrees_SalesforceSoapClient.html deleted file mode 100644 index 2ab1614..0000000 --- a/apidocs/classtrees_SalesforceSoapClient.html +++ /dev/null @@ -1,126 +0,0 @@ - - -Class Trees for Package SalesforceSoapClient - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Class Trees for Package SalesforceSoapClient

-
-
Root class AssignmentRuleHeader

- - -
-
Root class CallOptions

- - -
-
Root class Email

- - -
-
Root class EmailHeader

- - -
-
Root class LoginScopeHeader

- - -
-
Root class MruHeader

- - -
-
Root class ProcessRequest

- - -
-
Root class QueryOptions

- - -
-
Root class QueryResult

- - -
-
Root class SforceBaseClient

- - -
-
Root class SforceCustomField

- - -
-
Root class SforceCustomObject

- - -
-
Root class SforceMetadataClient

- - -
-
Root class SObject

- - -
-
Root class UserTerritoryDeleteHeader

- - -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:29 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/classtrees_SalesforceTest.html b/apidocs/classtrees_SalesforceTest.html deleted file mode 100644 index 88ab2e6..0000000 --- a/apidocs/classtrees_SalesforceTest.html +++ /dev/null @@ -1,50 +0,0 @@ - - -Class Trees for Package SalesforceTest - - - - - - - - - - - - - -
SalesforceTest
- [ class tree: SalesforceTest ] - [ index: SalesforceTest ] - [ all elements ] -
- - - - - - -
-
- -

Class Trees for Package SalesforceTest

-
-
Root class PHPUnit_Framework_TestCase

- - -
-
- Documentation generated on Fri, 15 Feb 2008 14:42:29 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/elementindex.html b/apidocs/elementindex.html deleted file mode 100644 index 89b28a6..0000000 --- a/apidocs/elementindex.html +++ /dev/null @@ -1,786 +0,0 @@ - - -Element Index - - - - - - - - - - - - - -
- [ class tree: ] - [ index: ] - [ all elements ] -
- - - - - - -
-
- - -

Index of all elements

- [ a ] - [ b ] - [ c ] - [ d ] - [ e ] - [ f ] - [ g ] - [ i ] - [ l ] - [ m ] - [ n ] - [ o ] - [ p ] - [ q ] - [ r ] - [ s ] - [ t ] - [ u ] - [ v ] - [ w ] - [ _ ] - -
- -
-

a

-
-
$action
-
in file SforceProcessRequest.php, variable ProcessWorkitemRequest::$action
-
$assignmentRuleHeader
-
in file SforceBaseClient.php, variable SforceBaseClient::$assignmentRuleHeader
-
$assignmentRuleId
-
in file SforceHeaderOptions.php, variable AssignmentRuleHeader::$assignmentRuleId
-
AssignmentRuleHeader
-
in file SforceHeaderOptions.php, class AssignmentRuleHeader
    To be used with Create and Update operations.
-
PARTNER_NAMESPACE
-
in file SforcePartnerClient.php, class constant SforcePartnerClient::PARTNER_NAMESPACE
-
-
- top
-
- -
-

b

-
-
$batchSize
-
in file SforceHeaderOptions.php, variable QueryOptions::$batchSize
-
-
- top
-
- -
-

c

-
-
$callOptions
-
in file SforceBaseClient.php, variable SforceBaseClient::$callOptions
-
$ccAddresses
-
in file SforceEmail.php, variable SingleEmailMessage::$ccAddresses
-
$client
-
in file SforceHeaderOptions.php, variable CallOptions::$client
-
$client_id
-
in file SforceBaseClient.php, variable SforceBaseClient::$client_id
-
$comments
-
in file SforceProcessRequest.php, variable ProcessRequest::$comments
-
CallOptions
-
in file SforceHeaderOptions.php, class CallOptions
    This file contains three classes.
-
checkStatus
-
in file SforceMetadataClient.php, method SforceMetadataClient::checkStatus()
-
convertFields
-
in file SforcePartnerClient.php, method SObject::convertFields()
    Parse the "any" string from an sObject. First strip out the sf: and then enclose string with <Object></Object>. Load the string using simplexml_load_string and return an array that can be traversed.
-
convertLead
-
in file SforceBaseClient.php, method SforceBaseClient::convertLead()
    Converts a Lead into an Account, Contact, or (optionally) an Opportunity.
-
create
-
in file SforcePartnerClient.php, method SforcePartnerClient::create()
    Adds one or more new individual objects to your organization's data.
-
create
-
in file SforceMetadataClient.php, method SforceMetadataClient::create()
-
create
-
in file SforceEnterpriseClient.php, method SforceEnterpriseClient::create()
    Adds one or more new individual objects to your organization's data.
-
createConnection
-
in file SforceBaseClient.php, method SforceBaseClient::createConnection()
    Connect method to www.salesforce.com
-
-
- top
-
- -
-

d

-
-
$defaultNamespace
-
in file SforceHeaderOptions.php, variable CallOptions::$defaultNamespace
-
$done
-
in file SforcePartnerClient.php, variable QueryResult::$done
-
delete
-
in file SforceMetadataClient.php, method SforceMetadataClient::delete()
-
delete
-
in file SforceBaseClient.php, method SforceBaseClient::delete()
    Deletes one or more new individual objects to your organization's data.
-
deleteAll
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::deleteAll()
-
DEPLOYMENT_STATUS_DEPLOYED
-
in file SforceFieldTypes.php, constant DEPLOYMENT_STATUS_DEPLOYED
-
DEPLOYMENT_STATUS_INDEVELOPMENT
-
in file SforceFieldTypes.php, constant DEPLOYMENT_STATUS_INDEVELOPMENT
-
describeGlobal
-
in file SforceBaseClient.php, method SforceBaseClient::describeGlobal()
    Retrieves a list of available objects for your organization's data.
-
describeLayout
-
in file SforceBaseClient.php, method SforceBaseClient::describeLayout()
    Use describeLayout to retrieve information about the layout (presentation
-
describeSObject
-
in file SforceBaseClient.php, method SforceBaseClient::describeSObject()
    Describes metadata (field list and object properties) for the specified object.
-
describeSObjects
-
in file SforceBaseClient.php, method SforceBaseClient::describeSObjects()
    An array-based version of describeSObject; describes metadata (field list and object properties) for the specified object or array of objects.
-
describeTabs
-
in file SforceBaseClient.php, method SforceBaseClient::describeTabs()
    The describeTabs call returns information about the standard apps and custom apps, if any, available for the user who sends the call, including the list of tabs defined for each app.
-
-
- top
-
- -
-

e

-
-
$emailHeader
-
in file SforceBaseClient.php, variable SforceBaseClient::$emailHeader
-
Email
-
in file SforceEmail.php, class Email
-
EmailHeader
-
in file SforceHeaderOptions.php, class EmailHeader
-
EMAIL_PRIORITY_HIGH
-
in file SforceEmail.php, constant EMAIL_PRIORITY_HIGH
-
EMAIL_PRIORITY_HIGHEST
-
in file SforceEmail.php, constant EMAIL_PRIORITY_HIGHEST
-
EMAIL_PRIORITY_LOW
-
in file SforceEmail.php, constant EMAIL_PRIORITY_LOW
-
EMAIL_PRIORITY_LOWEST
-
in file SforceEmail.php, constant EMAIL_PRIORITY_LOWEST
-
EMAIL_PRIORITY_NORMAL
-
in file SforceEmail.php, constant EMAIL_PRIORITY_NORMAL
-
emptyRecycleBin
-
in file SforceBaseClient.php, method SforceBaseClient::emptyRecycleBin()
    Deletes one or more new individual objects to your organization's data.
-
-
- top
-
- -
-

f

-
-
$fields
-
in file SforcePartnerClient.php, variable SObject::$fields
-
-
- top
-
- -
-

g

-
-
GENDER_FEMININE
-
in file SforceFieldTypes.php, constant GENDER_FEMININE
-
GENDER_MASCULINE
-
in file SforceFieldTypes.php, constant GENDER_MASCULINE
-
GENDER_NEUTER
-
in file SforceFieldTypes.php, constant GENDER_NEUTER
-
getConnection
-
in file SforceBaseClient.php, method SforceBaseClient::getConnection()
-
getDeleted
-
in file SforceBaseClient.php, method SforceBaseClient::getDeleted()
    Retrieves the list of individual objects that have been deleted within the given timespan for the specified object.
-
getFunctions
-
in file SforceBaseClient.php, method SforceBaseClient::getFunctions()
-
getLastRequest
-
in file SforceBaseClient.php, method SforceBaseClient::getLastRequest()
-
getLastRequest
-
in file SforceMetadataClient.php, method SforceMetadataClient::getLastRequest()
-
getLastRequestHeaders
-
in file SforceBaseClient.php, method SforceBaseClient::getLastRequestHeaders()
-
getLastRequestHeaders
-
in file SforceMetadataClient.php, method SforceMetadataClient::getLastRequestHeaders()
-
getLastResponse
-
in file SforceBaseClient.php, method SforceBaseClient::getLastResponse()
-
getLastResponse
-
in file SforceMetadataClient.php, method SforceMetadataClient::getLastResponse()
-
getLastResponseHeaders
-
in file SforceBaseClient.php, method SforceBaseClient::getLastResponseHeaders()
-
getLastResponseHeaders
-
in file SforceMetadataClient.php, method SforceMetadataClient::getLastResponseHeaders()
-
getLocation
-
in file SforceBaseClient.php, method SforceBaseClient::getLocation()
-
getNamespace
-
in file SforceBaseClient.php, method SforceBaseClient::getNamespace()
-
getServerTimestamp
-
in file SforceBaseClient.php, method SforceBaseClient::getServerTimestamp()
    Retrieves the current system timestamp (GMT) from the Web service.
-
getSessionId
-
in file SforceBaseClient.php, method SforceBaseClient::getSessionId()
-
getTypes
-
in file SforceBaseClient.php, method SforceBaseClient::getTypes()
-
getUpdated
-
in file SforceBaseClient.php, method SforceBaseClient::getUpdated()
    Retrieves the list of individual objects that have been updated (added or changed) within the given timespan for the specified object.
-
getUserInfo
-
in file SforceBaseClient.php, method SforceBaseClient::getUserInfo()
-
-
- top
-
- -
-

i

-
-
isQueryResult
-
in file SforcePartnerClient.php, method SObject::isQueryResult()
-
isSObject
-
in file SforcePartnerClient.php, method SObject::isSObject()
-
-
- top
-
- -
-

l

-
-
$location
-
in file SforceMetadataClient.php, variable SforceMetadataClient::$location
-
$location
-
in file SforceBaseClient.php, variable SforceBaseClient::$location
-
$loginScopeHeader
-
in file SforceBaseClient.php, variable SforceBaseClient::$loginScopeHeader
-
login
-
in file SforceBaseClient.php, method SforceBaseClient::login()
    Login to Salesforce.com and starts a client session.
-
LoginScopeHeader
-
in file SforceHeaderOptions.php, class LoginScopeHeader
    To be used with the Login operation.
-
-
- top
-
- -
-

m

-
-
$mruHeader
-
in file SforceBaseClient.php, variable SforceBaseClient::$mruHeader
-
$mylogin
-
in file SforcePartnerClientTest.php, variable SforcePartnerClientTest::$mylogin
-
$mySforceConnection
-
in file SforcePartnerClientTest.php, variable SforcePartnerClientTest::$mySforceConnection
-
MassEmailMessage
-
in file SforceEmail.php, class MassEmailMessage
-
merge
-
in file SforceEnterpriseClient.php, method SforceEnterpriseClient::merge()
    Merge records
-
merge
-
in file SforcePartnerClient.php, method SforcePartnerClient::merge()
    Merge records
-
MruHeader
-
in file SforceHeaderOptions.php, class MruHeader
    To be used with Create and Update operations.
-
-
- top
-
- -
-

n

-
-
$namespace
-
in file SforceMetadataClient.php, variable SforceMetadataClient::$namespace
-
$namespace
-
in file SforceBaseClient.php, variable SforceBaseClient::$namespace
-
$nextApproverIds
-
in file SforceProcessRequest.php, variable ProcessRequest::$nextApproverIds
-
ENTERPRISE_NAMESPACE
-
in file SforceEnterpriseClient.php, class constant SforceEnterpriseClient::ENTERPRISE_NAMESPACE
-
-
- top
-
- -
-

o

-
-
$objectId
-
in file SforceProcessRequest.php, variable ProcessSubmitRequest::$objectId
-
$organizationId
-
in file SforceHeaderOptions.php, variable LoginScopeHeader::$organizationId
-
-
- top
-
- -
-

p

-
-
$portalId
-
in file SforceHeaderOptions.php, variable LoginScopeHeader::$portalId
-
printDebugInfo
-
in file SforceBaseClient.php, method SforceBaseClient::printDebugInfo()
-
ProcessRequest
-
in file SforceProcessRequest.php, class ProcessRequest
-
ProcessSubmitRequest
-
in file SforceProcessRequest.php, class ProcessSubmitRequest
-
processSubmitRequest
-
in file SforceBaseClient.php, method SforceBaseClient::processSubmitRequest()
    Process Submit Request for Approval
-
ProcessWorkitemRequest
-
in file SforceProcessRequest.php, class ProcessWorkitemRequest
-
processWorkitemRequest
-
in file SforceBaseClient.php, method SforceBaseClient::processWorkitemRequest()
    Process Work Item Request for Approval
-
-
- top
-
- -
-

q

-
-
$queryHeader
-
in file SforceBaseClient.php, variable SforceBaseClient::$queryHeader
-
$queryLocator
-
in file SforcePartnerClient.php, variable QueryResult::$queryLocator
-
query
-
in file SforceBaseClient.php, method SforceBaseClient::query()
    Executes a query against the specified object and returns data that matches the specified criteria.
-
queryAll
-
in file SforceBaseClient.php, method SforceBaseClient::queryAll()
    Retrieves data from specified objects, whether or not they have been deleted.
-
queryMore
-
in file SforceBaseClient.php, method SforceBaseClient::queryMore()
    Retrieves the next batch of objects from a query.
-
QueryOptions
-
in file SforceHeaderOptions.php, class QueryOptions
    To be used with Retrieve, Query, and QueryMore operations.
-
QueryResult
-
in file SforcePartnerClient.php, class QueryResult
-
-
- top
-
- -
-

r

-
-
$records
-
in file SforcePartnerClient.php, variable QueryResult::$records
-
resetPassword
-
in file SforceBaseClient.php, method SforceBaseClient::resetPassword()
    Changes a user's password to a system-generated value.
-
retrieve
-
in file SforceBaseClient.php, method SforceBaseClient::retrieve()
    Retrieves one or more objects based on the specified object IDs.
-
-
- top
-
- -
-

s

-
-
$sessionHeader
-
in file SforceBaseClient.php, variable SforceBaseClient::$sessionHeader
-
$sessionId
-
in file SforceMetadataClient.php, variable SforceMetadataClient::$sessionId
-
$sessionId
-
in file SforceBaseClient.php, variable SforceBaseClient::$sessionId
-
$sforce
-
in file SforceBaseClient.php, variable SforceBaseClient::$sforce
-
$sforce
-
in file SforceMetadataClient.php, variable SforceMetadataClient::$sforce
-
$size
-
in file SforcePartnerClient.php, variable QueryResult::$size
-
search
-
in file SforceBaseClient.php, method SforceBaseClient::search()
    Executes a text search in your organization's data.
-
sendMassEmail
-
in file SforcePartnerClient.php, method SforcePartnerClient::sendMassEmail()
-
sendMassEmail
-
in file SforceBaseClient.php, method SforceBaseClient::sendMassEmail()
-
sendSingleEmail
-
in file SforceBaseClient.php, method SforceBaseClient::sendSingleEmail()
-
sendSingleEmail
-
in file SforcePartnerClient.php, method SforcePartnerClient::sendSingleEmail()
-
setAssignmentRuleHeader
-
in file SforceBaseClient.php, method SforceBaseClient::setAssignmentRuleHeader()
-
setBccAddresses
-
in file SforceEmail.php, method SingleEmailMessage::setBccAddresses()
-
setBccSender
-
in file SforceEmail.php, method Email::setBccSender()
-
setCallOptions
-
in file SforceBaseClient.php, method SforceBaseClient::setCallOptions()
-
setCaseSensitive
-
in file SforceMetaObject.php, method SforceCustomField::setCaseSensitive()
-
setCcAddresses
-
in file SforceEmail.php, method SingleEmailMessage::setCcAddresses()
-
setCharset
-
in file SforceEmail.php, method SingleEmailMessage::setCharset()
-
setDefaultValue
-
in file SforceMetaObject.php, method SforceCustomField::setDefaultValue()
-
setDeploymentStatus
-
in file SforceMetaObject.php, method SforceCustomObject::setDeploymentStatus()
-
setDescription
-
in file SforceMetaObject.php, method SforceCustomObject::setDescription()
-
setDescription
-
in file SforceMetaObject.php, method SforceCustomField::setDescription()
-
setDisplayFormat
-
in file SforceMetaObject.php, method SforceCustomField::setDisplayFormat()
-
setDocumentAttachments
-
in file SforceEmail.php, method SingleEmailMessage::setDocumentAttachments()
-
setEmailHeader
-
in file SforceBaseClient.php, method SforceBaseClient::setEmailHeader()
-
setEmailPriority
-
in file SforceEmail.php, method Email::setEmailPriority()
-
setEnableActivities
-
in file SforceMetaObject.php, method SforceCustomObject::setEnableActivities()
-
setEnableDivisions
-
in file SforceMetaObject.php, method SforceCustomObject::setEnableDivisions()
-
setEnableHistory
-
in file SforceMetaObject.php, method SforceCustomObject::setEnableHistory()
-
setEnableReports
-
in file SforceMetaObject.php, method SforceCustomObject::setEnableReports()
-
setEndpoint
-
in file SforceMetadataClient.php, method SforceMetadataClient::setEndpoint()
    Set the endpoint.
-
setEndpoint
-
in file SforceBaseClient.php, method SforceBaseClient::setEndpoint()
    Set the endpoint.
-
setExternalId
-
in file SforceMetaObject.php, method SforceCustomField::setExternalId()
-
setFields
-
in file SforceMetaObject.php, method SforceCustomObject::setFields()
-
setFileAttachments
-
in file SforceEmail.php, method SingleEmailMessage::setFileAttachments()
-
setFormula
-
in file SforceMetaObject.php, method SforceCustomField::setFormula()
-
setFormulaTreatBlankAs
-
in file SforceMetaObject.php, method SforceCustomField::setFormulaTreatBlankAs()
-
setFullName
-
in file SforceMetaObject.php, method SforceCustomField::setFullName()
-
setFullName
-
in file SforceMetaObject.php, method SforceCustomObject::setFullName()
-
setGender
-
in file SforceMetaObject.php, method SforceCustomObject::setGender()
-
setHousehold
-
in file SforceMetaObject.php, method SforceCustomObject::setHousehold()
-
setHtmlBody
-
in file SforceEmail.php, method SingleEmailMessage::setHtmlBody()
-
setInlineHelpText
-
in file SforceMetaObject.php, method SforceCustomField::setInlineHelpText()
-
setLabel
-
in file SforceMetaObject.php, method SforceCustomObject::setLabel()
-
setLabel
-
in file SforceMetaObject.php, method SforceCustomField::setLabel()
-
setLength
-
in file SforceMetaObject.php, method SforceCustomField::setLength()
-
setLoginScopeHeader
-
in file SforceBaseClient.php, method SforceBaseClient::setLoginScopeHeader()
-
setMaskChar
-
in file SforceMetaObject.php, method SforceCustomField::setMaskChar()
-
setMaskType
-
in file SforceMetaObject.php, method SforceCustomField::setMaskType()
-
setMruHeader
-
in file SforceBaseClient.php, method SforceBaseClient::setMruHeader()
-
setNameField
-
in file SforceMetaObject.php, method SforceCustomObject::setNameField()
-
setPassword
-
in file SforceBaseClient.php, method SforceBaseClient::setPassword()
    Sets the specified user's password to the specified value.
-
setPicklist
-
in file SforceMetaObject.php, method SforceCustomField::setPicklist()
-
setPlainTextBody
-
in file SforceEmail.php, method SingleEmailMessage::setPlainTextBody()
-
setPluralLabel
-
in file SforceMetaObject.php, method SforceCustomObject::setPluralLabel()
-
setPopulateExistingRows
-
in file SforceMetaObject.php, method SforceCustomField::setPopulateExistingRows()
-
setPrecision
-
in file SforceMetaObject.php, method SforceCustomField::setPrecision()
-
setQueryOptions
-
in file SforceBaseClient.php, method SforceBaseClient::setQueryOptions()
-
setReferenceTo
-
in file SforceMetaObject.php, method SforceCustomField::setReferenceTo()
-
setRelationshipName
-
in file SforceMetaObject.php, method SforceCustomField::setRelationshipName()
-
setReplyTo
-
in file SforceEmail.php, method Email::setReplyTo()
-
setRequired
-
in file SforceMetaObject.php, method SforceCustomField::setRequired()
-
setSaveAsActivity
-
in file SforceEmail.php, method Email::setSaveAsActivity()
-
setScale
-
in file SforceMetaObject.php, method SforceCustomField::setScale()
-
setSenderDisplayName
-
in file SforceEmail.php, method Email::setSenderDisplayName()
-
setSessionHeader
-
in file SforceMetadataClient.php, method SforceMetadataClient::setSessionHeader()
    Set the Session ID
-
setSessionHeader
-
in file SforceBaseClient.php, method SforceBaseClient::setSessionHeader()
-
setStartingNumber
-
in file SforceMetaObject.php, method SforceCustomField::setStartingNumber()
-
setStartsWith
-
in file SforceMetaObject.php, method SforceCustomObject::setStartsWith()
-
setSubject
-
in file SforceEmail.php, method Email::setSubject()
-
setSummarizeField
-
in file SforceMetaObject.php, method SforceCustomField::setSummarizeField()
-
setSummaryFilterItems
-
in file SforceMetaObject.php, method SforceCustomField::setSummaryFilterItems()
-
setSummaryForeignKey
-
in file SforceMetaObject.php, method SforceCustomField::setSummaryForeignKey()
-
setSummaryOperation
-
in file SforceMetaObject.php, method SforceCustomField::setSummaryOperation()
-
setTargetObjectId
-
in file SforceEmail.php, method SingleEmailMessage::setTargetObjectId()
-
setTargetObjectIds
-
in file SforceEmail.php, method MassEmailMessage::setTargetObjectIds()
-
setTemplateId
-
in file SforceEmail.php, method SingleEmailMessage::setTemplateId()
-
setTemplateId
-
in file SforceEmail.php, method MassEmailMessage::setTemplateId()
-
setToAddresses
-
in file SforceEmail.php, method SingleEmailMessage::setToAddresses()
-
setType
-
in file SforceMetaObject.php, method SforceCustomField::setType()
-
setUnique
-
in file SforceMetaObject.php, method SforceCustomField::setUnique()
-
setUp
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::setUp()
-
setUserTerritoryDeleteHeader
-
in file SforceBaseClient.php, method SforceBaseClient::setUserTerritoryDeleteHeader()
-
setUseSignature
-
in file SforceEmail.php, method Email::setUseSignature()
-
setVisibleLines
-
in file SforceMetaObject.php, method SforceCustomField::setVisibleLines()
-
setWhatId
-
in file SforceEmail.php, method SingleEmailMessage::setWhatId()
-
setWhatIds
-
in file SforceEmail.php, method MassEmailMessage::setWhatIds()
-
SforceBaseClient
-
in file SforceBaseClient.php, class SforceBaseClient
    SalesforceSoapClient
-
SforceCustomField
-
in file SforceMetaObject.php, class SforceCustomField
-
SforceCustomObject
-
in file SforceMetaObject.php, class SforceCustomObject
-
SforceEnterpriseClient
-
in file SforceEnterpriseClient.php, method SforceEnterpriseClient::SforceEnterpriseClient()
-
SforceEnterpriseClient
-
in file SforceEnterpriseClient.php, class SforceEnterpriseClient
    SforceEnterpriseClient class.
-
SforceMetadataClient
-
in file SforceMetadataClient.php, class SforceMetadataClient
-
SforcePartnerClient
-
in file SforcePartnerClient.php, class SforcePartnerClient
    SforcePartnerClient class.
-
SforcePartnerClient
-
in file SforcePartnerClient.php, method SforcePartnerClient::SforcePartnerClient()
-
SforcePartnerClientTest
-
in file SforcePartnerClientTest.php, class SforcePartnerClientTest
    SforcePartnerClientTest class.
-
SHARING_MODEL_PRIVATE
-
in file SforceFieldTypes.php, constant SHARING_MODEL_PRIVATE
-
SHARING_MODEL_READ
-
in file SforceFieldTypes.php, constant SHARING_MODEL_READ
-
SHARING_MODEL_READWRITE
-
in file SforceFieldTypes.php, constant SHARING_MODEL_READWRITE
-
SingleEmailMessage
-
in file SforceEmail.php, class SingleEmailMessage
-
SforceBaseClient.php
-
procedural page SforceBaseClient.php
-
SforceEmail.php
-
procedural page SforceEmail.php
-
SforceEnterpriseClient.php
-
procedural page SforceEnterpriseClient.php
-
SforceFieldTypes.php
-
procedural page SforceFieldTypes.php
-
SforceHeaderOptions.php
-
procedural page SforceHeaderOptions.php
-
SforceMetadataClient.php
-
procedural page SforceMetadataClient.php
-
SforceMetaObject.php
-
procedural page SforceMetaObject.php
-
SforcePartnerClient.php
-
procedural page SforcePartnerClient.php
-
SforceProcessRequest.php
-
procedural page SforceProcessRequest.php
-
SObject
-
in file SforcePartnerClient.php, class SObject
    Salesforce Object
-
STARTS_WITH_CONSONANT
-
in file SforceFieldTypes.php, constant STARTS_WITH_CONSONANT
-
STARTS_WITH_SPECIAL
-
in file SforceFieldTypes.php, constant STARTS_WITH_SPECIAL
-
STARTS_WITH_VOWEL
-
in file SforceFieldTypes.php, constant STARTS_WITH_VOWEL
-
SforcePartnerClientTest.php
-
procedural page SforcePartnerClientTest.php
-
-
- top
-
- -
-

t

-
-
$theId
-
in file SforcePartnerClientTest.php, variable SforcePartnerClientTest::$theId
-
$transferToUserId
-
in file SforceHeaderOptions.php, variable UserTerritoryDeleteHeader::$transferToUserId
-
$triggerAutoResponseEmail
-
in file SforceHeaderOptions.php, variable EmailHeader::$triggerAutoResponseEmail
-
$triggerOtherEmail
-
in file SforceHeaderOptions.php, variable EmailHeader::$triggerOtherEmail
-
$triggerUserEmail
-
in file SforceHeaderOptions.php, variable EmailHeader::$triggerUserEmail
-
$type
-
in file SforcePartnerClient.php, variable SObject::$type
-
testAssignmentRuleHeaderFlag
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testAssignmentRuleHeaderFlag()
-
testAssignmentRuleHeaderId
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testAssignmentRuleHeaderId()
-
testCreate
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testCreate()
-
testDelete
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testDelete()
-
testDescribeGlobal
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testDescribeGlobal()
-
testDescribeLayout
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testDescribeLayout()
-
testDescribeSObject
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testDescribeSObject()
-
testDescribeSObjects
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testDescribeSObjects()
-
testDescribeTabs
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testDescribeTabs()
-
testEmptyRecycleBin
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testEmptyRecycleBin()
-
testGetDeleted
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testGetDeleted()
-
testGetUpdated
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testGetUpdated()
-
testLogin
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testLogin()
-
testMruHeader
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testMruHeader()
-
testQuery
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testQuery()
-
testRetrieve
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testRetrieve()
-
testSearch
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testSearch()
-
testSendMassEmail
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testSendMassEmail()
-
testSendSingleEmail
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testSendSingleEmail()
-
testServerTimestamp
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testServerTimestamp()
-
testUpdate
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testUpdate()
-
testUpsert
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testUpsert()
-
testUserInfo
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testUserInfo()
-
TREAT_BLANKS_AS_BLANK
-
in file SforceFieldTypes.php, constant TREAT_BLANKS_AS_BLANK
-
TREAT_BLANKS_AS_ZERO
-
in file SforceFieldTypes.php, constant TREAT_BLANKS_AS_ZERO
-
-
- top
-
- -
-

u

-
-
$updateMruFlag
-
in file SforceHeaderOptions.php, variable MruHeader::$updateMruFlag
-
$useDefaultRuleFlag
-
in file SforceHeaderOptions.php, variable AssignmentRuleHeader::$useDefaultRuleFlag
-
$userTerritoryDeleteHeader
-
in file SforceBaseClient.php, variable SforceBaseClient::$userTerritoryDeleteHeader
-
undelete
-
in file SforceBaseClient.php, method SforceBaseClient::undelete()
    Deletes one or more new individual objects to your organization's data.
-
update
-
in file SforcePartnerClient.php, method SforcePartnerClient::update()
    Updates one or more new individual objects to your organization's data.
-
update
-
in file SforceEnterpriseClient.php, method SforceEnterpriseClient::update()
    Updates one or more new individual objects to your organization's data.
-
upsert
-
in file SforcePartnerClient.php, method SforcePartnerClient::upsert()
    Creates new objects and updates existing objects; uses a custom field to determine the presence of existing objects. In most cases, we recommend that you use upsert instead of create because upsert is idempotent.
-
upsert
-
in file SforceEnterpriseClient.php, method SforceEnterpriseClient::upsert()
    Creates new objects and updates existing objects; uses a custom field to determine the presence of existing objects. In most cases, we recommend that you use upsert instead of create because upsert is idempotent.
-
UserTerritoryDeleteHeader
-
in file SforceHeaderOptions.php, class UserTerritoryDeleteHeader
-
-
- top
-
- -
-

v

-
-
$version
-
in file SforceBaseClient.php, variable SforceBaseClient::$version
-
-
- top
-
- -
-

w

-
-
$workitemId
-
in file SforceProcessRequest.php, variable ProcessWorkitemRequest::$workitemId
-
-
- top
-
- -
-

_

-
-
_convertToAny
-
in file SforceBaseClient.php, method SforceBaseClient::_convertToAny()
-
_create
-
in file SforceBaseClient.php, method SforceBaseClient::_create()
-
_merge
-
in file SforceBaseClient.php, method SforceBaseClient::_merge()
-
_process
-
in file SforceBaseClient.php, method SforceBaseClient::_process()
-
_sendEmail
-
in file SforceBaseClient.php, method SforceBaseClient::_sendEmail()
-
_setLoginHeader
-
in file SforceMetadataClient.php, method SforceMetadataClient::_setLoginHeader()
    Specifies the session ID returned from the login server after a successful login.
-
_setLoginHeader
-
in file SforceBaseClient.php, method SforceBaseClient::_setLoginHeader()
    Specifies the session ID returned from the login server after a successful login.
-
_update
-
in file SforceBaseClient.php, method SforceBaseClient::_update()
-
_upsert
-
in file SforceBaseClient.php, method SforceBaseClient::_upsert()
-
__construct
-
in file SforceHeaderOptions.php, method UserTerritoryDeleteHeader::__construct()
-
__construct
-
in file SforceMetadataClient.php, method SforceMetadataClient::__construct()
-
__construct
-
in file SforcePartnerClient.php, method QueryResult::__construct()
-
__construct
-
in file SforcePartnerClient.php, method SObject::__construct()
-
__construct
-
in file SforceHeaderOptions.php, method QueryOptions::__construct()
    Constructor
-
__construct
-
in file SforceHeaderOptions.php, method AssignmentRuleHeader::__construct()
    Constructor. Only one param can be set.
-
__construct
-
in file SforceEmail.php, method SingleEmailMessage::__construct()
-
__construct
-
in file SforceHeaderOptions.php, method CallOptions::__construct()
-
__construct
-
in file SforceHeaderOptions.php, method EmailHeader::__construct()
-
__construct
-
in file SforceHeaderOptions.php, method LoginScopeHeader::__construct()
-
__construct
-
in file SforceHeaderOptions.php, method MruHeader::__construct()
-
-
- top
-
-
- Documentation generated on Fri, 15 Feb 2008 14:42:29 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/elementindex_SalesforceSoapClient.html b/apidocs/elementindex_SalesforceSoapClient.html deleted file mode 100644 index ef11d24..0000000 --- a/apidocs/elementindex_SalesforceSoapClient.html +++ /dev/null @@ -1,773 +0,0 @@ - - -Package SalesforceSoapClient Element Index - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- - -

Element index for package SalesforceSoapClient

- [ a ] - [ b ] - [ c ] - [ d ] - [ e ] - [ f ] - [ g ] - [ i ] - [ l ] - [ m ] - [ n ] - [ o ] - [ p ] - [ q ] - [ r ] - [ s ] - [ t ] - [ u ] - [ v ] - [ w ] - [ _ ] - -
- -
-

_

-
-
_convertToAny
-
in file SforceBaseClient.php, method SforceBaseClient::_convertToAny()
-
_create
-
in file SforceBaseClient.php, method SforceBaseClient::_create()
-
_merge
-
in file SforceBaseClient.php, method SforceBaseClient::_merge()
-
_process
-
in file SforceBaseClient.php, method SforceBaseClient::_process()
-
_sendEmail
-
in file SforceBaseClient.php, method SforceBaseClient::_sendEmail()
-
_setLoginHeader
-
in file SforceMetadataClient.php, method SforceMetadataClient::_setLoginHeader()
    Specifies the session ID returned from the login server after a successful login.
-
_setLoginHeader
-
in file SforceBaseClient.php, method SforceBaseClient::_setLoginHeader()
    Specifies the session ID returned from the login server after a successful login.
-
_update
-
in file SforceBaseClient.php, method SforceBaseClient::_update()
-
_upsert
-
in file SforceBaseClient.php, method SforceBaseClient::_upsert()
-
__construct
-
in file SforceHeaderOptions.php, method UserTerritoryDeleteHeader::__construct()
-
__construct
-
in file SforceMetadataClient.php, method SforceMetadataClient::__construct()
-
__construct
-
in file SforcePartnerClient.php, method QueryResult::__construct()
-
__construct
-
in file SforcePartnerClient.php, method SObject::__construct()
-
__construct
-
in file SforceHeaderOptions.php, method QueryOptions::__construct()
    Constructor
-
__construct
-
in file SforceHeaderOptions.php, method AssignmentRuleHeader::__construct()
    Constructor. Only one param can be set.
-
__construct
-
in file SforceEmail.php, method SingleEmailMessage::__construct()
-
__construct
-
in file SforceHeaderOptions.php, method CallOptions::__construct()
-
__construct
-
in file SforceHeaderOptions.php, method EmailHeader::__construct()
-
__construct
-
in file SforceHeaderOptions.php, method LoginScopeHeader::__construct()
-
__construct
-
in file SforceHeaderOptions.php, method MruHeader::__construct()
-
-
- top
-
- -
-

a

-
-
$action
-
in file SforceProcessRequest.php, variable ProcessWorkitemRequest::$action
-
$assignmentRuleHeader
-
in file SforceBaseClient.php, variable SforceBaseClient::$assignmentRuleHeader
-
$assignmentRuleId
-
in file SforceHeaderOptions.php, variable AssignmentRuleHeader::$assignmentRuleId
-
AssignmentRuleHeader
-
in file SforceHeaderOptions.php, class AssignmentRuleHeader
    To be used with Create and Update operations.
-
PARTNER_NAMESPACE
-
in file SforcePartnerClient.php, class constant SforcePartnerClient::PARTNER_NAMESPACE
-
-
- top
-
- -
-

b

-
-
$batchSize
-
in file SforceHeaderOptions.php, variable QueryOptions::$batchSize
-
-
- top
-
- -
-

c

-
-
$callOptions
-
in file SforceBaseClient.php, variable SforceBaseClient::$callOptions
-
$ccAddresses
-
in file SforceEmail.php, variable SingleEmailMessage::$ccAddresses
-
$client
-
in file SforceHeaderOptions.php, variable CallOptions::$client
-
$client_id
-
in file SforceBaseClient.php, variable SforceBaseClient::$client_id
-
$comments
-
in file SforceProcessRequest.php, variable ProcessRequest::$comments
-
CallOptions
-
in file SforceHeaderOptions.php, class CallOptions
    This file contains three classes.
-
checkStatus
-
in file SforceMetadataClient.php, method SforceMetadataClient::checkStatus()
-
convertFields
-
in file SforcePartnerClient.php, method SObject::convertFields()
    Parse the "any" string from an sObject. First strip out the sf: and then enclose string with <Object></Object>. Load the string using simplexml_load_string and return an array that can be traversed.
-
convertLead
-
in file SforceBaseClient.php, method SforceBaseClient::convertLead()
    Converts a Lead into an Account, Contact, or (optionally) an Opportunity.
-
create
-
in file SforcePartnerClient.php, method SforcePartnerClient::create()
    Adds one or more new individual objects to your organization's data.
-
create
-
in file SforceMetadataClient.php, method SforceMetadataClient::create()
-
create
-
in file SforceEnterpriseClient.php, method SforceEnterpriseClient::create()
    Adds one or more new individual objects to your organization's data.
-
createConnection
-
in file SforceBaseClient.php, method SforceBaseClient::createConnection()
    Connect method to www.salesforce.com
-
-
- top
-
- -
-

d

-
-
$defaultNamespace
-
in file SforceHeaderOptions.php, variable CallOptions::$defaultNamespace
-
$done
-
in file SforcePartnerClient.php, variable QueryResult::$done
-
delete
-
in file SforceMetadataClient.php, method SforceMetadataClient::delete()
-
delete
-
in file SforceBaseClient.php, method SforceBaseClient::delete()
    Deletes one or more new individual objects to your organization's data.
-
DEPLOYMENT_STATUS_DEPLOYED
-
in file SforceFieldTypes.php, constant DEPLOYMENT_STATUS_DEPLOYED
-
DEPLOYMENT_STATUS_INDEVELOPMENT
-
in file SforceFieldTypes.php, constant DEPLOYMENT_STATUS_INDEVELOPMENT
-
describeGlobal
-
in file SforceBaseClient.php, method SforceBaseClient::describeGlobal()
    Retrieves a list of available objects for your organization's data.
-
describeLayout
-
in file SforceBaseClient.php, method SforceBaseClient::describeLayout()
    Use describeLayout to retrieve information about the layout (presentation
-
describeSObject
-
in file SforceBaseClient.php, method SforceBaseClient::describeSObject()
    Describes metadata (field list and object properties) for the specified object.
-
describeSObjects
-
in file SforceBaseClient.php, method SforceBaseClient::describeSObjects()
    An array-based version of describeSObject; describes metadata (field list and object properties) for the specified object or array of objects.
-
describeTabs
-
in file SforceBaseClient.php, method SforceBaseClient::describeTabs()
    The describeTabs call returns information about the standard apps and custom apps, if any, available for the user who sends the call, including the list of tabs defined for each app.
-
-
- top
-
- -
-

e

-
-
$emailHeader
-
in file SforceBaseClient.php, variable SforceBaseClient::$emailHeader
-
Email
-
in file SforceEmail.php, class Email
-
EmailHeader
-
in file SforceHeaderOptions.php, class EmailHeader
-
EMAIL_PRIORITY_HIGH
-
in file SforceEmail.php, constant EMAIL_PRIORITY_HIGH
-
EMAIL_PRIORITY_HIGHEST
-
in file SforceEmail.php, constant EMAIL_PRIORITY_HIGHEST
-
EMAIL_PRIORITY_LOW
-
in file SforceEmail.php, constant EMAIL_PRIORITY_LOW
-
EMAIL_PRIORITY_LOWEST
-
in file SforceEmail.php, constant EMAIL_PRIORITY_LOWEST
-
EMAIL_PRIORITY_NORMAL
-
in file SforceEmail.php, constant EMAIL_PRIORITY_NORMAL
-
emptyRecycleBin
-
in file SforceBaseClient.php, method SforceBaseClient::emptyRecycleBin()
    Deletes one or more new individual objects to your organization's data.
-
-
- top
-
- -
-

f

-
-
$fields
-
in file SforcePartnerClient.php, variable SObject::$fields
-
-
- top
-
- -
-

g

-
-
GENDER_FEMININE
-
in file SforceFieldTypes.php, constant GENDER_FEMININE
-
GENDER_MASCULINE
-
in file SforceFieldTypes.php, constant GENDER_MASCULINE
-
GENDER_NEUTER
-
in file SforceFieldTypes.php, constant GENDER_NEUTER
-
getConnection
-
in file SforceBaseClient.php, method SforceBaseClient::getConnection()
-
getDeleted
-
in file SforceBaseClient.php, method SforceBaseClient::getDeleted()
    Retrieves the list of individual objects that have been deleted within the given timespan for the specified object.
-
getFunctions
-
in file SforceBaseClient.php, method SforceBaseClient::getFunctions()
-
getLastRequest
-
in file SforceBaseClient.php, method SforceBaseClient::getLastRequest()
-
getLastRequest
-
in file SforceMetadataClient.php, method SforceMetadataClient::getLastRequest()
-
getLastRequestHeaders
-
in file SforceBaseClient.php, method SforceBaseClient::getLastRequestHeaders()
-
getLastRequestHeaders
-
in file SforceMetadataClient.php, method SforceMetadataClient::getLastRequestHeaders()
-
getLastResponse
-
in file SforceBaseClient.php, method SforceBaseClient::getLastResponse()
-
getLastResponse
-
in file SforceMetadataClient.php, method SforceMetadataClient::getLastResponse()
-
getLastResponseHeaders
-
in file SforceBaseClient.php, method SforceBaseClient::getLastResponseHeaders()
-
getLastResponseHeaders
-
in file SforceMetadataClient.php, method SforceMetadataClient::getLastResponseHeaders()
-
getLocation
-
in file SforceBaseClient.php, method SforceBaseClient::getLocation()
-
getNamespace
-
in file SforceBaseClient.php, method SforceBaseClient::getNamespace()
-
getServerTimestamp
-
in file SforceBaseClient.php, method SforceBaseClient::getServerTimestamp()
    Retrieves the current system timestamp (GMT) from the Web service.
-
getSessionId
-
in file SforceBaseClient.php, method SforceBaseClient::getSessionId()
-
getTypes
-
in file SforceBaseClient.php, method SforceBaseClient::getTypes()
-
getUpdated
-
in file SforceBaseClient.php, method SforceBaseClient::getUpdated()
    Retrieves the list of individual objects that have been updated (added or changed) within the given timespan for the specified object.
-
getUserInfo
-
in file SforceBaseClient.php, method SforceBaseClient::getUserInfo()
-
-
- top
-
- -
-

i

-
-
isQueryResult
-
in file SforcePartnerClient.php, method SObject::isQueryResult()
-
isSObject
-
in file SforcePartnerClient.php, method SObject::isSObject()
-
-
- top
-
- -
-

l

-
-
$location
-
in file SforceMetadataClient.php, variable SforceMetadataClient::$location
-
$location
-
in file SforceBaseClient.php, variable SforceBaseClient::$location
-
$loginScopeHeader
-
in file SforceBaseClient.php, variable SforceBaseClient::$loginScopeHeader
-
login
-
in file SforceBaseClient.php, method SforceBaseClient::login()
    Login to Salesforce.com and starts a client session.
-
LoginScopeHeader
-
in file SforceHeaderOptions.php, class LoginScopeHeader
    To be used with the Login operation.
-
-
- top
-
- -
-

m

-
-
$mruHeader
-
in file SforceBaseClient.php, variable SforceBaseClient::$mruHeader
-
MassEmailMessage
-
in file SforceEmail.php, class MassEmailMessage
-
merge
-
in file SforcePartnerClient.php, method SforcePartnerClient::merge()
    Merge records
-
merge
-
in file SforceEnterpriseClient.php, method SforceEnterpriseClient::merge()
    Merge records
-
MruHeader
-
in file SforceHeaderOptions.php, class MruHeader
    To be used with Create and Update operations.
-
-
- top
-
- -
-

n

-
-
$namespace
-
in file SforceMetadataClient.php, variable SforceMetadataClient::$namespace
-
$namespace
-
in file SforceBaseClient.php, variable SforceBaseClient::$namespace
-
$nextApproverIds
-
in file SforceProcessRequest.php, variable ProcessRequest::$nextApproverIds
-
ENTERPRISE_NAMESPACE
-
in file SforceEnterpriseClient.php, class constant SforceEnterpriseClient::ENTERPRISE_NAMESPACE
-
-
- top
-
- -
-

o

-
-
$objectId
-
in file SforceProcessRequest.php, variable ProcessSubmitRequest::$objectId
-
$organizationId
-
in file SforceHeaderOptions.php, variable LoginScopeHeader::$organizationId
-
-
- top
-
- -
-

p

-
-
$portalId
-
in file SforceHeaderOptions.php, variable LoginScopeHeader::$portalId
-
printDebugInfo
-
in file SforceBaseClient.php, method SforceBaseClient::printDebugInfo()
-
ProcessRequest
-
in file SforceProcessRequest.php, class ProcessRequest
-
ProcessSubmitRequest
-
in file SforceProcessRequest.php, class ProcessSubmitRequest
-
processSubmitRequest
-
in file SforceBaseClient.php, method SforceBaseClient::processSubmitRequest()
    Process Submit Request for Approval
-
ProcessWorkitemRequest
-
in file SforceProcessRequest.php, class ProcessWorkitemRequest
-
processWorkitemRequest
-
in file SforceBaseClient.php, method SforceBaseClient::processWorkitemRequest()
    Process Work Item Request for Approval
-
-
- top
-
- -
-

q

-
-
$queryHeader
-
in file SforceBaseClient.php, variable SforceBaseClient::$queryHeader
-
$queryLocator
-
in file SforcePartnerClient.php, variable QueryResult::$queryLocator
-
query
-
in file SforceBaseClient.php, method SforceBaseClient::query()
    Executes a query against the specified object and returns data that matches the specified criteria.
-
queryAll
-
in file SforceBaseClient.php, method SforceBaseClient::queryAll()
    Retrieves data from specified objects, whether or not they have been deleted.
-
queryMore
-
in file SforceBaseClient.php, method SforceBaseClient::queryMore()
    Retrieves the next batch of objects from a query.
-
QueryOptions
-
in file SforceHeaderOptions.php, class QueryOptions
    To be used with Retrieve, Query, and QueryMore operations.
-
QueryResult
-
in file SforcePartnerClient.php, class QueryResult
-
-
- top
-
- -
-

r

-
-
$records
-
in file SforcePartnerClient.php, variable QueryResult::$records
-
resetPassword
-
in file SforceBaseClient.php, method SforceBaseClient::resetPassword()
    Changes a user's password to a system-generated value.
-
retrieve
-
in file SforceBaseClient.php, method SforceBaseClient::retrieve()
    Retrieves one or more objects based on the specified object IDs.
-
-
- top
-
- -
-

s

-
-
$sessionHeader
-
in file SforceBaseClient.php, variable SforceBaseClient::$sessionHeader
-
$sessionId
-
in file SforceBaseClient.php, variable SforceBaseClient::$sessionId
-
$sessionId
-
in file SforceMetadataClient.php, variable SforceMetadataClient::$sessionId
-
$sforce
-
in file SforceBaseClient.php, variable SforceBaseClient::$sforce
-
$sforce
-
in file SforceMetadataClient.php, variable SforceMetadataClient::$sforce
-
$size
-
in file SforcePartnerClient.php, variable QueryResult::$size
-
search
-
in file SforceBaseClient.php, method SforceBaseClient::search()
    Executes a text search in your organization's data.
-
sendMassEmail
-
in file SforceBaseClient.php, method SforceBaseClient::sendMassEmail()
-
sendMassEmail
-
in file SforcePartnerClient.php, method SforcePartnerClient::sendMassEmail()
-
sendSingleEmail
-
in file SforceBaseClient.php, method SforceBaseClient::sendSingleEmail()
-
sendSingleEmail
-
in file SforcePartnerClient.php, method SforcePartnerClient::sendSingleEmail()
-
setAssignmentRuleHeader
-
in file SforceBaseClient.php, method SforceBaseClient::setAssignmentRuleHeader()
-
setBccAddresses
-
in file SforceEmail.php, method SingleEmailMessage::setBccAddresses()
-
setBccSender
-
in file SforceEmail.php, method Email::setBccSender()
-
setCallOptions
-
in file SforceBaseClient.php, method SforceBaseClient::setCallOptions()
-
setCaseSensitive
-
in file SforceMetaObject.php, method SforceCustomField::setCaseSensitive()
-
setCcAddresses
-
in file SforceEmail.php, method SingleEmailMessage::setCcAddresses()
-
setCharset
-
in file SforceEmail.php, method SingleEmailMessage::setCharset()
-
setDefaultValue
-
in file SforceMetaObject.php, method SforceCustomField::setDefaultValue()
-
setDeploymentStatus
-
in file SforceMetaObject.php, method SforceCustomObject::setDeploymentStatus()
-
setDescription
-
in file SforceMetaObject.php, method SforceCustomField::setDescription()
-
setDescription
-
in file SforceMetaObject.php, method SforceCustomObject::setDescription()
-
setDisplayFormat
-
in file SforceMetaObject.php, method SforceCustomField::setDisplayFormat()
-
setDocumentAttachments
-
in file SforceEmail.php, method SingleEmailMessage::setDocumentAttachments()
-
setEmailHeader
-
in file SforceBaseClient.php, method SforceBaseClient::setEmailHeader()
-
setEmailPriority
-
in file SforceEmail.php, method Email::setEmailPriority()
-
setEnableActivities
-
in file SforceMetaObject.php, method SforceCustomObject::setEnableActivities()
-
setEnableDivisions
-
in file SforceMetaObject.php, method SforceCustomObject::setEnableDivisions()
-
setEnableHistory
-
in file SforceMetaObject.php, method SforceCustomObject::setEnableHistory()
-
setEnableReports
-
in file SforceMetaObject.php, method SforceCustomObject::setEnableReports()
-
setEndpoint
-
in file SforceMetadataClient.php, method SforceMetadataClient::setEndpoint()
    Set the endpoint.
-
setEndpoint
-
in file SforceBaseClient.php, method SforceBaseClient::setEndpoint()
    Set the endpoint.
-
setExternalId
-
in file SforceMetaObject.php, method SforceCustomField::setExternalId()
-
setFields
-
in file SforceMetaObject.php, method SforceCustomObject::setFields()
-
setFileAttachments
-
in file SforceEmail.php, method SingleEmailMessage::setFileAttachments()
-
setFormula
-
in file SforceMetaObject.php, method SforceCustomField::setFormula()
-
setFormulaTreatBlankAs
-
in file SforceMetaObject.php, method SforceCustomField::setFormulaTreatBlankAs()
-
setFullName
-
in file SforceMetaObject.php, method SforceCustomField::setFullName()
-
setFullName
-
in file SforceMetaObject.php, method SforceCustomObject::setFullName()
-
setGender
-
in file SforceMetaObject.php, method SforceCustomObject::setGender()
-
setHousehold
-
in file SforceMetaObject.php, method SforceCustomObject::setHousehold()
-
setHtmlBody
-
in file SforceEmail.php, method SingleEmailMessage::setHtmlBody()
-
setInlineHelpText
-
in file SforceMetaObject.php, method SforceCustomField::setInlineHelpText()
-
setLabel
-
in file SforceMetaObject.php, method SforceCustomField::setLabel()
-
setLabel
-
in file SforceMetaObject.php, method SforceCustomObject::setLabel()
-
setLength
-
in file SforceMetaObject.php, method SforceCustomField::setLength()
-
setLoginScopeHeader
-
in file SforceBaseClient.php, method SforceBaseClient::setLoginScopeHeader()
-
setMaskChar
-
in file SforceMetaObject.php, method SforceCustomField::setMaskChar()
-
setMaskType
-
in file SforceMetaObject.php, method SforceCustomField::setMaskType()
-
setMruHeader
-
in file SforceBaseClient.php, method SforceBaseClient::setMruHeader()
-
setNameField
-
in file SforceMetaObject.php, method SforceCustomObject::setNameField()
-
setPassword
-
in file SforceBaseClient.php, method SforceBaseClient::setPassword()
    Sets the specified user's password to the specified value.
-
setPicklist
-
in file SforceMetaObject.php, method SforceCustomField::setPicklist()
-
setPlainTextBody
-
in file SforceEmail.php, method SingleEmailMessage::setPlainTextBody()
-
setPluralLabel
-
in file SforceMetaObject.php, method SforceCustomObject::setPluralLabel()
-
setPopulateExistingRows
-
in file SforceMetaObject.php, method SforceCustomField::setPopulateExistingRows()
-
setPrecision
-
in file SforceMetaObject.php, method SforceCustomField::setPrecision()
-
setQueryOptions
-
in file SforceBaseClient.php, method SforceBaseClient::setQueryOptions()
-
setReferenceTo
-
in file SforceMetaObject.php, method SforceCustomField::setReferenceTo()
-
setRelationshipName
-
in file SforceMetaObject.php, method SforceCustomField::setRelationshipName()
-
setReplyTo
-
in file SforceEmail.php, method Email::setReplyTo()
-
setRequired
-
in file SforceMetaObject.php, method SforceCustomField::setRequired()
-
setSaveAsActivity
-
in file SforceEmail.php, method Email::setSaveAsActivity()
-
setScale
-
in file SforceMetaObject.php, method SforceCustomField::setScale()
-
setSenderDisplayName
-
in file SforceEmail.php, method Email::setSenderDisplayName()
-
setSessionHeader
-
in file SforceMetadataClient.php, method SforceMetadataClient::setSessionHeader()
    Set the Session ID
-
setSessionHeader
-
in file SforceBaseClient.php, method SforceBaseClient::setSessionHeader()
-
setStartingNumber
-
in file SforceMetaObject.php, method SforceCustomField::setStartingNumber()
-
setStartsWith
-
in file SforceMetaObject.php, method SforceCustomObject::setStartsWith()
-
setSubject
-
in file SforceEmail.php, method Email::setSubject()
-
setSummarizeField
-
in file SforceMetaObject.php, method SforceCustomField::setSummarizeField()
-
setSummaryFilterItems
-
in file SforceMetaObject.php, method SforceCustomField::setSummaryFilterItems()
-
setSummaryForeignKey
-
in file SforceMetaObject.php, method SforceCustomField::setSummaryForeignKey()
-
setSummaryOperation
-
in file SforceMetaObject.php, method SforceCustomField::setSummaryOperation()
-
setTargetObjectId
-
in file SforceEmail.php, method SingleEmailMessage::setTargetObjectId()
-
setTargetObjectIds
-
in file SforceEmail.php, method MassEmailMessage::setTargetObjectIds()
-
setTemplateId
-
in file SforceEmail.php, method SingleEmailMessage::setTemplateId()
-
setTemplateId
-
in file SforceEmail.php, method MassEmailMessage::setTemplateId()
-
setToAddresses
-
in file SforceEmail.php, method SingleEmailMessage::setToAddresses()
-
setType
-
in file SforceMetaObject.php, method SforceCustomField::setType()
-
setUnique
-
in file SforceMetaObject.php, method SforceCustomField::setUnique()
-
setUserTerritoryDeleteHeader
-
in file SforceBaseClient.php, method SforceBaseClient::setUserTerritoryDeleteHeader()
-
setUseSignature
-
in file SforceEmail.php, method Email::setUseSignature()
-
setVisibleLines
-
in file SforceMetaObject.php, method SforceCustomField::setVisibleLines()
-
setWhatId
-
in file SforceEmail.php, method SingleEmailMessage::setWhatId()
-
setWhatIds
-
in file SforceEmail.php, method MassEmailMessage::setWhatIds()
-
SforceBaseClient
-
in file SforceBaseClient.php, class SforceBaseClient
    SalesforceSoapClient
-
SforceCustomField
-
in file SforceMetaObject.php, class SforceCustomField
-
SforceCustomObject
-
in file SforceMetaObject.php, class SforceCustomObject
-
SforceEnterpriseClient
-
in file SforceEnterpriseClient.php, class SforceEnterpriseClient
    SforceEnterpriseClient class.
-
SforceEnterpriseClient
-
in file SforceEnterpriseClient.php, method SforceEnterpriseClient::SforceEnterpriseClient()
-
SforceMetadataClient
-
in file SforceMetadataClient.php, class SforceMetadataClient
-
SforcePartnerClient
-
in file SforcePartnerClient.php, method SforcePartnerClient::SforcePartnerClient()
-
SforcePartnerClient
-
in file SforcePartnerClient.php, class SforcePartnerClient
    SforcePartnerClient class.
-
SHARING_MODEL_PRIVATE
-
in file SforceFieldTypes.php, constant SHARING_MODEL_PRIVATE
-
SHARING_MODEL_READ
-
in file SforceFieldTypes.php, constant SHARING_MODEL_READ
-
SHARING_MODEL_READWRITE
-
in file SforceFieldTypes.php, constant SHARING_MODEL_READWRITE
-
SingleEmailMessage
-
in file SforceEmail.php, class SingleEmailMessage
-
SforceBaseClient.php
-
procedural page SforceBaseClient.php
-
SforceEmail.php
-
procedural page SforceEmail.php
-
SforceEnterpriseClient.php
-
procedural page SforceEnterpriseClient.php
-
SforceFieldTypes.php
-
procedural page SforceFieldTypes.php
-
SforceHeaderOptions.php
-
procedural page SforceHeaderOptions.php
-
SforceMetadataClient.php
-
procedural page SforceMetadataClient.php
-
SforceMetaObject.php
-
procedural page SforceMetaObject.php
-
SforcePartnerClient.php
-
procedural page SforcePartnerClient.php
-
SforceProcessRequest.php
-
procedural page SforceProcessRequest.php
-
SObject
-
in file SforcePartnerClient.php, class SObject
    Salesforce Object
-
STARTS_WITH_CONSONANT
-
in file SforceFieldTypes.php, constant STARTS_WITH_CONSONANT
-
STARTS_WITH_SPECIAL
-
in file SforceFieldTypes.php, constant STARTS_WITH_SPECIAL
-
STARTS_WITH_VOWEL
-
in file SforceFieldTypes.php, constant STARTS_WITH_VOWEL
-
-
- top
-
- -
-

t

-
-
$transferToUserId
-
in file SforceHeaderOptions.php, variable UserTerritoryDeleteHeader::$transferToUserId
-
$triggerAutoResponseEmail
-
in file SforceHeaderOptions.php, variable EmailHeader::$triggerAutoResponseEmail
-
$triggerOtherEmail
-
in file SforceHeaderOptions.php, variable EmailHeader::$triggerOtherEmail
-
$triggerUserEmail
-
in file SforceHeaderOptions.php, variable EmailHeader::$triggerUserEmail
-
$type
-
in file SforcePartnerClient.php, variable SObject::$type
-
TREAT_BLANKS_AS_BLANK
-
in file SforceFieldTypes.php, constant TREAT_BLANKS_AS_BLANK
-
TREAT_BLANKS_AS_ZERO
-
in file SforceFieldTypes.php, constant TREAT_BLANKS_AS_ZERO
-
-
- top
-
- -
-

u

-
-
$updateMruFlag
-
in file SforceHeaderOptions.php, variable MruHeader::$updateMruFlag
-
$useDefaultRuleFlag
-
in file SforceHeaderOptions.php, variable AssignmentRuleHeader::$useDefaultRuleFlag
-
$userTerritoryDeleteHeader
-
in file SforceBaseClient.php, variable SforceBaseClient::$userTerritoryDeleteHeader
-
undelete
-
in file SforceBaseClient.php, method SforceBaseClient::undelete()
    Deletes one or more new individual objects to your organization's data.
-
update
-
in file SforcePartnerClient.php, method SforcePartnerClient::update()
    Updates one or more new individual objects to your organization's data.
-
update
-
in file SforceEnterpriseClient.php, method SforceEnterpriseClient::update()
    Updates one or more new individual objects to your organization's data.
-
upsert
-
in file SforcePartnerClient.php, method SforcePartnerClient::upsert()
    Creates new objects and updates existing objects; uses a custom field to determine the presence of existing objects. In most cases, we recommend that you use upsert instead of create because upsert is idempotent.
-
upsert
-
in file SforceEnterpriseClient.php, method SforceEnterpriseClient::upsert()
    Creates new objects and updates existing objects; uses a custom field to determine the presence of existing objects. In most cases, we recommend that you use upsert instead of create because upsert is idempotent.
-
UserTerritoryDeleteHeader
-
in file SforceHeaderOptions.php, class UserTerritoryDeleteHeader
-
-
- top
-
- -
-

v

-
-
$version
-
in file SforceBaseClient.php, variable SforceBaseClient::$version
-
-
- top
-
- -
-

w

-
-
$workitemId
-
in file SforceProcessRequest.php, variable ProcessWorkitemRequest::$workitemId
-
-
- top
-
-
- Documentation generated on Fri, 15 Feb 2008 14:42:29 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/elementindex_SalesforceTest.html b/apidocs/elementindex_SalesforceTest.html deleted file mode 100644 index e8078e1..0000000 --- a/apidocs/elementindex_SalesforceTest.html +++ /dev/null @@ -1,154 +0,0 @@ - - -Package SalesforceTest Element Index - - - - - - - - - - - - - -
SalesforceTest
- [ class tree: SalesforceTest ] - [ index: SalesforceTest ] - [ all elements ] -
- - - - - - -
-
- - -

Element index for package SalesforceTest

- [ d ] - [ m ] - [ s ] - [ t ] - -
- -
-

d

-
-
deleteAll
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::deleteAll()
-
-
- top
-
- -
-

m

-
-
$mylogin
-
in file SforcePartnerClientTest.php, variable SforcePartnerClientTest::$mylogin
-
$mySforceConnection
-
in file SforcePartnerClientTest.php, variable SforcePartnerClientTest::$mySforceConnection
-
-
- top
-
- -
-

s

-
-
setUp
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::setUp()
-
SforcePartnerClientTest
-
in file SforcePartnerClientTest.php, class SforcePartnerClientTest
    SforcePartnerClientTest class.
-
SforcePartnerClientTest.php
-
procedural page SforcePartnerClientTest.php
-
-
- top
-
- -
-

t

-
-
$theId
-
in file SforcePartnerClientTest.php, variable SforcePartnerClientTest::$theId
-
testAssignmentRuleHeaderFlag
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testAssignmentRuleHeaderFlag()
-
testAssignmentRuleHeaderId
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testAssignmentRuleHeaderId()
-
testCreate
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testCreate()
-
testDelete
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testDelete()
-
testDescribeGlobal
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testDescribeGlobal()
-
testDescribeLayout
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testDescribeLayout()
-
testDescribeSObject
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testDescribeSObject()
-
testDescribeSObjects
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testDescribeSObjects()
-
testDescribeTabs
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testDescribeTabs()
-
testEmptyRecycleBin
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testEmptyRecycleBin()
-
testGetDeleted
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testGetDeleted()
-
testGetUpdated
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testGetUpdated()
-
testLogin
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testLogin()
-
testMruHeader
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testMruHeader()
-
testQuery
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testQuery()
-
testRetrieve
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testRetrieve()
-
testSearch
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testSearch()
-
testSendMassEmail
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testSendMassEmail()
-
testSendSingleEmail
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testSendSingleEmail()
-
testServerTimestamp
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testServerTimestamp()
-
testUpdate
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testUpdate()
-
testUpsert
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testUpsert()
-
testUserInfo
-
in file SforcePartnerClientTest.php, method SforcePartnerClientTest::testUserInfo()
-
-
- top
-
-
- Documentation generated on Fri, 15 Feb 2008 14:42:29 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/errors.html b/apidocs/errors.html deleted file mode 100644 index 3403626..0000000 --- a/apidocs/errors.html +++ /dev/null @@ -1,110 +0,0 @@ - - -phpDocumentor Parser Errors and Warnings - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -Post-parsing
-SforceEmail.php
-SforceEnterpriseClient.php
-SforceFieldTypes.php
-SforceHeaderOptions.php
-SforceMetadataClient.php
-SforceMetaObject.php
-SforcePartnerClient.php
-SforcePartnerClientTest.php
-SforceProcessRequest.php
- -

Post-parsing

-

Warnings:


-Warning - Class SforcePartnerClientTest parent PHPUnit_Framework_TestCase not found
- -

SforceBaseClient.php

-

Warnings:


-Warning on line 760 - File "C:\sfdc\sforce\internal_repos\API_V10\php\soapclient\SforceBaseClient.php" has no page-level DocBlock, use @package in the first DocBlock to create one
- -

SforceEmail.php

-

Warnings:


-Warning on line 7 - no @package tag was used in a DocBlock for class Email
-Warning on line 37 - no @package tag was used in a DocBlock for class SingleEmailMessage
-Warning on line 87 - no @package tag was used in a DocBlock for class MassEmailMessage
-Warning on line 100 - File "C:\sfdc\sforce\internal_repos\API_V10\php\soapclient\SforceEmail.php" has no page-level DocBlock, use @package in the first DocBlock to create one
- -

SforceEnterpriseClient.php

-

Warnings:


-Warning on line 108 - File "C:\sfdc\sforce\internal_repos\API_V10\php\soapclient\SforceEnterpriseClient.php" has no page-level DocBlock, use @package in the first DocBlock to create one
- -

SforceFieldTypes.php

-

Warnings:


-Warning on line 19 - File "C:\sfdc\sforce\internal_repos\API_V10\php\soapclient\SforceFieldTypes.php" has no page-level DocBlock, use @package in the first DocBlock to create one
- -

SforceHeaderOptions.php

-

Warnings:


-Warning on line 33 - DocBlock would be page-level, but precedes class "CallOptions", use another DocBlock to document the file
-Warning on line 122 - no @package tag was used in a DocBlock for class EmailHeader
-Warning on line 134 - no @package tag was used in a DocBlock for class UserTerritoryDeleteHeader
- -

SforceMetadataClient.php

-

Warnings:


-Warning on line 3 - no @package tag was used in a DocBlock for class SforceMetadataClient
-Warning on line 124 - File "C:\sfdc\sforce\internal_repos\API_V10\php\soapclient\SforceMetadataClient.php" has no page-level DocBlock, use @package in the first DocBlock to create one
- -

SforceMetaObject.php

-

Warnings:


-Warning on line 3 - no @package tag was used in a DocBlock for class SforceCustomObject
-Warning on line 61 - no @package tag was used in a DocBlock for class SforceCustomField
-Warning on line 174 - File "C:\sfdc\sforce\internal_repos\API_V10\php\soapclient\SforceMetaObject.php" has no page-level DocBlock, use @package in the first DocBlock to create one
- -

SforcePartnerClient.php

-

Warnings:


-Warning on line 154 - no @package tag was used in a DocBlock for class QueryResult
-Warning on line 304 - File "C:\sfdc\sforce\internal_repos\API_V10\php\soapclient\SforcePartnerClient.php" has no page-level DocBlock, use @package in the first DocBlock to create one
- -

SforcePartnerClientTest.php

-

Warnings:


-Warning on line 526 - File "C:\sfdc\sforce\internal_repos\API_V10\php\test\SforcePartnerClientTest.php" has no page-level DocBlock, use @package in the first DocBlock to create one
- -

SforceProcessRequest.php

-

Warnings:


-Warning on line 1 - no @package tag was used in a DocBlock for class ProcessRequest
-Warning on line 6 - no @package tag was used in a DocBlock for class ProcessSubmitRequest
-Warning on line 10 - no @package tag was used in a DocBlock for class ProcessWorkitemRequest
-Warning on line 14 - File "C:\sfdc\sforce\internal_repos\API_V10\php\soapclient\SforceProcessRequest.php" has no page-level DocBlock, use @package in the first DocBlock to create one
-
-
- Documentation generated on Fri, 15 Feb 2008 14:42:36 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/index.html b/apidocs/index.html deleted file mode 100644 index fbd7bcf..0000000 --- a/apidocs/index.html +++ /dev/null @@ -1,95 +0,0 @@ - - -Generated Documentation - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Generated Documentation

-Welcome to SalesforceSoapClient!
-
-This documentation was generated by phpDocumentor v1.3.1
-
-
- Documentation generated on Fri, 15 Feb 2008 14:42:29 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/li_SalesforceSoapClient.html b/apidocs/li_SalesforceSoapClient.html deleted file mode 100644 index fbd7bcf..0000000 --- a/apidocs/li_SalesforceSoapClient.html +++ /dev/null @@ -1,95 +0,0 @@ - - -Generated Documentation - - - - - - - - - - - - - -
SalesforceSoapClient
- [ class tree: SalesforceSoapClient ] - [ index: SalesforceSoapClient ] - [ all elements ] -
- - - - - - -
-
- -

Generated Documentation

-Welcome to SalesforceSoapClient!
-
-This documentation was generated by phpDocumentor v1.3.1
-
-
- Documentation generated on Fri, 15 Feb 2008 14:42:29 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/li_SalesforceTest.html b/apidocs/li_SalesforceTest.html deleted file mode 100644 index 7133ebd..0000000 --- a/apidocs/li_SalesforceTest.html +++ /dev/null @@ -1,59 +0,0 @@ - - -Generated Documentation - - - - - - - - - - - - - -
SalesforceTest
- [ class tree: SalesforceTest ] - [ index: SalesforceTest ] - [ all elements ] -
- - - - - - -
-
- -

Generated Documentation

-Welcome to SalesforceTest!
-
-This documentation was generated by phpDocumentor v1.3.1
-
-
- Documentation generated on Fri, 15 Feb 2008 14:42:29 -0800 by phpDocumentor 1.3.1 -
-
-
- - - \ No newline at end of file diff --git a/apidocs/media/Thumbs.db b/apidocs/media/Thumbs.db deleted file mode 100644 index 2ea22d6..0000000 Binary files a/apidocs/media/Thumbs.db and /dev/null differ diff --git a/apidocs/media/background.png b/apidocs/media/background.png deleted file mode 100644 index d6f36f6..0000000 Binary files a/apidocs/media/background.png and /dev/null differ diff --git a/apidocs/media/empty.png b/apidocs/media/empty.png deleted file mode 100644 index a9f29bb..0000000 Binary files a/apidocs/media/empty.png and /dev/null differ diff --git a/apidocs/media/style.css b/apidocs/media/style.css deleted file mode 100644 index 5859cc8..0000000 --- a/apidocs/media/style.css +++ /dev/null @@ -1,195 +0,0 @@ -.php { - padding: 1em; -} -.php-src { font-family: 'Courier New', Courier, monospace; font-weight: normal; } - -body -{ - color: #000000; - background-color: #ffffff; - background-image: url("background.png"); - background-repeat: repeat-y; - font-family: tahoma, verdana, arial, sans-serif; - font-size: 10pt; - margin: 0; - padding: 0; -} - -a -{ - color: #000099; - background-color: transparent; - text-decoration: none; -} - -a:hover -{ - text-decoration: underline; -} - -a.menu -{ - color: #ffffff; - background-color: transparent; -} - -td -{ - font-size: 10pt; -} - -td.header_top -{ - color: #ffffff; - background-color: #9999cc; - font-size: 16pt; - font-weight: bold; - text-align: right; - padding: 10px; -} - -td.header_line -{ - color: #ffffff; - background-color: #333366; -} - -td.header_menu -{ - color: #ffffff; - background-color: #666699; - font-size: 8pt; - text-align: right; - padding: 2px; - padding-right: 5px; -} - -td.menu -{ - padding: 2px; - padding-left: 5px; -} - -td.code_border -{ - color: #000000; - background-color: #c0c0c0; -} - -td.code -{ - color: #000000; - background-color: #f0f0f0; -} - -td.type -{ - font-style: italic; -} - -div.credit -{ - font-size: 8pt; - text-align: center; -} - -div.package -{ - padding-left: 5px; -} - -div.tags -{ - padding-left: 15px; -} - -div.function -{ - padding-left: 15px; -} - -div.top -{ - font-size: 8pt; -} - -div.warning -{ - color: #ff0000; - background-color: transparent; -} - -div.description -{ - padding-left: 15px; -} - -hr -{ - height: 1px; - border-style: solid; - border-color: #c0c0c0; - margin-top: 10px; - margin-bottom: 10px; -} - -span.smalllinenumber -{ - font-size: 8pt; -} - -ul { - margin-left: 0px; - padding-left: 8px; -} -/* Syntax highlighting */ - -.src-code { background-color: #f5f5f5; border: 1px solid #ccc9a4; padding: 0px; margin : 0px; - font-family: 'Courier New', Courier, monospace; font-weight: normal; } -.src-line { font-family: 'Courier New', Courier, monospace; font-weight: normal; } - -.src-comm { color: green; } -.src-id { } -.src-inc { color: #0000FF; } -.src-key { color: #0000FF; } -.src-num { color: #CC0000; } -.src-str { color: #66cccc; } -.src-sym { font-weight: bold; } -.src-var { } - -.src-php { font-weight: bold; } - -.src-doc { color: #009999 } -.src-doc-close-template { color: #0000FF } -.src-doc-coretag { color: #0099FF; font-weight: bold } -.src-doc-inlinetag { color: #0099FF } -.src-doc-internal { color: #6699cc } -.src-doc-tag { color: #0080CC } -.src-doc-template { color: #0000FF } -.src-doc-type { font-style: italic } -.src-doc-var { font-style: italic } - -.tute-tag { color: #009999 } -.tute-attribute-name { color: #0000FF } -.tute-attribute-value { color: #0099FF } -.tute-entity { font-weight: bold; } -.tute-comment { font-style: italic } -.tute-inline-tag { color: #636311; font-weight: bold } - -/* tutorial */ - -.authors { } -.author { font-style: italic; font-weight: bold } -.author-blurb { margin: .5em 0em .5em 2em; font-size: 85%; font-weight: normal; font-style: normal } -.example { border: 1px dashed #999999; background-color: #EEEEEE; padding: .5em; } -.listing { border: 1px dashed #999999; background-color: #EEEEEE; padding: .5em; white-space: nowrap; } -.release-info { font-size: 85%; font-style: italic; margin: 1em 0em } -.ref-title-box { } -.ref-title { } -.ref-purpose { font-style: italic; color: #666666 } -.ref-synopsis { } -.title { font-weight: bold; margin: 1em 0em 0em 0em; padding: .25em; border: 2px solid #999999; background-color: #9999CC } -.cmd-synopsis { margin: 1em 0em } -.cmd-title { font-weight: bold } -.toc { margin-left: 2em; padding-left: 0em } - diff --git a/css/document.css b/css/document.css deleted file mode 100644 index cf8ca5f..0000000 --- a/css/document.css +++ /dev/null @@ -1,25 +0,0 @@ -/* Default style for links */ -a:active { color: #666666; text-decoration: underline; font-weight:normal; } -a:visited.{ color: #666666; text-decoration: underline; font-weight:normal; } -a:link { color: #666666; text-decoration: underline; font-weight:normal; } -a:hover { color: #CC0000; text-decoration: underline; font-weight:normal; } - -/* Default style */ -body -{ - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; font-weight: normal; font-size: 12px; color: #666666; background-color: #FFFFFF; -} - -/* Use this style for footnote numbers */ -span.Footnote -{ - font-size: small; - vertical-align: super -} - -/* Use this style to control spacing for inline related topics tags */ -div.WWHInlineRelatedTopics -{ - margin-top: 8px; - margin-bottom: 4px; -} diff --git a/css/sforce.css b/css/sforce.css deleted file mode 100644 index 4d1cf3b..0000000 --- a/css/sforce.css +++ /dev/null @@ -1,722 +0,0 @@ -b.cBold -{ - font-weight: bold -} -code.cCode -{ - font-family: Courier New, Courier, mono -} - -.codebox -{ - background: #f1f5f9; - border: 1px solid #c7cfd5; - font-family: Courier New, Courier, mono - margin: 20px 0; - padding: 8px; - text-align: left; -} - -em.cEmphasis -{ - font-style: italic -} -sub.cSubscript -{ - vertical-align: sub -} -sup.cSuperscript -{ - vertical-align: super -} -u.cUnderline -{ - text-decoration: underline -} - -p.pBody -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-left: 0em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -p.pBodyRelative -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-bottom: 6pt; - margin-left: 0em; - margin-right: 0em; - margin-top: 6pt; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -div.pCellBody -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-bottom: 0em; - margin-left: 0em; - margin-right: 0em; - margin-top: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -div.pCellHeading -{ - color: #FFFFFF; - background-color: #999999; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: bold; - margin-bottom: 0em; - margin-left: 0em; - margin-right: 0em; - margin-top: 0em; - text-align: center; - text-decoration: none; - text-indent: 0em; - text-transform: none -} - -p.pCopyrightText -{ - color: #999999; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 10px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-top: 0em; - margin-bottom: 0em; - margin-left: 0em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -h2.pGroupTitlesIX -{ - color: #CC0000; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 16px; - font-style: normal; - font-variant: normal; - font-weight: bold; - margin-left: 0em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -h2.pHeading1 -{ - color: #CC0000; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 16px; - font-style: normal; - font-variant: normal; - font-weight: bold; - margin-top: 0em; - margin-bottom: 0em; - margin-left: 0em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -h3.pHeading2 -{ - color: #CC0000; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: bold; - margin-left: 0em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -h4.pHeading3 -{ - color: #CC0000; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 10px; - font-style: normal; - font-variant: normal; - font-weight: bold; - margin-left: 0em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -h5.pHeading4 -{ - color: #CC0000; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 9px; - font-style: normal; - font-variant: normal; - font-weight: bold; - margin-left: 0em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -p.pIndented1 -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-left: 2.5em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -p.pIndented2 -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-left: 5em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -p.pIndented3 -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-left: 7.5em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -p.pIndented4 -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-left: 10em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -p.pIndented5 -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-left: 12.5em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -p.pIndentedRelative -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-left: 2.5em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -p.pLevel1IX -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-left: 2.5em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -p.pLevel2IX -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-left: 5em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -p.pLevel3IX -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-left: 7.5em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -p.pLevel4IX -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-left: 10em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -p.pLevel5IX -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-left: 12.5em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -h2.pNewHTMLPage -{ - color: #CC0000; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 16px; - font-style: normal; - font-variant: normal; - font-weight: bold; - margin-top: 0em; - margin-bottom: 0em; - margin-left: 0em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -p.pNoteTitle -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: bold; - margin-left: 0em; - margin-right: 0em; - margin-bottom: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -p.pNote -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-top: 0em; - margin-left: 1.25em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -div.pPopup -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-left: 0em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -div.pPopupAppend -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-left: 0em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -div.pPreformatted -{ - color: 666666; - font-family: Courier New, Courier, mono; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-bottom: 0em; - margin-left: 0em; - margin-right: 0em; - margin-top: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -div.pPreformattedRelative -{ - color: 666666; - font-family: Courier New, Courier, mono; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-bottom: 0em; - margin-left: 0em; - margin-right: 0em; - margin-top: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -div.pRelatedTopic -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-left: 0em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} - -p.pSeeAlsoRef -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 10px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-top: 0em; - margin-bottom: 0em; - margin-left: 2.5em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} - - - - - -div.pSmartList1 -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-bottom: 6pt; - margin-left: 0em; - margin-right: 0em; - margin-top: 6pt; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -div.pSmartList2 -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-bottom: 6pt; - margin-left: 0em; - margin-right: 0em; - margin-top: 6pt; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -div.pSmartList3 -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-bottom: 6pt; - margin-left: 0em; - margin-right: 0em; - margin-top: 6pt; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -div.pSmartList4 -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-bottom: 6pt; - margin-left: 0em; - margin-right: 0em; - margin-top: 6pt; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -div.pSmartList5 -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: normal; - margin-bottom: 6pt; - margin-left: 0em; - margin-right: 0em; - margin-top: 6pt; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -div.pTableTitle -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: bold; - margin-left: 0em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -h2.pTitle -{ - color: #CC0000; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 18px; - font-style: normal; - font-variant: normal; - font-weight: bold; - margin-left: 0em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -h2.pTOC1 -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: bold; - margin-left: 0em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -p.pTOC2 -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: bold; - margin-left: 2.5em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -p.pTOC3 -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: bold; - margin-left: 5em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -p.pTOC4 -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: bold; - margin-left: 7.5em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -p.pTOC5 -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 12px; - font-style: normal; - font-variant: normal; - font-weight: bold; - margin-left: 10em; - margin-right: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} -p.pWebSiteLink -{ - color: #666666; - font-family: 'Verdana', 'Arial', 'Helvetica', 'sans-serif'; - font-size: 10px; - font-style: normal; - font-variant: normal; - font-weight: bold; - margin-top: 0em; - margin-left: 0em; - margin-right: 0em; - margin-bottom: 0em; - text-align: left; - text-decoration: none; - text-indent: 0em; - text-transform: none -} - diff --git a/images/adn-blog.gif b/images/adn-blog.gif deleted file mode 100644 index ea07ced..0000000 Binary files a/images/adn-blog.gif and /dev/null differ diff --git a/images/appexchange_logo_small.gif b/images/appexchange_logo_small.gif deleted file mode 100644 index 0f26f50..0000000 Binary files a/images/appexchange_logo_small.gif and /dev/null differ diff --git a/instructions.html b/instructions.html deleted file mode 100644 index 380d0d4..0000000 --- a/instructions.html +++ /dev/null @@ -1,147 +0,0 @@ - - - - -PHP Sample - - - - - -

-

PHP 5 SOAP Extension Toolkit [AppExchange 7.0 API]

-

Instructions | API Docs | Apache Setup | PHP Setup | Unit Tests

-
-

Although this toolkit is aimed at developers who are already familiar with PHP, novices will also find it helpful in learning PHP and the salesforce API calls. The toolkit is based on PHP 5 and the included SOAP extension. PHP 5's SOAP extension being written in C has the advantage of being faster than other SOAP implementations written in PHP. This toolkit uses this extension to interface with the AppExchange API.

-

The toolkit supports the Partner WSDL only. You will have access to all the same objects and capabilities of the API from the Partner WSDL as you do from the Enterprise WSDL. There is no need to use the Enterprise WSDL

-

Included in this toolkit are the following directories:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Directory
Description
apidocs/API docs
css/Style sheets
images/Images
samples/HelloWorld.php and an Account edit sample.
soapclient/Soapclient classes
test/Test scripts
-

In the soapclient directory, you will the SforcePartnerClient class which is used to make the connection and all method calls to the API. In order to create a connection, you first instantiate SforcePartnerClient and then pass in the WSDL. Once you have an instance of SforcePartnerClient, other AppExchange API method calls can be called directly on the instance. In this instance, you can login by calling login directly on $mySForceConnection. Browse the API doc to learn more about each available method call.

-
-require_once ('soapclient/SforcePartnerClient.php');
-
-$mySforceConnection = new SforcePartnerClient();
-$mySoapClient = $mySforceConnection->createConnection("partner.wsdl.xml");
-$mylogin = $mySforceConnection->login("username@mail.com", "changeme");
-
-

In the samples directory, you will find two samples, HelloWorld.php and a more in depth sample that handles login and session and can display, edit, and delete accounts. Instructions on how to run them can be found below. Additionally, a PHPUnit2 test class, SforcePartnerClientTest.php, is packaged with the example and has an example for each method call. See tests.html for information on how to run.

-

Results with SObjects

-

In the current PHP SOAP extension implementation, you will need to programmatically convert results that return sObjects. Each SObject has a fields array that will contain the fields selected during the query. For example,

-
-...
-$query = "SELECT Id, FirstName, LastName from Contact";
-$queryResult = $mySforceConnection->query($query);
$records = $queryResult->records; -foreach ($records as $record) {
$sObject = new SObject($record);
echo "Id = ".$sObject->Id;
echo "First Name = ".$sObject->fields->FirstName;
echo "Last Name = ".$sObject->fields->LastName; -} -
-

Note that the Id field is on the sObject and not part of the fields array due to the way that the current SOAP extension handles the Id field. This may change in the future.

-

SOAP Headers

-

The AppExchange API provides SOAP header options to client applications. All of these options are available in both the Enterprise and Partner WSDL files. To use these headers in an PHP client, simply include the following file:

-
require_once ('soapclient/SforceHeaderOptions.php');
-

This file contains three classes to handle AssignmentRuleHeader, MruHeader, and QueryOptions. SforcePartnerClientTest.php has examples of each.

-

Session Management

-

When a redirection occurs from one PHP page to another, the SOAP client must be reinstantiated for each page. In the first PHP page after a successful login, store the SessionID, endpoint, and WSDL reference in the session:

-
session_start();
-$_SESSION['location'] = $mySforceConnection->getLocation();
-$_SESSION['sessionId'] = $mySforceConnection->getSessionId();
-$_SESSION['wsdl'] = $wsdl;
-
-session_write_close();
-header('Location: welcome.php');
-
-

On the second PHP page, reinstantiate the SOAP client by reusing the attributes that were stored in the session:

-
// Retrieve session attributes
-session_start();
-$location = $_SESSION['location'];
-$sessionId = $_SESSION['sessionId'];
-$wsdl = $_SESSION['wsdl'];
-
-$mySforceConnection = new SforcePartnerClient(); -$sforceSoapClient = $mySforceConnection->createConnection($wsdl); -$mySforceConnection->setEndpoint($location); -$mySforceConnection->setSessionHeader($sessionId); -
-

SOAP COMPRESSION

-

Due to PHP Bug #36283, SOAP compression is turned off by default in SforceBaseClient. This bug should be fixed in the release after PHP 5.1.2. Once that happens, simply edit the createConnection($wsdl) method in SforceBaseClient.php to look as follows:

-
// Uncomment
-$this->sforce = new SoapClient($wsdl, array('compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP));
-
-// Comment out
-// $this->sforce = new SoapClient($wsdl, array('trace' => 1));
-

Prerequisites

-

Before you execute the samples, please ensure that you have the following: -

- -

Note: Since there are a wide variety of environments, this document will cover the toolkit in the context of a PHP 5.1.2, Apache Web Server 2.0.55, and Windows XP environment.

-
-

Build, Configure, and Deploy

-

Configure

-

Your PHP installation will need to have both SSL and SOAP enabled in order to use this toolkot. See PHP Setup for detailed instructions and tips.

-

Your web server will also need to be configured for PHP. For Apache, this means loading the php5_module and configuring an additional AddType. See Apache Setup for detailed instructions and tips.

-

A partner.wsdl.xml file is packaged with the toolkit. If for some reason you need a newer version you will need to obtain it from your ADN account. Log into your ADN account and access the setup area. Under 'Integrate' in the left-hand panel you will find the WSDL generator. Select 'Integrate' and then choose the Partner WSDL from the main window. Simply write over the existing partner.wsdl.xml that comes with this toolkit.

-

Deploy

-

Create a directory named "sforce-php" in the document root of your webserver. Copy the contents of this toolkit into this directory. See Apache Setup to locate or reconfigure the document root for Apache.

-

Before running, HelloWorld.php, simply edit sforce-php/samples/HelloWorld.php and replace username@mail.com and password with your ADN account username and password.

-

Run

-

To run HelloWorld.php, open a CMD window and navigate to the sforce-php directory and simply execute, "php HelloWorld.php". Be sure that you are using your ADN account username and password. Your expected output should be:

-
C:\Apache Group\Apache2\htdocs\sforce-php\samples> php HelloWorld.php
-Nick Tran, your session id is Ng1.71derW7pIQ.Kp3Q6ccq.0jBiDpe4xFWexbAVl.7Ay1qDHN
-BOuQGl0xA807xJ8P2W7ea0k6ldBfzTvFPMKmpYnKO9AsNCSeX5jsUoLXQ= 
-

To run the Account sample , navigate to http://localhost:[port]/sforce-php/samples/login.php where port is your http listen port. Login with your ADN account username and password. You should be presented with a table of Accounts which can be edited or deleted.

-

Tips / Troubleshooting

- -

Additional Reading

-

AppExchange API Calls

-

Support

-

AppExchange Developer Network

-

Special thanks to Park Walker who provided an initial example.

- - diff --git a/misc/globalconstants.php b/misc/globalconstants.php deleted file mode 100644 index c4060b9..0000000 --- a/misc/globalconstants.php +++ /dev/null @@ -1,10 +0,0 @@ - \ No newline at end of file diff --git a/php.html b/php.html deleted file mode 100644 index a7f01e3..0000000 --- a/php.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - -PHP Setup - - - - -

-

PHP 5 Setup

-

Instructions | API Docs | Apache Setup | PHP Setup | Unit Tests

- -
-

Installation

-

The current version of PHP as this is written is 5.1.2. You can get the current distribution from the download section of the PHP site. You should select the ZIP package rather than the pre-packaged installer to be sure that you get the necessary library files.

-

Once downloaded, extract the Zip file to a directory. This document will assume C:\dev\php5 as your base directory.

-

Build, Configure, and Deploy

-

Configure

-

PHP 5 includes two .ini files to be used as templates for configuration. Rename php.ini-recommended to php.ini.

-

Set extension_dir

-

Search for the string "extension_dir" in php.ini. Uncomment it and set it equal to "c:/dev/php5/ext/". If you have installed into another directory adjust accordingly. PHP requires an explicit path to find your extensions under Windows.

-

Turn on the required extensions

-

In order to use the HTTPS protocol you need to enable some of the PHP extensions. Search for "extension=php_curl.dll". There should be a semi-colon in front of that line - remove it to enable the extension. Scroll down and find "extension=php_openssl.dll" and do the same. Now scroll down a bit further and find "extension=php_sockets.dll". Leave this line alone, but insert a new line below it and type "extension=php_soap.dll" on that line. For some reason, this entry doesn't appear in the default configuration. That's all you need to do for now. Save the file and exit.

-

Install SSL Library files

-

Now you need to copy the SSL library files from the PHP installation directory to your Windows system directory. The two files are libeay32.dll and ssleay32.dll. They need to be copied into the system directory, usually c:\windows\system32 on an XP system. If you happen to have OpenSSL already installed on your computer you may find that these files are already installed. If they are, you should only replace them if the ones from the PHP directory are more recent. Change the extensions on the existing ones by adding '.bak' just to be safe.

-

Update the System Path

-

You'll need to add the PHP installation directory to your system path. Right-click on My Computer on your desktop (or in the Start menu) and select 'Properties'. Click on the Advanced tab and then the 'Environment Variables' button. Scroll down in the System variables list until you find 'Path'. Select it and click the 'Edit' button. Click at the end of the string and make sure that the rest of the string is not highlighted. Type ";c:\php" at the end of the existing string and click OK until all of the windows are closed.

-

 

-

 

- - - diff --git a/samples/userAuth.php b/samples/userAuth.php deleted file mode 100644 index 1f5072e..0000000 --- a/samples/userAuth.php +++ /dev/null @@ -1,52 +0,0 @@ - \ No newline at end of file diff --git a/soapclient/ProxySettings.php b/soapclient/ProxySettings.php deleted file mode 100644 index 96b3bf9..0000000 --- a/soapclient/ProxySettings.php +++ /dev/null @@ -1,33 +0,0 @@ - \ No newline at end of file diff --git a/soapclient/SforceBaseClient.php b/soapclient/SforceBaseClient.php deleted file mode 100644 index e00f4fd..0000000 --- a/soapclient/SforceBaseClient.php +++ /dev/null @@ -1,1272 +0,0 @@ -namespace; - } - - - // clientId specifies which application or toolkit is accessing the - // salesforce.com API. For applications that are certified salesforce.com - // solutions, replace this with the value provided by salesforce.com. - // Otherwise, leave this value as 'phpClient/1.0'. - protected $client_id; - - public function printDebugInfo() { - echo "PHP Toolkit Version: $this->version\r\n"; - echo 'Current PHP version: ' . phpversion(); - echo "\r\n"; - echo 'SOAP enabled: '; - if (extension_loaded('soap')) { - echo 'True'; - } else { - echo 'False'; - } - echo "\r\n"; - echo 'OpenSSL enabled: '; - if (extension_loaded('openssl')) { - echo 'True'; - } else { - echo 'False'; - } - } - - /** - * Connect method to www.salesforce.com - * - * @param string $wsdl Salesforce.com Partner WSDL - * @param object $proxy (optional) proxy settings with properties host, port, - * login and password - * @param array $soap_options (optional) Additional options to send to the - * SoapClient constructor. @see - * http://php.net/manual/en/soapclient.soapclient.php - */ - public function createConnection($wsdl, $proxy=null, $soap_options=array()) { - $phpversion = substr(phpversion(), 0, strpos(phpversion(), '-')); - - $soapClientArray = array_merge(array ( - 'user_agent' => 'salesforce-toolkit-php/'.$this->version, - 'encoding' => 'utf-8', - 'trace' => 1, - 'features' => SOAP_SINGLE_ELEMENT_ARRAYS, - 'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP - ), $soap_options); - - // We don't need to parse out any subversion suffix - e.g. "-01" since - // PHP type conversion will ignore it - if (phpversion() < 5.2) { - die("PHP versions older than 5.2 are no longer supported. Please upgrade!"); - } - - if ($proxy != null) { - $proxySettings = array(); - $proxySettings['proxy_host'] = $proxy->host; - $proxySettings['proxy_port'] = $proxy->port; // Use an integer, not a string - $proxySettings['proxy_login'] = $proxy->login; - $proxySettings['proxy_password'] = $proxy->password; - $soapClientArray = array_merge($soapClientArray, $proxySettings); - } - - $this->sforce = $this->getSoapClient($wsdl, $soapClientArray); - - return $this->sforce; - } - - public function setCallOptions($header) { - if ($header != NULL) { - $this->callOptions = new SoapHeader($this->namespace, 'CallOptions', array ( - 'client' => $header->client, - 'defaultNamespace' => $header->defaultNamespace - )); - } else { - $this->callOptions = NULL; - } - } - - /** - * Login to Salesforce.com and starts a client session. - * - * @param string $username Username - * @param string $password Password - * - * @return LoginResult - */ - public function login($username, $password) { - $this->sforce->__setSoapHeaders(NULL); - if ($this->callOptions != NULL) { - $this->sforce->__setSoapHeaders(array($this->callOptions)); - } - if ($this->loginScopeHeader != NULL) { - $this->sforce->__setSoapHeaders(array($this->loginScopeHeader)); - } - $result = $this->sforce->login(array ( - 'username' => $username, - 'password' => $password - )); - $result = $result->result; - $this->_setLoginHeader($result); - - return $result; - } - - /** - * log outs from the salseforce system` - * - * @return LogoutResult - */ - public function logout() { - $this->setHeaders("logout"); - $arg = new stdClass(); - return $this->sforce->logout(); - } - - /** - *invalidate Sessions from the salseforce system` - * - * @return invalidateSessionsResult - */ - public function invalidateSessions() { - $this->setHeaders("invalidateSessions"); - $arg = new stdClass(); - $this->logout(); - return $this->sforce->invalidateSessions(); - } - - /** - * Specifies the session ID returned from the login server after a successful - * login. - */ - protected function _setLoginHeader($loginResult) { - $this->sessionId = $loginResult->sessionId; - $this->setSessionHeader($this->sessionId); - $serverURL = $loginResult->serverUrl; - $this->setEndPoint($serverURL); - } - - /** - * Set the endpoint. - * - * @param string $location Location - */ - public function setEndpoint($location) { - $this->location = $location; - $this->sforce->__setLocation($location); - } - - private function setHeaders($call=NULL) { - $this->sforce->__setSoapHeaders(NULL); - - $header_array = array ( - $this->sessionHeader - ); - - $header = $this->callOptions; - if ($header != NULL) { - array_push($header_array, $header); - } - - if ($call == "create" || - $call == "merge" || - $call == "update" || - $call == "upsert" - ) { - $header = $this->assignmentRuleHeader; - if ($header != NULL) { - array_push($header_array, $header); - } - } - - if ($call == "login") { - $header = $this->loginScopeHeader; - if ($header != NULL) { - array_push($header_array, $header); - } - } - - if ($call == "create" || - $call == "resetPassword" || - $call == "update" || - $call == "upsert" - ) { - $header = $this->emailHeader; - if ($header != NULL) { - array_push($header_array, $header); - } - } - - if ($call == "create" || - $call == "merge" || - $call == "query" || - $call == "retrieve" || - $call == "update" || - $call == "upsert" - ) { - $header = $this->mruHeader; - if ($header != NULL) { - array_push($header_array, $header); - } - } - - if ($call == "delete") { - $header = $this->userTerritoryDeleteHeader; - if ($header != NULL) { - array_push($header_array, $header); - } - } - - if ($call == "query" || - $call == "queryMore" || - $call == "retrieve") { - $header = $this->queryHeader; - if ($header != NULL) { - array_push($header_array, $header); - } - } - - // try to add allowFieldTruncationHeader - $allowFieldTruncationHeaderCalls = array( - 'convertLead', 'create', 'merge', - 'process', 'undelete', 'update', - 'upsert', - ); - if (in_array($call, $allowFieldTruncationHeaderCalls)) { - $header = $this->allowFieldTruncationHeader; - if ($header != NULL) { - array_push($header_array, $header); - } - } - - // try to add localeOptions - if ($call == 'describeSObject' || $call == 'describeSObjects') { - $header = $this->localeOptions; - if ($header != NULL) { - array_push($header_array, $header); - } - } - - // try to add PackageVersionHeader - $packageVersionHeaderCalls = array( - 'convertLead', 'create', 'delete', 'describeGlobal', - 'describeLayout', 'describeSObject', 'describeSObjects', - 'describeSoftphoneLayout', 'describeTabs', 'merge', - 'process', 'query', 'retrieve', 'search', 'undelete', - 'update', 'upsert', - ); - if(in_array($call, $packageVersionHeaderCalls)) { - $header = $this->packageVersionHeader; - if ($header != NULL) { - array_push($header_array, $header); - } - } - - - $this->sforce->__setSoapHeaders($header_array); - } - - public function setAssignmentRuleHeader($header) { - if ($header != NULL) { - $this->assignmentRuleHeader = new SoapHeader($this->namespace, 'AssignmentRuleHeader', array ( - 'assignmentRuleId' => $header->assignmentRuleId, - 'useDefaultRule' => $header->useDefaultRuleFlag - )); - } else { - $this->assignmentRuleHeader = NULL; - } - } - - public function setEmailHeader($header) { - if ($header != NULL) { - $this->emailHeader = new SoapHeader($this->namespace, 'EmailHeader', array ( - 'triggerAutoResponseEmail' => $header->triggerAutoResponseEmail, - 'triggerOtherEmail' => $header->triggerOtherEmail, - 'triggerUserEmail' => $header->triggerUserEmail - )); - } else { - $this->emailHeader = NULL; - } - } - - public function setLoginScopeHeader($header) { - if ($header != NULL) { - $this->loginScopeHeader = new SoapHeader($this->namespace, 'LoginScopeHeader', array ( - 'organizationId' => $header->organizationId, - 'portalId' => $header->portalId - )); - } else { - $this->loginScopeHeader = NULL; - } - //$this->setHeaders('login'); - } - - public function setMruHeader($header) { - if ($header != NULL) { - $this->mruHeader = new SoapHeader($this->namespace, 'MruHeader', array ( - 'updateMru' => $header->updateMruFlag - )); - } else { - $this->mruHeader = NULL; - } - } - - public function setSessionHeader($id) { - if ($id != NULL) { - $this->sessionHeader = new SoapHeader($this->namespace, 'SessionHeader', array ( - 'sessionId' => $id - )); - $this->sessionId = $id; - } else { - $this->sessionHeader = NULL; - $this->sessionId = NULL; - } - } - - public function setUserTerritoryDeleteHeader($header) { - if ($header != NULL) { - $this->userTerritoryDeleteHeader = new SoapHeader($this->namespace, 'UserTerritoryDeleteHeader ', array ( - 'transferToUserId' => $header->transferToUserId - )); - } else { - $this->userTerritoryDeleteHeader = NULL; - } - } - - public function setQueryOptions($header) { - if ($header != NULL) { - $this->queryHeader = new SoapHeader($this->namespace, 'QueryOptions', array ( - 'batchSize' => $header->batchSize - )); - } else { - $this->queryHeader = NULL; - } - } - - public function setAllowFieldTruncationHeader($header) { - if ($header != NULL) { - $this->allowFieldTruncationHeader = new SoapHeader($this->namespace, 'AllowFieldTruncationHeader', array ( - 'allowFieldTruncation' => $header->allowFieldTruncation - ) - ); - } else { - $this->allowFieldTruncationHeader = NULL; - } - } - - public function setLocaleOptions($header) { - if ($header != NULL) { - $this->localeOptions = new SoapHeader($this->namespace, 'LocaleOptions', - array ( - 'language' => $header->language - ) - ); - } else { - $this->localeOptions = NULL; - } - } - - /** - * @param $header - */ - public function setPackageVersionHeader($header) { - if ($header != NULL) { - $headerData = array('packageVersions' => array()); - - foreach ($header->packageVersions as $key => $hdrElem) { - $headerData['packageVersions'][] = array( - 'majorNumber' => $hdrElem->majorNumber, - 'minorNumber' => $hdrElem->minorNumber, - 'namespace' => $hdrElem->namespace, - ); - } - - $this->packageVersionHeader = new SoapHeader($this->namespace, - 'PackageVersionHeader', - $headerData - ); - } else { - $this->packageVersionHeader = NULL; - } - } - - public function getSessionId() { - return $this->sessionId; - } - - public function getLocation() { - return $this->location; - } - - public function getConnection() { - return $this->sforce; - } - - public function getFunctions() { - return $this->sforce->__getFunctions(); - } - - public function getTypes() { - return $this->sforce->__getTypes(); - } - - public function getLastRequest() { - return $this->sforce->__getLastRequest(); - } - - public function getLastRequestHeaders() { - return $this->sforce->__getLastRequestHeaders(); - } - - public function getLastResponse() { - return $this->sforce->__getLastResponse(); - } - - public function getLastResponseHeaders() { - return $this->sforce->__getLastResponseHeaders(); - } - - protected function _convertToAny($fields) { - $anyString = ''; - foreach ($fields as $key => $value) { - $anyString = $anyString . '<' . $key . '>' . $value . ''; - } - return $anyString; - } - - protected function _create($arg) { - $this->setHeaders("create"); - return $this->sforce->create($arg)->result; - } - - protected function _merge($arg) { - $this->setHeaders("merge"); - return $this->sforce->merge($arg)->result; - } - - protected function _process($arg) { - $this->setHeaders(); - return $this->sforce->process($arg)->result; - } - - protected function _update($arg) { - $this->setHeaders("update"); - return $this->sforce->update($arg)->result; - } - - protected function _upsert($arg) { - $this->setHeaders("upsert"); - return $this->sforce->upsert($arg)->result; - } - - public function sendSingleEmail($request) { - if (is_array($request)) { - $messages = array(); - foreach ($request as $r) { - $email = new SoapVar($r, SOAP_ENC_OBJECT, 'SingleEmailMessage', $this->namespace); - array_push($messages, $email); - } - $arg = new stdClass(); - $arg->messages = $messages; - return $this->_sendEmail($arg); - } else { - $backtrace = debug_backtrace(); - die('Please pass in array to this function: '.$backtrace[0]['function']); - } - } - - public function sendMassEmail($request) { - if (is_array($request)) { - $messages = array(); - foreach ($request as $r) { - $email = new SoapVar($r, SOAP_ENC_OBJECT, 'MassEmailMessage', $this->namespace); - array_push($messages, $email); - } - $arg = new stdClass(); - $arg->messages = $messages; - return $this->_sendEmail($arg); - } else { - $backtrace = debug_backtrace(); - die('Please pass in array to this function: '.$backtrace[0]['function']); - } - } - - protected function _sendEmail($arg) { - $this->setHeaders(); - return $this->sforce->sendEmail($arg)->result; - } - - /** - * Converts a Lead into an Account, Contact, or (optionally) an Opportunity. - * - * @param array $leadConverts Array of LeadConvert - * - * @return LeadConvertResult - */ - public function convertLead($leadConverts) { - $this->setHeaders("convertLead"); - $arg = new stdClass(); - $arg->leadConverts = $leadConverts; - return $this->sforce->convertLead($arg); - } - - /** - * Deletes one or more new individual objects to your organization's data. - * - * @param array $ids Array of fields - * @return DeleteResult - */ - public function delete($ids) { - $this->setHeaders("delete"); - $arg = new stdClass(); - $arg->ids = $ids; - return $this->sforce->delete($arg)->result; - } - - /** - * Deletes one or more new individual objects to your organization's data. - * - * @param array $ids Array of fields - * @return DeleteResult - */ - public function undelete($ids) { - $this->setHeaders("undelete"); - $arg = new stdClass(); - $arg->ids = $ids; - return $this->sforce->undelete($arg)->result; - } - - /** - * Deletes one or more new individual objects to your organization's data. - * - * @param array $ids Array of fields - * @return DeleteResult - */ - public function emptyRecycleBin($ids) { - $this->setHeaders(); - $arg = new stdClass(); - $arg->ids = $ids; - return $this->sforce->emptyRecycleBin($arg)->result; - } - - /** - * Process Submit Request for Approval - * - * @param array $processRequestArray - * @return ProcessResult - */ - public function processSubmitRequest($processRequestArray) { - if (is_array($processRequestArray)) { - foreach ($processRequestArray as &$process) { - $process = new SoapVar($process, SOAP_ENC_OBJECT, 'ProcessSubmitRequest', $this->namespace); - } - $arg = new stdClass(); - $arg->actions = $processRequestArray; - return $this->_process($arg); - } else { - $backtrace = debug_backtrace(); - die('Please pass in array to this function: '.$backtrace[0]['function']); - } - } - - /** - * Process Work Item Request for Approval - * - * @param array $processRequestArray - * @return ProcessResult - */ - public function processWorkitemRequest($processRequestArray) { - if (is_array($processRequestArray)) { - foreach ($processRequestArray as &$process) { - $process = new SoapVar($process, SOAP_ENC_OBJECT, 'ProcessWorkitemRequest', $this->namespace); - } - $arg = new stdClass(); - $arg->actions = $processRequestArray; - return $this->_process($arg); - } else { - $backtrace = debug_backtrace(); - die('Please pass in array to this function: '.$backtrace[0]['function']); - } - } - - /** - * Retrieves a list of available objects for your organization's data. - * - * @return DescribeGlobalResult - */ - public function describeGlobal() { - $this->setHeaders("describeGlobal"); - return $this->sforce->describeGlobal()->result; - } - - /** - * Use describeLayout to retrieve information about the layout (presentation - * of data to users) for a given object type. The describeLayout call returns - * metadata about a given page layout, including layouts for edit and - * display-only views and record type mappings. Note that field-level security - * and layout editability affects which fields appear in a layout. - * - * @param string Type Object Type - * @return DescribeLayoutResult - */ - public function describeLayout($type, array $recordTypeIds=null) { - $this->setHeaders("describeLayout"); - $arg = new stdClass(); - $arg->sObjectType = new SoapVar($type, XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); - if (isset($recordTypeIds) && count($recordTypeIds)) - $arg->recordTypeIds = $recordTypeIds; - return $this->sforce->describeLayout($arg)->result; - } - - /** - * Describes metadata (field list and object properties) for the specified - * object. - * - * @param string $type Object type - * @return DescribsSObjectResult - */ - public function describeSObject($type) { - $this->setHeaders("describeSObject"); - $arg = new stdClass(); - $arg->sObjectType = new SoapVar($type, XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); - return $this->sforce->describeSObject($arg)->result; - } - - /** - * An array-based version of describeSObject; describes metadata (field list - * and object properties) for the specified object or array of objects. - * - * @param array $arrayOfTypes Array of object types. - * @return DescribsSObjectResult - */ - public function describeSObjects($arrayOfTypes) { - $this->setHeaders("describeSObjects"); - return $this->sforce->describeSObjects($arrayOfTypes)->result; - } - - /** - * The describeTabs call returns information about the standard apps and - * custom apps, if any, available for the user who sends the call, including - * the list of tabs defined for each app. - * - * @return DescribeTabSetResult - */ - public function describeTabs() { - $this->setHeaders("describeTabs"); - return $this->sforce->describeTabs()->result; - } - - /** - * To enable data categories groups you must enable Answers or Knowledge Articles module in - * admin panel, after adding category group and assign it to Answers or Knowledge Articles - * - * @param string $sObjectType sObject Type - * @return DescribeDataCategoryGroupResult - */ - public function describeDataCategoryGroups($sObjectType) { - $this->setHeaders('describeDataCategoryGroups'); - $arg = new stdClass(); - $arg->sObjectType = new SoapVar($sObjectType, XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); - return $this->sforce->describeDataCategoryGroups($arg)->result; - } - - /** - * Retrieves available category groups along with their data category structure for objects specified in the request. - * - * @param DataCategoryGroupSobjectTypePair $pairs - * @param bool $topCategoriesOnly Object Type - * @return DescribeLayoutResult - */ - public function describeDataCategoryGroupStructures(array $pairs, $topCategoriesOnly) { - $this->setHeaders('describeDataCategoryGroupStructures'); - $arg = new stdClass(); - $arg->pairs = $pairs; - $arg->topCategoriesOnly = new SoapVar($topCategoriesOnly, XSD_BOOLEAN, 'boolean', 'http://www.w3.org/2001/XMLSchema'); - - return $this->sforce->describeDataCategoryGroupStructures($arg)->result; - } - - /** - * Retrieves the list of individual objects that have been deleted within the - * given timespan for the specified object. - * - * @param string $type Ojbect type - * @param date $startDate Start date - * @param date $endDate End Date - * @return GetDeletedResult - */ - public function getDeleted($type, $startDate, $endDate) { - $this->setHeaders("getDeleted"); - $arg = new stdClass(); - $arg->sObjectType = new SoapVar($type, XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); - $arg->startDate = $startDate; - $arg->endDate = $endDate; - return $this->sforce->getDeleted($arg)->result; - } - - /** - * Retrieves the list of individual objects that have been updated (added or - * changed) within the given timespan for the specified object. - * - * @param string $type Ojbect type - * @param date $startDate Start date - * @param date $endDate End Date - * @return GetUpdatedResult - */ - public function getUpdated($type, $startDate, $endDate) { - $this->setHeaders("getUpdated"); - $arg = new stdClass(); - $arg->sObjectType = new SoapVar($type, XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); - $arg->startDate = $startDate; - $arg->endDate = $endDate; - return $this->sforce->getUpdated($arg)->result; - } - - /** - * Executes a query against the specified object and returns data that matches - * the specified criteria. - * - * @param String $query Query String - * @param QueryOptions $queryOptions Batch size limit. OPTIONAL - * @return QueryResult - */ - public function query($query) { - $this->setHeaders("query"); - $raw = $this->sforce->query(array ( - 'queryString' => $query - ))->result; - $QueryResult = new QueryResult($raw); - $QueryResult->setSf($this); // Dependency Injection - return $QueryResult; - } - - /** - * Retrieves the next batch of objects from a query. - * - * @param QueryLocator $queryLocator Represents the server-side cursor that tracks the current processing location in the query result set. - * @param QueryOptions $queryOptions Batch size limit. OPTIONAL - * @return QueryResult - */ - public function queryMore($queryLocator) { - $this->setHeaders("queryMore"); - $arg = new stdClass(); - $arg->queryLocator = $queryLocator; - $raw = $this->sforce->queryMore($arg)->result; - $QueryResult = new QueryResult($raw); - $QueryResult->setSf($this); // Dependency Injection - return $QueryResult; - } - - /** - * Retrieves data from specified objects, whether or not they have been deleted. - * - * @param String $query Query String - * @param QueryOptions $queryOptions Batch size limit. OPTIONAL - * @return QueryResult - */ - public function queryAll($query, $queryOptions = NULL) { - $this->setHeaders("queryAll"); - $raw = $this->sforce->queryAll(array ( - 'queryString' => $query - ))->result; - $QueryResult = new QueryResult($raw); - $QueryResult->setSf($this); // Dependency Injection - return $QueryResult; - } - - - /** - * Retrieves one or more objects based on the specified object IDs. - * - * @param string $fieldList One or more fields separated by commas. - * @param string $sObjectType Object from which to retrieve data. - * @param array $ids Array of one or more IDs of the objects to retrieve. - * @return sObject[] - */ - public function retrieve($fieldList, $sObjectType, $ids) { - $this->setHeaders("retrieve"); - $arg = new stdClass(); - $arg->fieldList = $fieldList; - $arg->sObjectType = new SoapVar($sObjectType, XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); - $arg->ids = $ids; - return $this->sforce->retrieve($arg)->result; - } - - /** - * Executes a text search in your organization's data. - * - * @param string $searchString Search string that specifies the text expression to search for. - * @return SearchResult - */ - public function search($searchString) { - $this->setHeaders("search"); - $arg = new stdClass(); - $arg->searchString = new SoapVar($searchString, XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); - return new SforceSearchResult($this->sforce->search($arg)->result); - } - - /** - * Retrieves the current system timestamp (GMT) from the Web service. - * - * @return timestamp - */ - public function getServerTimestamp() { - $this->setHeaders("getServerTimestamp"); - return $this->sforce->getServerTimestamp()->result; - } - - public function getUserInfo() { - $this->setHeaders("getUserInfo"); - return $this->sforce->getUserInfo()->result; - } - - /** - * Sets the specified user's password to the specified value. - * - * @param string $userId ID of the User. - * @param string $password New password - */ - public function setPassword($userId, $password) { - $this->setHeaders("setPassword"); - $arg = new stdClass(); - $arg->userId = new SoapVar($userId, XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); - $arg->password = $password; - return $this->sforce->setPassword($arg); - } - - /** - * Changes a user's password to a system-generated value. - * - * @param string $userId Id of the User - * @return password - */ - public function resetPassword($userId) { - $this->setHeaders("resetPassword"); - $arg = new stdClass(); - $arg->userId = new SoapVar($userId, XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); - return $this->sforce->resetPassword($arg)->result; - } -} - -class SforceSearchResult { - public $searchRecords; - - public function __construct($response) { - - if($response instanceof SforceSearchResult) { - $this->searchRecords = $response->searchRecords; - } else { - $this->searchRecords = array(); - if (isset($response->searchRecords)) { - if (is_array($response->searchRecords)) { - foreach ($response->searchRecords as $record) { - $sobject = new SObject($record->record); - array_push($this->searchRecords, $sobject); - }; - } else { - $sobject = new SObject($response->searchRecords->record); - array_push($this->records, $sobject); - } - } - } - } -} - -class QueryResult implements Iterator{ - public $queryLocator; - public $done; - public $records; - public $size; - - public $pointer; // Current iterator location - private $sf; // SOAP Client - - public function __construct($response) { - $this->queryLocator = $response->queryLocator; - $this->done = $response->done; - $this->size = $response->size; - - $this->pointer = 0; - $this->sf = false; - - if($response instanceof QueryResult) { - $this->records = $response->records; - } else { - $this->records = array(); - if (isset($response->records)) { - if (is_array($response->records)) { - foreach ($response->records as $record) { - array_push($this->records, $record); - }; - } else { - array_push($this->records, $record); - } - } - } - } - - public function setSf(SforceBaseClient $sf) { $this->sf = $sf; } // Dependency Injection - - // Basic Iterator implementation functions - public function rewind() { $this->pointer = 0; } - public function next() { ++$this->pointer; } - public function key() { return $this->pointer; } - public function current() { return new SObject($this->records[$this->pointer]); } - - public function valid() { - while ($this->pointer >= count($this->records)) { - // Pointer is larger than (current) result set; see if we can fetch more - if ($this->done === false) { - if ($this->sf === false) throw new Exception("Dependency not met!"); - $response = $this->sf->queryMore($this->queryLocator); - $this->records = array_merge($this->records, $response->records); // Append more results - $this->done = $response->done; - $this->queryLocator = $response->queryLocator; - } else { - return false; // No more records to fetch - } - } - if (isset($this->records[$this->pointer])) return true; - - throw new Exception("QueryResult has gaps in the record data?"); - } -} - -class SObject { - public $type; - public $fields; -// public $sobject; - - public function __construct($response=NULL) { - if (!isset($response) && !$response) { - return; - } - - foreach ($response as $responseKey => $responseValue) { - if (in_array($responseKey, array('Id', 'type', 'any'))) { - continue; - } - $this->$responseKey = $responseValue; - } - - if (isset($response->Id)) { - $this->Id = is_array($response->Id) ? $response->Id[0] : $response->Id; - } - - if (isset($response->type)) { - $this->type = $response->type; - } - - if (isset($response->any)) { - try { - //$this->fields = $this->convertFields($response->any); - // If ANY is an object, instantiate another SObject - if ($response->any instanceof stdClass) { - if ($this->isSObject($response->any)) { - $anArray = array(); - $sobject = new SObject($response->any); - $anArray[] = $sobject; - $this->sobjects = $anArray; - } else { - // this is for parent to child relationships - $this->queryResult = new QueryResult($response->any); - } - - } else { - // If ANY is an array - if (is_array($response->any)) { - // Loop through each and perform some action. - $anArray = array(); - - // Modify the foreach to have $key=>$value - // Added on 28th April 2008 - foreach ($response->any as $key=>$item) { - if ($item instanceof stdClass) { - if ($this->isSObject($item)) { - $sobject = new SObject($item); - // make an associative array instead of a numeric one - $anArray[$key] = $sobject; - } else { - // this is for parent to child relationships - //$this->queryResult = new QueryResult($item); - if (!isset($this->queryResult)) { - $this->queryResult = array(); - } - array_push($this->queryResult, new QueryResult($item)); - } - } else { - //$this->fields = $this->convertFields($item); - - if (strpos($item, 'sf:') === false) { - $currentXmlValue = sprintf('%s', $key, $item, $key); - } else { - $currentXmlValue = $item; - } - - if (!isset($fieldsToConvert)) { - $fieldsToConvert = $currentXmlValue; - } else { - $fieldsToConvert .= $currentXmlValue; - } - } - } - - if (isset($fieldsToConvert)) { - // If this line is commented, then the fields becomes a stdclass object and does not have the name variable - // In this case the foreach loop on line 252 runs successfuly - $this->fields = $this->convertFields($fieldsToConvert); - } - - if (sizeof($anArray) > 0) { - // To add more variables to the the top level sobject - foreach ($anArray as $key=>$children_sobject) { - $this->fields->$key = $children_sobject; - } - //array_push($this->fields, $anArray); - // Uncommented on 28th April since all the sobjects have now been moved to the fields - //$this->sobjects = $anArray; - } - - /* - $this->fields = $this->convertFields($response->any[0]); - if (isset($response->any[1]->records)) { - $anArray = array(); - if ($response->any[1]->size == 1) { - $records = array ( - $response->any[1]->records - ); - } else { - $records = $response->any[1]->records; - } - foreach ($records as $record) { - $sobject = new SObject($record); - array_push($anArray, $sobject); - } - $this->sobjects = $anArray; - } else { - $anArray = array(); - $sobject = new SObject($response->any[1]); - array_push($anArray, $sobject); - $this->sobjects = $anArray; - } - */ - } else { - $this->fields = $this->convertFields($response->any); - } - } - } catch (Exception $e) { - var_dump('exception: ', $e); - } - } - } - - function __get($name) { return (isset($this->fields->$name))? $this->fields->$name : false; } - function __isset($name) { return isset($this->fields->$name); } - - /** - * Parse the "any" string from an sObject. First strip out the sf: and then - * enclose string with . Load the string using - * simplexml_load_string and return an array that can be traversed. - */ - function convertFields($any) { - $str = preg_replace('{sf:}', '', $any); - - $array = $this->xml2array(''.$str.'', 2); - - $xml = new stdClass(); - if (!count($array['Object'])) - return $xml; - - foreach ($array['Object'] as $k=>$v) { - $xml->$k = $v; - } - - //$new_string = ''.$new_string.''; - //$new_string = $new_string; - //$xml = simplexml_load_string($new_string); - return $xml; - } - - /** - * - * @param string $contents - * @return array - */ - function xml2array($contents, $get_attributes=1) { - if(!$contents) return array(); - - if(!function_exists('xml_parser_create')) { - //print "'xml_parser_create()' function not found!"; - return array('not found'); - } - //Get the XML parser of PHP - PHP must have this module for the parser to work - $parser = xml_parser_create(); - xml_parser_set_option( $parser, XML_OPTION_CASE_FOLDING, 0 ); - xml_parser_set_option( $parser, XML_OPTION_SKIP_WHITE, 1 ); - xml_parse_into_struct( $parser, $contents, $xml_values ); - xml_parser_free( $parser ); - - if(!$xml_values) return;//Hmm... - - //Initializations - $xml_array = array(); - $parents = array(); - $opened_tags = array(); - $arr = array(); - - $current = &$xml_array; - - //Go through the tags. - foreach($xml_values as $data) { - unset($attributes,$value);//Remove existing values, or there will be trouble - - //This command will extract these variables into the foreach scope - // tag(string), type(string), level(int), attributes(array). - extract($data);//We could use the array by itself, but this cooler. - - $result = ''; - if ($get_attributes) { - switch ($get_attributes) { - case 1: - $result = array(); - if(isset($value)) $result['value'] = $value; - - //Set the attributes too. - if(isset($attributes)) { - foreach($attributes as $attr => $val) { - if($get_attributes == 1) $result['attr'][$attr] = $val; //Set all the attributes in a array called 'attr' - /** :TODO: should we change the key name to '_attr'? Someone may use the tagname 'attr'. Same goes for 'value' too */ - } - } - break; - - case 2: - $result = array(); - if (isset($value)) { - $result = $value; - } - - //Check for nil and ignore other attributes. - if (isset($attributes) && isset($attributes['xsi:nil']) && !strcasecmp($attributes['xsi:nil'], 'true')) { - $result = null; - } - break; - } - } elseif (isset($value)) { - $result = $value; - } - - //See tag status and do the needed. - if($type == "open") {//The starting of the tag '' - $parent[$level-1] = &$current; - - if(!is_array($current) or (!in_array($tag, array_keys($current)))) { //Insert New tag - $current[$tag] = $result; - $current = &$current[$tag]; - - } else { //There was another element with the same tag name - if(isset($current[$tag][0])) { - array_push($current[$tag], $result); - } else { - $current[$tag] = array($current[$tag],$result); - } - $last = count($current[$tag]) - 1; - $current = &$current[$tag][$last]; - } - - } elseif($type == "complete") { //Tags that ends in 1 line '' - //See if the key is already taken. - if(!isset($current[$tag])) { //New Key - $current[$tag] = $result; - - } else { //If taken, put all things inside a list(array) - if((is_array($current[$tag]) and $get_attributes == 0)//If it is already an array... - or (isset($current[$tag][0]) and is_array($current[$tag][0]) and ($get_attributes == 1 || $get_attributes == 2))) { - array_push($current[$tag],$result); // ...push the new element into that array. - } else { //If it is not an array... - $current[$tag] = array($current[$tag],$result); //...Make it an array using using the existing value and the new value - } - } - - } elseif($type == 'close') { //End of tag '' - $current = &$parent[$level-1]; - } - } - - return($xml_array); - } - - /* - * If the stdClass has a done, we know it is a QueryResult - */ - function isQueryResult($param) { - return isset($param->done); - } - - /* - * If the stdClass has a type, we know it is an SObject - */ - function isSObject($param) { - return isset($param->type); - } -} diff --git a/soapclient/SforceEmail.php b/soapclient/SforceEmail.php deleted file mode 100644 index b0b37a4..0000000 --- a/soapclient/SforceEmail.php +++ /dev/null @@ -1,130 +0,0 @@ -bccSender = $bccSender; - } - - public function setEmailPriority($priority) { - $this->emailPriority = $priority; - } - - public function setSubject($subject) { - $this->subject = $subject; - } - - public function setSaveAsActivity($saveAsActivity) { - $this->saveAsActivity = $saveAsActivity; - } - - public function setReplyTo($replyTo) { - $this->replyTo = $replyTo; - } - - public function setUseSignature($useSignature) { - $this->useSignature = $useSignature; - } - - public function setSenderDisplayName($name) { - $this->senderDisplayName = $name; - } -} - -class SingleEmailMessage extends Email { - public function __construct() {} - - - public function setBccAddresses($addresses) { - $this->bccAddresses = $addresses; - } - public $ccAddresses; - - public function setCcAddresses($addresses) { - $this->ccAddresses = $addresses; - } - - public function setCharset($charset) { - $this->charset = $charset; - } - - public function setHtmlBody($htmlBody) { - $this->htmlBody = $htmlBody; - } - - public function setOrgWideEmailAddressId($orgWideEmailAddressId) { - $this->orgWideEmailAddressId = $orgWideEmailAddressId; - } - - public function setPlainTextBody($plainTextBody) { - $this->plainTextBody = $plainTextBody; - } - - public function setTargetObjectId($targetObjectId) { - $this->targetObjectId = $targetObjectId; - } - - public function setTemplateId($templateId) { - $this->templateId = $templateId; - } - - public function setToAddresses($array) { - $this->toAddresses = $array; - } - - public function setWhatId($whatId) { - $this->whatId = $whatId; - } - - public function setFileAttachments($array) { - $this->fileAttachments = $array; - } - - public function setDocumentAttachments($array) { - $this->documentAttachments = $array; - } -} - -class MassEmailMessage extends Email { - public function setTemplateId($templateId) { - $this->templateId = $templateId; - } - - public function setWhatIds($array) { - $this->whatIds = $array; - } - - public function setTargetObjectIds($array) { - $this->targetObjectIds = $array; - } -} -?> \ No newline at end of file diff --git a/soapclient/SforceEnterpriseClient.php b/soapclient/SforceEnterpriseClient.php deleted file mode 100644 index 3aaa976..0000000 --- a/soapclient/SforceEnterpriseClient.php +++ /dev/null @@ -1,159 +0,0 @@ -namespace = self::ENTERPRISE_NAMESPACE; - } - - /** - * Adds one or more new individual objects to your organization's data. - * @param array $sObjects Array of one or more sObjects (up to 200) to create. - * @param AssignmentRuleHeader $assignment_header is optional. Defaults to NULL - * @param MruHeader $mru_header is optional. Defaults to NULL - * @return SaveResult - */ - public function create($sObjects, $type) { - foreach ($sObjects as &$sObject) { - // FIX for fieldsToNull issue - allow array in fieldsToNull (STEP #1) - $xmlStr = ''; - if(isset($sObject->fieldsToNull) && is_array($sObject->fieldsToNull)) { - foreach($sObject->fieldsToNull as $fieldToNull) { - $xmlStr .= '' . $fieldToNull . ''; - } - } - // ------ - - $sObject = new SoapVar($sObject, SOAP_ENC_OBJECT, $type, $this->namespace); - - // FIX for fieldsToNull issue - allow array in fieldsToNull (STEP #2) - if($xmlStr != '') { - $sObject->enc_value->fieldsToNull = new SoapVar(new SoapVar($xmlStr, XSD_ANYXML), SOAP_ENC_ARRAY); - } - // ------ - } - $arg = $sObjects; - - return parent::_create(new SoapParam($arg, "sObjects")); - } - - /** - * Updates one or more new individual objects to your organization's data. - * @param array sObjects Array of sObjects - * @param AssignmentRuleHeader $assignment_header is optional. Defaults to NULL - * @param MruHeader $mru_header is optional. Defaults to NULL - * @return UpdateResult - */ - public function update($sObjects, $type, $assignment_header = NULL, $mru_header = NULL) { - - foreach ($sObjects as &$sObject) { - - // FIX for fieldsToNull issue - allow array in fieldsToNull (STEP #1) - $xmlStr = ''; - if(isset($sObject->fieldsToNull) && is_array($sObject->fieldsToNull)) { - foreach($sObject->fieldsToNull as $fieldToNull) { - $xmlStr .= '' . $fieldToNull . ''; - } - } - // ------ - - $sObject = new SoapVar($sObject, SOAP_ENC_OBJECT, $type, $this->namespace); - - // FIX for fieldsToNull issue - allow array in fieldsToNull (STEP #2) - if($xmlStr != '') { - $sObject->enc_value->fieldsToNull = new SoapVar(new SoapVar($xmlStr, XSD_ANYXML), SOAP_ENC_ARRAY); - } - // ------ - } - $arg = new stdClass; - $arg->sObjects = $sObjects; - return parent::_update($arg); - } - - /** - * Creates new objects and updates existing objects; uses a custom field to - * determine the presence of existing objects. In most cases, we recommend - * that you use upsert instead of create because upsert is idempotent. - * Available in the API version 7.0 and later. - * - * @param string $ext_Id External Id - * @param array $sObjects Array of sObjects - * @param string $type The type of objects being upserted. - * @return UpsertResult - */ - public function upsert($ext_Id, $sObjects, $type = 'Contact') { - $arg = new stdClass; - $arg->externalIDFieldName = new SoapVar($ext_Id, XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); - foreach ($sObjects as &$sObject) { - // FIX for fieldsToNull issue - allow array in fieldsToNull (STEP #1) - $xmlStr = ''; - if(isset($sObject->fieldsToNull) && is_array($sObject->fieldsToNull)) { - foreach($sObject->fieldsToNull as $fieldToNull) { - $xmlStr .= '' . $fieldToNull . ''; - } - } - // ------ - - $sObject = new SoapVar($sObject, SOAP_ENC_OBJECT, $type, $this->namespace); - - // FIX for fieldsToNull issue - allow array in fieldsToNull (STEP #2) - if($xmlStr != '') { - $sObject->enc_value->fieldsToNull = new SoapVar(new SoapVar($xmlStr, XSD_ANYXML), SOAP_ENC_ARRAY); - } - // ------ - } - $arg->sObjects = $sObjects; - return parent::_upsert($arg); - } - - /** - * Merge records - * - * @param stdclass $mergeRequest - * @param String $type - * @return unknown - */ - public function merge($mergeRequest, $type) { - $mergeRequest->masterRecord = new SoapVar($mergeRequest->masterRecord, SOAP_ENC_OBJECT, $type, $this->namespace); - $arg = new stdClass; - $arg->request = new SoapVar($mergeRequest, SOAP_ENC_OBJECT, 'MergeRequest', $this->namespace); - return parent::_merge($arg); - } -} -?> diff --git a/soapclient/SforceFieldTypes.php b/soapclient/SforceFieldTypes.php deleted file mode 100644 index 5ed2d36..0000000 --- a/soapclient/SforceFieldTypes.php +++ /dev/null @@ -1,45 +0,0 @@ - \ No newline at end of file diff --git a/soapclient/SforceHeaderOptions.php b/soapclient/SforceHeaderOptions.php deleted file mode 100644 index 77e3f85..0000000 --- a/soapclient/SforceHeaderOptions.php +++ /dev/null @@ -1,206 +0,0 @@ -client = $client; - $this->defaultNamespace = $defaultNamespace; - } -} - - - -/** - * To be used with Create and Update operations. - * Only one attribute can be set at a time. - * - * @package SalesforceSoapClient - */ -class AssignmentRuleHeader { - // int - public $assignmentRuleId; - // boolean - public $useDefaultRuleFlag; - - /** - * Constructor. Only one param can be set. - * - * @param int $id AssignmentRuleId - * @param boolean $flag UseDefaultRule flag - */ - public function __construct($id = NULL, $flag = NULL) { - if ($id != NULL) { - $this->assignmentRuleId = $id; - } - if ($flag != NULL) { - $this->useDefaultRuleFlag = $flag; - } - } -} - -/** - * To be used with Create and Update operations. - * - * @package SalesforceSoapClient - */ -class MruHeader { - // boolean that Indicates whether to update the list of most recently used items (True) or not (False). - public $updateMruFlag; - - public function __construct($bool) { - $this->updateMruFlag = $bool; - } -} - -/** - * To be used with the Login operation. - * - * @package SalesforceSoapClient - */ -class LoginScopeHeader { - // boolean that Indicates whether to update the list of most recently used items (True) or not (False). - public $organizationId; - public $portalId; - - public function __construct($orgId = NULL, $portalId = NULL) { - $this->organizationId = $orgId; - $this->portalId = $portalId; - } -} - -/** - * To be used with Retrieve, Query, and QueryMore operations. - * - * @package SalesforceSoapClient - */ -class QueryOptions { - // 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. - public $batchSize; - - /** - * Constructor - * - * @param int $limit Batch size - */ - public function __construct($limit) { - $this->batchSize = $limit; - } -} - -class EmailHeader { - public $triggerAutoResponseEmail; - public $triggerOtherEmail; - public $triggerUserEmail; - - public function __construct($triggerAutoResponseEmail = false, $triggerOtherEmail = false, $triggerUserEmail = false) { - $this->triggerAutoResponseEmail = $triggerAutoResponseEmail; - $this->triggerOtherEmail = $triggerOtherEmail; - $this->triggerUserEmail = $triggerUserEmail; - } -} - -class UserTerritoryDeleteHeader { - public $transferToUserId; - - public function __construct($transferToUserId) { - $this->transferToUserId = $transferToUserId; - } -} - -class AllowFieldTruncationHeader { - public $allowFieldTruncation; - - public function __construct($allowFieldTruncation) { - $this->allowFieldTruncation = $allowFieldTruncation; - } -} - -class LocaleOptions { - public $language; - - /** - * Class constructor. - * - * @param string $language - * @return void - */ - public function __construct($language) { - $this->language = $language; - } -} - -class PackageVersionHeader { - /** - * @var array $packageVersions - */ - public $packageVersions; - - /** - * Class constructor. - * - * @param array $packageVersions - * @return void - */ - public function __construct($packageVersions) { - $this->packageVersions = $packageVersions; - } -} - -/** - * This class is used by PackageVersionHeader - * @see PackageVersionHeader - */ -class PackageVersion { - public $majorNumber; - public $minorNumber; - public $namespace; - - /** - * Class constructor. - * - * @param int $majorNumber - * @param int $minorNumber - * @param string $namespace - * @return void - */ - public function __construct($majorNumber, $minorNumber, $namespace) { - $this->majorNumber = $majorNumber; - $this->minorNumber = $minorNumber; - $this->namespace = $namespace; - } -} - -?> diff --git a/soapclient/SforceMetaObject.php b/soapclient/SforceMetaObject.php deleted file mode 100644 index 5c045af..0000000 --- a/soapclient/SforceMetaObject.php +++ /dev/null @@ -1,204 +0,0 @@ -deploymentStatus = $deploymentStatus; - } - - public function setDescription($description) { - $this->description = $description; - } - - public function setEnableActivities($enableActivities) { - $this->enableActivities = $enableActivities; - } - - public function setEnableDivisions($enableDivisions) { - $this->enableDivisions = $enableDivisions; - } - - public function setEnableHistory($enableHistory) { - $this->enableHistory = $enableHistory; - } - - public function setEnableReports($enableReports) { - $this->enableReports = $enableReports; - } - - public function setFields($fields) { - $this->fields = $fields; - } - - public function setFullName($fullName) { - $this->fullName = $fullName; - } - - public function setGender($gender) { - $this->gender = $gender; - } - - public function setHousehold($household) { - $this->household = $household; - } - - public function setLabel($label) { - $this->label = $label; - } - - public function setNameField($nameField) { - $this->nameField = $nameField; - } - - public function setPluralLabel($pluralLabel) { - $this->pluralLabel = $pluralLabel; - } - - public function setSharingModel($sharingModel) { - $this->sharingModel = $sharingModel; - } - - public function setStartsWith($startsWith) { - $this->startsWith = $startsWith; - } -} - -class SforceCustomField { - public function setCaseSensitive($caseSensitive) { - $this->caseSensitive = $caseSensitive; - } - - public function setDefaultValue($defaultValue) { - $this->defaultValue = $defaultValue; - } - - public function setDescription($description) { - $this->description = $description; - } - - public function setDisplayFormat($displayFormat) { - $this->displayFormat = $displayFormat; - } - - public function setExternalId($externalId) { - $this->externalId = $externalId; - } - - public function setFormula($formula) { - $this->formula = $formula; - } - - public function setFormulaTreatBlankAs($formulaTreatBlankAs) { - $this->formulaTreatBlankAs = $formulaTreatBlankAs; - } - - public function setFullName($fullName) { - $this->fullName = $fullName; - } - - public function setInlineHelpText($inlineHelpText) { - $this->inlineHelpText = $inlineHelpText; - } - - public function setLabel($label) { - $this->label = $label; - } - - public function setLength($length) { - $this->length = $length; - } - - public function setMaskChar($maskChar) { - $this->maskChar = $maskChar; - } - - public function setMaskType($maskType) { - $this->maskType = $maskType; - } - - public function setPicklist($picklist) { - $this->picklist = $picklist; - } - - public function setPopulateExistingRows($populateExistingRows) { - $this->populateExistingRows = $populateExistingRows; - } - - public function setPrecision($precision) { - $this->precision = $precision; - } - - public function setReferenceTo($referenceTo) { - $this->referenceTo = $referenceTo; - } - - public function setRelationshipName($relationshipName) { - $this->relationshipName = $relationshipName; - } - - public function setRequired($required) { - $this->required = $required; - } - - public function setScale($scale) { - $this->scale = $scale; - } - - public function setStartingNumber($startingNumber) { - $this->startingNumber = $startingNumber; - } - - public function setSummarizeField($summarizeField) { - $this->summarizeField = $summarizeField; - } - - public function setSummaryFilterItems($summaryFilterItems) { - $this->summaryFilterItems = $summaryFilterItems; - } - - public function setSummaryForeignKey($summaryForeignKey) { - $this->summaryForeignKey = $summaryForeignKey; - } - - public function setSummaryOperation($summaryOperation) { - $this->summaryOperation = $summaryOperation; - } - - public function setType($type) { - $this->type = $type; - } - - public function setUnique($unique) { - $this->unique = $unique; - } - - public function setVisibleLines($visibleLines) { - $this->visibleLines = $visibleLines; - } -} -?> diff --git a/soapclient/SforceMetadataClient.php b/soapclient/SforceMetadataClient.php deleted file mode 100644 index 7477d72..0000000 --- a/soapclient/SforceMetadataClient.php +++ /dev/null @@ -1,175 +0,0 @@ - '5.1.2') { - if ($phpversion > '5.1.2') { - $soapClientArray = array ( - 'user_agent' => 'salesforce-toolkit-php/'.$this->version, - 'encoding' => 'utf-8', - 'trace' => 1, - 'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP, - 'sessionId' => $loginResult->sessionId - ); - } else { - $soapClientArray = array ( - 'user_agent' => 'salesforce-toolkit-php/'.$this->version, - 'encoding' => 'utf-8', - 'trace' => 1, - 'sessionId' => $loginResult->sessionId - ); - } - $this->sforce = new SoapClient($wsdl,$soapClientArray); - //$this->sforce->__setSoapHeaders($header_array); - - - $sessionVar = array( - 'sessionId' => new SoapVar($loginResult->sessionId, XSD_STRING) - ); - - $headerBody = new SoapVar($sessionVar, SOAP_ENC_OBJECT); - - $session_header = new SoapHeader($this->namespace, 'SessionHeader', $headerBody, false); - - $header_array = array ( - $session_header - ); - - $this->sforce->__setSoapHeaders($header_array); - - $this->sforce->__setLocation($loginResult->metadataServerUrl); - return $this->sforce; - } - - /** - * Specifies the session ID returned from the login server after a successful - * login. - */ - protected function _setLoginHeader($loginResult) { - $this->sessionId = $loginResult->sessionId; - $this->setSessionHeader($this->sessionId); - $serverURL = $loginResult->serverUrl; - $this->setEndPoint($serverURL); - } - - /** - * Set the endpoint. - * - * @param string $location Location - */ - public function setEndpoint($location) { - $this->location = $location; - $this->sforce->__setLocation($location); - } - - /** - * Set the Session ID - * - * @param string $sessionId Session ID - */ - public function setSessionHeader($sessionId) { - $this->sforce->__setSoapHeaders(NULL); - $session_header = new SoapHeader($this->namespace, 'SessionHeader', array ( - 'sessionId' => $sessionId - )); - $this->sessionId = $sessionId; - $header_array = array ( - $session_header - ); - $this->_setClientId($header_array); - $this->sforce->__setSoapHeaders($header_array); - } - - private function getObjtype($obj) { - $classArray = explode('\\', get_class($obj)); - $objtype = array_pop($classArray); - if (strpos($objtype, 'Sforce', 0) === 0) { - $objtype = substr($objtype, 6); - } - return $objtype; - } - - public function create($obj) { - $encodedObj = new stdClass(); - $encodedObj->metadata = new SoapVar($obj, SOAP_ENC_OBJECT, $this->getObjtype($obj), $this->namespace); - - return $this->sforce->create($encodedObj); - } - - public function update($obj) { - $encodedObj = new stdClass(); - $encodedObj->UpdateMetadata = $obj; - $encodedObj->UpdateMetadata->metadata = new SoapVar($obj->metadata, SOAP_ENC_OBJECT, $this->getObjtype($obj->metadata), $this->namespace); - - return $this->sforce->update($encodedObj); - } - - public function delete($obj) { - $encodedObj = new stdClass(); - $encodedObj->metadata = new SoapVar($obj, SOAP_ENC_OBJECT, $this->getObjtype($obj), $this->namespace); - - return $this->sforce->delete($encodedObj); - } - - public function checkStatus($ids) { - return $this->sforce->checkStatus($ids); - } - - public function getLastRequest() { - return $this->sforce->__getLastRequest(); - } - - public function getLastRequestHeaders() { - return $this->sforce->__getLastRequestHeaders(); - } - - public function getLastResponse() { - return $this->sforce->__getLastResponse(); - } - - public function getLastResponseHeaders() { - return $this->sforce->__getLastResponseHeaders(); - } - - -} - - -?> diff --git a/soapclient/SforcePartnerClient.php b/soapclient/SforcePartnerClient.php deleted file mode 100644 index 66bb75a..0000000 --- a/soapclient/SforcePartnerClient.php +++ /dev/null @@ -1,226 +0,0 @@ -loadXML($response); - - $nodeList = $dom->getElementsByTagName('NewValue'); - foreach ($nodeList as $node) { - $node->removeAttributeNS('http://www.w3.org/2001/XMLSchema-instance', 'type'); - } - $nodeList = $dom->getElementsByTagName('OldValue'); - foreach ($nodeList as $node) { - $node->removeAttributeNS('http://www.w3.org/2001/XMLSchema-instance', 'type'); - } - - return $dom->saveXML(); - } - } - -/** - * SforcePartnerClient class. - * - * @package SalesforceSoapClient - */ -class SforcePartnerClient extends SforceBaseClient { - const PARTNER_NAMESPACE = 'urn:partner.soap.sforce.com'; - - function SforcePartnerClient() { - $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); - } - - /** - * Adds one or more new individual objects to your organization's data. - * @param array $sObjects Array of one or more sObjects (up to 200) to create. - * @return SaveResult - */ - public function create($sObjects) { - $arg = new stdClass; - foreach ($sObjects as $sObject) { - if (isset ($sObject->fields)) { - $sObject->any = $this->_convertToAny($sObject->fields); - } - } - $arg->sObjects = $sObjects; - return parent::_create($arg); - } - - /** - * Merge records - * - * @param stdclass $mergeRequest - * @param String $type - * @return mixed - */ - public function merge($mergeRequest) { - if (isset($mergeRequest->masterRecord)) { - if (isset($mergeRequest->masterRecord->fields)) { - $mergeRequest->masterRecord->any = $this->_convertToAny($mergeRequest->masterRecord->fields); - } - //return parent::merge($mergeRequest, $type); - $arg->request = $mergeRequest; - return $this->_merge($arg); - } - } - - /** - * - * @param array $request - */ - public function sendSingleEmail($request) { - if (is_array($request)) { - $messages = array(); - foreach ($request as $r) { - $email = new SoapVar($r, SOAP_ENC_OBJECT, 'SingleEmailMessage', $this->namespace); - array_push($messages, $email); - } - $arg->messages = $messages; - return parent::_sendEmail($arg); - } else { - $backtrace = debug_backtrace(); - die('Please pass in array to this function: '.$backtrace[0]['function']); - } - } - - /** - * - * @param array $request - */ - public function sendMassEmail($request) { - if (is_array($request)) { - $messages = array(); - foreach ($request as $r) { - $email = new SoapVar($r, SOAP_ENC_OBJECT, 'MassEmailMessage', $this->namespace); - array_push($messages, $email); - } - $arg->messages = $messages; - return parent::_sendEmail($arg); - } else { - $backtrace = debug_backtrace(); - die('Please pass in array to this function: '.$backtrace[0]['function']); - } - } - - /** - * Updates one or more new individual objects to your organization's data. - * @param array sObjects Array of sObjects - * @return UpdateResult - */ - public function update($sObjects) { - $arg = new stdClass; - foreach ($sObjects as $sObject) { - if (isset($sObject->fields)) { - $sObject->any = $this->_convertToAny($sObject->fields); - } - } - $arg->sObjects = $sObjects; - return parent::_update($arg); - } - - /** - * Creates new objects and updates existing objects; uses a custom field to - * determine the presence of existing objects. In most cases, we recommend - * that you use upsert instead of create because upsert is idempotent. - * Available in the API version 7.0 and later. - * - * @param string $ext_Id External Id - * @param array $sObjects Array of sObjects - * @return UpsertResult - */ - public function upsert($ext_Id, $sObjects) { - // $this->_setSessionHeader(); - $arg = new stdClass; - $arg->externalIDFieldName = new SoapVar($ext_Id, XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); - foreach ($sObjects as $sObject) { - if (isset ($sObject->fields)) { - $sObject->any = $this->_convertToAny($sObject->fields); - } - } - $arg->sObjects = $sObjects; - return parent::_upsert($arg); - } - - /** - * @param string $fieldList - * @param string $sObjectType - * @param array $ids - * @return string - */ - public function retrieve($fieldList, $sObjectType, $ids) { - return $this->_retrieveResult(parent::retrieve($fieldList, $sObjectType, $ids)); - } - - /** - * - * @param mixed $response - * @return array - */ - private function _retrieveResult($response) { - $arr = array(); - if(is_array($response)) { - foreach($response as $r) { - $sobject = new SObject($r); - array_push($arr,$sobject); - }; - }else { - $sobject = new SObject($response); - array_push($arr, $sobject); - } - return $arr; - } - -} \ No newline at end of file diff --git a/soapclient/SforceProcessRequest.php b/soapclient/SforceProcessRequest.php deleted file mode 100644 index 851c3f5..0000000 --- a/soapclient/SforceProcessRequest.php +++ /dev/null @@ -1,40 +0,0 @@ - \ No newline at end of file diff --git a/soapclient/enterprise.wsdl.xml b/soapclient/enterprise.wsdl.xml deleted file mode 100644 index 06b1c74..0000000 --- a/soapclient/enterprise.wsdl.xml +++ /dev/null @@ -1,6302 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Login to the Salesforce.com SOAP Api - - - - - - - - - Describe an sObject - - - - - - - - Describe a number sObjects - - - - - - - - Describe the Global state - - - - - - - Describe all the data category groups available for a given set of types - - - - - - - - Describe the data category group structures for a given set of pair of types and data category group name - - - - - - - - Describe the layout of an sObject - - - - - - - - - Describe the layout of the SoftPhone - - - - - - - Describe the tabs that appear on a users page - - - - - - - Create a set of new sObjects - - - - - - - - - - Update a set of sObjects - - - - - - - - - - Update or insert a set of sObjects based on object id - - - - - - - - - - Merge and update a set of sObjects based on object id - - - - - - - - - - Delete a set of sObjects - - - - - - - Undelete a set of sObjects - - - - - - - Empty a set of sObjects from the recycle bin - - - - - - - Get a set of sObjects - - - - - - - - - - - Submit an entity to a workflow process or process a workitem - - - - - - - - convert a set of leads - - - - - - - Logout the current user, invalidating the current session. - - - - - - - Logs out and invalidates session ids - - - - - - - Get the IDs for deleted sObjects - - - - - - - - Get the IDs for updated sObjects - - - - - - - - Create a Query Cursor - - - - - - - - - - - - Create a Query Cursor, including deleted sObjects - - - - - - - - - - - - Gets the next batch of sObjects from a query - - - - - - - - - Search for sObjects - - - - - - - - - - Gets server timestamp - - - - - - - Set a user's password - - - - - - - - - Reset a user's password - - - - - - - - Returns standard information relevant to the current user - - - - - - - Send outbound email - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Sforce SOAP API - - - - - \ No newline at end of file diff --git a/soapclient/metadata.wsdl.xml b/soapclient/metadata.wsdl.xml deleted file mode 100644 index 88a2965..0000000 --- a/soapclient/metadata.wsdl.xml +++ /dev/null @@ -1,3337 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Check the current status of an asyncronous deploy call. - - - - - Check the current status of an asyncronous deploy call. - - - - - Check the current status of an asyncronous call. - - - - - Creates new metadata entries asyncronously. - - - - - Deletes metadata entries asyncronously. - - - - - Deploys a zipfile full of metadata entries asynchronously. - - - - - Describes features of the metadata API. - - - - - Lists the available metadata components. - - - - - Retrieves a set of individually specified metadata entries. - - - - - Updates metadata entries asyncronously. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Manage your Salesforce.com metadata - - - - - \ No newline at end of file diff --git a/soapclient/partner.wsdl.xml b/soapclient/partner.wsdl.xml deleted file mode 100644 index fa3f984..0000000 --- a/soapclient/partner.wsdl.xml +++ /dev/null @@ -1,3131 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Login to the Salesforce.com SOAP Api - - - - - - - - - Describe an sObject - - - - - - - - Describe a number sObjects - - - - - - - - Describe the Global state - - - - - - - Describe all the data category groups available for a given set of types - - - - - - - - Describe the data category group structures for a given set of pair of types and data category group name - - - - - - - - Describe the layout of an sObject - - - - - - - - - Describe the layout of the SoftPhone - - - - - - - Describe the tabs that appear on a users page - - - - - - - Create a set of new sObjects - - - - - - - - - - Update a set of sObjects - - - - - - - - - - Update or insert a set of sObjects based on object id - - - - - - - - - - Merge and update a set of sObjects based on object id - - - - - - - - - - Delete a set of sObjects - - - - - - - Undelete a set of sObjects - - - - - - - Empty a set of sObjects from the recycle bin - - - - - - - Get a set of sObjects - - - - - - - - - - - Submit an entity to a workflow process or process a workitem - - - - - - - - convert a set of leads - - - - - - - Logout the current user, invalidating the current session. - - - - - - - Logs out and invalidates session ids - - - - - - - Get the IDs for deleted sObjects - - - - - - - - Get the IDs for updated sObjects - - - - - - - - Create a Query Cursor - - - - - - - - - - - - Create a Query Cursor, including deleted sObjects - - - - - - - - - - - - Gets the next batch of sObjects from a query - - - - - - - - - Search for sObjects - - - - - - - - - - Gets server timestamp - - - - - - - Set a user's password - - - - - - - - - Reset a user's password - - - - - - - - Returns standard information relevant to the current user - - - - - - - Send outbound email - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Sforce SOAP API - - - - - \ No newline at end of file diff --git a/test/SforcePartnerClientTest.php b/test/SforcePartnerClientTest.php deleted file mode 100644 index f03b7b3..0000000 --- a/test/SforcePartnerClientTest.php +++ /dev/null @@ -1,527 +0,0 @@ -records; - $ids = array (); - $buckets = array_chunk($records, 200); - foreach ($buckets as $bucket) { - $ids = array (); - foreach ($bucket as $record) { - $sObject = new SObject($record); - //var_dump($sObject); - $ids[] = $sObject->Id; - } - try { - global $mySforceConnection; - $this->mySforceConnection->delete($ids); - } catch (Exception $e) { - print_r($e->faultstring); - } - } - - $queryLocator = $queryResult->queryLocator; - if (isset($queryLocator)) { - $result = $this->mySforceConnection->queryMore($queryLocator); - $this->deleteAll($result); - } - } - - protected function setUp() { - echo "Begin Test Setup\r\n"; - try { - // Create the fixtures. - $this->mySforceConnection = new SforcePartnerClient(); - $this->mySforceConnection->createConnection($this->wsdl); - $this->mylogin = $this->mySforceConnection->login($this->username, $this->password); - - // CLEAN - $queryOptions = new QueryOptions(300); - $createQuery = 'SELECT Id from Contact where FirstName = \'DELETE_ME\''; - $leadQuery = 'SELECT Id from Lead where FirstName = \'DELETE_ME\''; - $createQueryResult = $this->mySforceConnection->query($createQuery, $queryOptions); - $leadQueryResult = $this->mySforceConnection->query($leadQuery, $queryOptions); - if ($createQueryResult->size > 0) { - echo 'Deleting '.$createQueryResult->size." contacts.\r\n"; - $this->deleteAll($createQueryResult); - } - if ($leadQueryResult->size > 0) { - $this->deleteAll($leadQueryResult); - } - $createFields = array ( - 'FirstName' => 'DELETE_ME', - 'LastName' => 'DELETE_ME', - 'MailingCity' => 'San Diego', - 'MailingState' => 'CA' - ); - $sObject1 = new SObject(); - $sObject1->fields = $createFields; - $sObject1->type = 'Contact'; - $createResponse = $this->mySforceConnection->create(array($sObject1)); - $this->assertNotNull($createResponse); - $this->assertTrue($createResponse->success); - } catch (SoapFault $fault) { - $this->fail($fault->faultstring); - } - $this->theId = $createResponse->id; - echo "Test setup complete.\r\n"; - } - - public function testLogin() { - echo "testLogin\r\n"; - try { - $mylogin = $this->mylogin; - $this->assertNotNull($mylogin); - $this->assertNotNull($mylogin->userInfo); - } catch (SoapFault $fault) { - $this->fail($fault->faultstring); - } - } - - public function testServerTimestamp() { - echo "testServerTimestamp\r\n"; - try { - $timeStamp = $this->mySforceConnection->getServerTimestamp(); - $this->assertNotNull($timeStamp); - $this->assertNotNull($timeStamp->timestamp); - } catch (SoapFault $fault) { - $this->fail($fault->faultstring); - } - } - - public function testUserInfo() { - echo "testUserInfo\r\n"; - try { - $userInfo = $this->mySforceConnection->getUserInfo(); - $this->assertNotNull($userInfo); - $this->assertNotNull($userInfo->userId); - $this->assertNotNull($userInfo->userFullName); - } catch (SoapFault $fault) { - $this->fail($fault->faultstring); - } - } - - public function testDescribeSObject() { - echo "testDescribeSObject\r\n"; - try { - $response = $this->mySforceConnection->describeSObject('Contact'); - $this->assertNotNull($response); - $this->assertEquals('Contact', $response->name); - } catch (SoapFault $fault) { - echo $fault; - $this->fail($fault->faultstring); - } - } - - public function testDescribeSObjects() { - echo "testDescribeSObjects\r\n"; - try { - $response = $this->mySforceConnection->describeSObjects(array ( - 'Account', - 'Contact' - )); - $this->assertNotNull($response); - $this->assertEquals(2, sizeof($response)); - } catch (SoapFault $fault) { - $this->fail($fault->faultstring); - } - } - - public function testDescribeGlobal() { - echo "testDescribeGlobal\r\n"; - try { - $response = $this->mySforceConnection->describeGlobal(); - $this->assertNotNull($response); - $this->assertNotNull($response->types); - } catch (SoapFault $fault) { - $this->fail($fault->faultstring); - } - } - - public function testDescribeLayout() { - echo "testDescribeLayout\r\n"; - try { - $response = $this->mySforceConnection->describeLayout('Contact'); - $this->assertNotNull($response); - $this->assertNotNull($response->recordTypeMappings); - } catch (SoapFault $fault) { - $this->fail($fault->faultstring); - } - } - - public function testDescribeTabs() { - echo "testDescribeTabs\r\n"; - try { - $response = $this->mySforceConnection->describeTabs(); - $this->assertNotNull($response); - $this->assertTrue(sizeof($response) > 0); - } catch (SoapFault $fault) { - $this->fail($fault->faultstring); - } - } - - public function testCreate() { - // now done in setUp so that theId can be accessed by other tests. - } - - public function testRetrieve() { - echo "testRetrieve\r\n"; - try { - $ids = array ($this->theId); - $this->assertEquals(1, count($ids)); - - $retrieveFields = 'LastName'; - $retrieveResponse = $this->mySforceConnection->retrieve($retrieveFields, 'Contact', $ids); - $sObject = new SObject($retrieveResponse); - $this->assertEquals($this->theId, $sObject->Id); - // Fields on SObjects are SimpleXMLElements. - //$this->assertEquals('DELETE_ME', $sObject->fields->LastName); - //$this->assertEquals('San Diego', $sObject->MailingCity); - //$this->assertEquals('CA', $sObject->MailingState); - } catch (SoapFault $fault) { - $this->fail($fault->faultstring); - } - } - - public function testUpdate() { - echo "testUpdate\r\n"; - try { - $id = $this->theId; - $this->assertNotNull($id); - $updateFields = array ( - 'Id' => $id, - 'MailingCity' => 'New York', - 'MailingState' => 'NY' - ); - $sObject1 = new SObject(); - $sObject1->fields = $updateFields; - $sObject1->type = 'Contact'; - $updateResponse = $this->mySforceConnection->update(array ($sObject1)); - $this->assertNotNull($updateResponse); - $this->assertTrue($updateResponse->success); - } catch (SoapFault $fault) { - $this->fail($fault->faultstring); - } - } - - public function testGetUpdated() { - echo "testGetUpdated\r\n"; - try { - $type = 'Contact'; - $currentTime = mktime(); - // assume that create or update occured within the last 5 mins. - $startTime = $currentTime-(60*5); - $endTime = $currentTime; - $response = $this->mySforceConnection->getUpdated($type, $startTime, $endTime); - $this->assertNotNull($response); - - } catch (SoapFault $fault) { - $this->fail($fault->faultstring); - } - } - - public function testDelete() { - echo "testDelete\r\n"; - try { - $ids = array ($this->theId); - $this->assertEquals(1, count($ids)); - $response = $this->mySforceConnection->delete($ids); - $this->assertNotNull($response); - $this->assertTrue($response->success); - } catch (SoapFault $fault) { - $this->fail($fault->faultstring); - } - } - - public function testGetDeleted() { - echo "testGetDeleted\r\n"; - try { - $type = 'Contact'; - $currentTime = mktime(); - // assume that delete occured within the last 5 mins. - $startTime = $currentTime-(60*10); - $endTime = $currentTime; - $response = $this->mySforceConnection->getDeleted($type, $startTime, $endTime); - if (isset($response)) { - $this->assertNotNull(count($response->deletedRecords)); - echo'deleted records = '.count($response->deletedRecords)."\r\n"; - } - } catch (SoapFault $fault) { - $this->fail($fault->faultstring); - } - } - - public function testQuery() { - echo "testQuery\r\n"; - $query = 'SELECT Id,Name,BillingCity,BillingState,Phone,Fax from Account'; - $queryOptions = new QueryOptions(200); - try { - $response = $this->mySforceConnection->query($query, $queryOptions); - $this->assertNotNull($response); - $this->assertTrue(sizeof($response) > 0); - } catch (SoapFault $fault) { - $this->fail($fault->faultstring); - } - } - /* - public function testQueryMore() { - echo "testQueryMore\r\n"; - $createFields = array ( - 'FirstName' => 'DELETE_ME', - 'LastName' => 'DELETE_ME', - 'MailingCity' => 'San Diego', - 'MailingState' => 'CA' - ); - - $sObject1 = new SObject(); - $sObject1->fields = $createFields; - $sObject1->type = 'Contact'; - - $createNum = 500; - try { - for ($counter = 0; $counter < $createNum; $counter++) { - $createResponse = $this->mySforceConnection->create(array ($sObject1)); - $this->assertTrue($createResponse->success); - } - - $query = 'SELECT Id from Contact where FirstName = \'DELETE_ME\''; - $queryOptions = new QueryOptions(300); - - $queryResponse = $this->mySforceConnection->query($query, $queryOptions); - $this->assertEquals($createNum+1, $queryResponse->size); - if ($queryResponse->size) { - $this->deleteAll($queryResponse); - } - $queryResponse = $this->mySforceConnection->query($query, $queryOptions); - $this->assertEquals(0, $queryResponse->size); - } catch (SoapFault $fault) { - $this->fail($fault->faultstring); - } - } - */ - - public function testUpsert() { - // Make the language field an external id field on the contact - // table before proceeding. - echo "testUpsert\r\n"; - $createFields = array ( - 'FirstName' => 'DELETE_ME', - 'LastName' => 'DELETE_ME', - 'MailingCity' => 'TEST_UPSERT', - 'MailingState' => 'CA', - 'Languages__c' => 'TEST_UPSERT_ID' - ); - $external_id = 'Languages__c'; - try { - $sObject1 = new SObject(); - $sObject1->fields = $createFields; - $sObject1->type = 'Contact'; - $upsertResponse = $this->mySforceConnection->upsert($external_id, array($sObject1)); - $this->assertNotNull($upsertResponse); - $this->assertTrue($upsertResponse->success); - $id = $upsertResponse->id; - $ids = array ($id); - $retrieveFields = 'Id, FirstName, LastName, MailingCity, MailingState'; - $retrieveResponse = $this->mySforceConnection->retrieve($retrieveFields, 'Contact', $ids); - $this->assertNotNull($retrieveResponse); - $sObject = new SObject($retrieveResponse); - $this->assertEquals($id, $sObject->Id); - } catch (SoapFault $fault) { - $this->fail($fault->faultstring); - } - } - - public function testAssignmentRuleHeaderId() { - echo "testAssignmentRuleHeaderId\r\n"; - $header = new AssignmentRuleHeader('01Q300000005lDgEAI', NULL); - $createFields = array ( - 'FirstName' => 'DELETE_ME', - 'LastName' => 'DELETE_ME', - 'Email' => 'deleteme@salesforce.com', - 'Company' => 'DELETE_ME Company', - 'LeadSource' => 'PHPUnit2', - 'City' => 'San Diego', - 'State' => 'CA' - ); - $sObject1 = new SObject(); - $sObject1->fields = $createFields; - $sObject1->type = 'Lead'; - try { - $createResponse = $this->mySforceConnection->create(array ($sObject1), $header, NULL); - } catch (SoapFault $fault) { - $this->fail($fault->faultstring); - } - } - - public function testAssignmentRuleHeaderFlag() { - echo "testAssignmentRuleHeaderFlag\r\n"; - $header = new AssignmentRuleHeader(NULL, TRUE); - $createFields = array ( - 'FirstName' => 'DELETE_ME', - 'LastName' => 'DELETE_ME', - 'Email' => 'deleteme@salesforce.com', - 'Company' => 'DELETE_ME Company', - 'LeadSource' => 'PHPUnit2', - 'City' => 'San Diego', - 'State' => 'CA' - ); - $sObject1 = new SObject(); - $sObject1->fields = $createFields; - $sObject1->type = 'Lead'; - try { - $createResponse = $this->mySforceConnection->create(array ($sObject1), $header, NULL); - $this->assertNotNull($createResponse); - $this->assertTrue($createResponse->success); - } catch (SoapFault $fault) { - $this->fail($fault->faultstring); - } - } - - public function testMruHeader() { - echo "testMruHeader\r\n"; - $header = new MruHeader(TRUE); - $createFields = array ( - 'FirstName' => 'DELETE_ME', - 'LastName' => 'DELETE_ME', - 'MailingCity' => 'San Diego', - 'MailingState' => 'CA' - ); - $sObject1 = new SObject(); - $sObject1->fields = $createFields; - $sObject1->type = 'Contact'; - try { - $createResponse = $this->mySforceConnection->create(array ($sObject1), NULL, $header); - $this->assertNotNull($createResponse); - $this->assertTrue($createResponse->success); - } catch (SoapFault $fault) { - $this->fail($fault->faultstring); - } - } - - public function testSearch() { - echo "testSearch\r\n"; - try { - $searchResponse - = $this->mySforceConnection->search('FIND {DELETE_ME} returning contact(id, phone, firstname, lastname)'); - $this->assertNotNull($searchResponse); - } catch (SoapFault $fault) { - $this->fail($fault->faultstring); - } - } - - public function testSendSingleEmail() { - echo "testSendSingleEmail\r\n"; - try { - $singleEmail1 = new SingleEmailMessage(); - $singleEmail1->toAddresses = "ntran@salesforce.com"; - $singleEmail1->plainTextBody = "Hello there"; - $singleEmail1->subject = "First Single Email"; - $singleEmail1->saveAsActivity = true; - $singleEmail1->emailPriority = EMAIL_PRIORITY_LOW; - - $singleEmail2 = new SingleEmailMessage(); - $singleEmail2->toAddresses = "ntran@salesforce.com"; - $singleEmail2->plainTextBody = "Hello there"; - $singleEmail2->subject = "Second Single Email"; - $singleEmail2->saveAsActivity = true; - $singleEmail2->emailPriority = EMAIL_PRIORITY_LOW; - - $emailResponse = $this->mySforceConnection->sendSingleEmail(array ($singleEmail1, $singleEmail2)); - $this->assertNotNull($emailResponse); - } catch (SoapFault $fault) { - $this->fail($fault->faultstring); - } - } - - public function testSendMassEmail() { - echo "testSendMassEmail\r\n"; - try { - $massEmail = new MassEmailMessage(); - $massEmail->subject = "Nicks Mass Email Message"; - $massEmail->saveAsActivity = true; - $massEmail->emailPriority = EMAIL_PRIORITY_LOW; - $massEmail->templateId = "00X50000000wX9q"; - $massEmail->targetObjectIds = array ("0035000000PiCMd"); - - $emailResponse = $this->mySforceConnection->sendMassEmail(array($massEmail)); - - $this->assertNotNull($emailResponse); - } catch (SoapFault $fault) { - $this->fail($fault->faultstring); - } - } - - public function testEmptyRecycleBin() { - echo "testEmptyRecycleBin\r\n"; - try { - $fields = array ( - 'Type' => 'Electrical' - ); - - $sObject = new SObject(); - $sObject->fields = $fields; - $sObject->type = 'Case'; - - //echo "Creating Case:\n"; - $response = $this->mySforceConnection->create(array ($sObject)); - $this->assertNotNull($response); - $id = $response->id; - //echo "Deleted Case:\n"; - $response = $this->mySforceConnection->delete(array($id)); - $this->assertNotNull($response); - //echo "Empty Recycle Bin:\n"; - $response = $this->mySforceConnection->emptyRecycleBin(array($id)); - $this->assertNotNull($response); - } catch (SoapFault $fault) { - $this->fail($fault->faultstring); - } - } - - -} -?> \ No newline at end of file diff --git a/test/build-phing.xml b/test/build-phing.xml deleted file mode 100644 index 300806e..0000000 --- a/test/build-phing.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/test/build.bat b/test/build.bat deleted file mode 100644 index ea55a4d..0000000 --- a/test/build.bat +++ /dev/null @@ -1 +0,0 @@ -phing diff --git a/test/build.xml b/test/build.xml deleted file mode 100644 index 8bca1f0..0000000 --- a/test/build.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/test/enterprise.php b/test/enterprise.php deleted file mode 100644 index 69fa5c8..0000000 --- a/test/enterprise.php +++ /dev/null @@ -1,24 +0,0 @@ -createConnection(SOAP_CLIENT_BASEDIR.'/enterprise.wsdl.xml'); - $mylogin = $mySforceConnection->login($USERNAME, $PASSWORD); - - echo "***** Get Server Timestamp *****\n"; - $response = $mySforceConnection->getServerTimestamp(); - print_r($response); -} catch (Exception $e) { - print_r($e); -} -?> diff --git a/test/partner.php b/test/partner.php deleted file mode 100644 index 450bacd..0000000 --- a/test/partner.php +++ /dev/null @@ -1,35 +0,0 @@ -
-createConnection(SOAP_CLIENT_BASEDIR.'/partner.wsdl.xml');
-	$mylogin = $mySforceConnection->login($USERNAME, $PASSWORD);
-print_r($mySforceConnection->getUserInfo());
-	//print_r($mylogin->userInfo);
-  echo "***** Get Server Timestamp *****\n";
-  //$response = $mySforceConnection->getServerTimestamp();
-//	print_r($response);
- //print_r($mySforceConnection->describeSObject('User'));  
-  //$result = $mySforceConnection->query($query);
-  //print_r($result);
-} catch (Exception $e) {
-	print_r($e);
-}
-?>
-
\ No newline at end of file diff --git a/test/report/SalesforceTest/SforcePartnerClientTest.html b/test/report/SalesforceTest/SforcePartnerClientTest.html deleted file mode 100644 index 8f94ff7..0000000 --- a/test/report/SalesforceTest/SforcePartnerClientTest.html +++ /dev/null @@ -1,171 +0,0 @@ - - - -Unit Test Results: SalesforceTest.SforcePartnerClientTest - - - -

Unit Test Results

- - - -
Designed for use with PHPUnit2 and Phing.
-
-

Class SalesforceTest.SforcePartnerClientTest

- - - - - - - - - - - - - - - -
NameTestsErrorsFailuresTime(s)
SforcePartnerClientTest210089.304
-

Tests

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameStatusTypeTime(s)
testLoginSuccess4.432
testServerTimestampSuccess0.749
testUserInfoSuccess0.699
testDescribeSObjectSuccess0.995
testDescribeSObjectsSuccess0.812
testDescribeGlobalSuccess0.574
testDescribeLayoutSuccess0.843
testDescribeTabsSuccess0.627
testCreateSuccess0.556
testRetrieveSuccess0.611
testUpdateSuccess0.827
testGetUpdatedSuccess0.635
testDeleteSuccess0.669
testGetDeletedSuccess0.498
testQuerySuccess0.637
testQueryMoreSuccess69.329
testUpsertSuccess2.329
testAssignmentRuleHeaderIdSuccess0.959
testAssignmentRuleHeaderFlagSuccess0.804
testMruHeaderSuccess0.714
testSearchSuccess1.006
- - - -

Report generated at 2006-05-11T23:17:56-07:00
- - diff --git a/test/report/SalesforceTest/package-frame.html b/test/report/SalesforceTest/package-frame.html deleted file mode 100644 index 3232efa..0000000 --- a/test/report/SalesforceTest/package-frame.html +++ /dev/null @@ -1,12 +0,0 @@ - - - -Unit Test Classes: SalesforceTest - - - -

SalesforceTest

-

Classes

-
SforcePartnerClientTest
- - diff --git a/test/report/SalesforceTest/package-summary.html b/test/report/SalesforceTest/package-summary.html deleted file mode 100644 index 27b8660..0000000 --- a/test/report/SalesforceTest/package-summary.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - -

Unit Test Results

- - - -
Designed for use with PHPUnit2 and Phing.
-
-

Package SalesforceTest

-

Classes

-

- - - - - - - - - - - - - - -
NameTestsErrorsFailuresTime(s)
SforcePartnerClientTest210089.304

- - - -

Report generated at 2006-05-11T23:17:56-07:00
- - diff --git a/test/report/allclasses-frame.html b/test/report/allclasses-frame.html deleted file mode 100644 index be4da32..0000000 --- a/test/report/allclasses-frame.html +++ /dev/null @@ -1,11 +0,0 @@ - - - -All Unit Test Classes - - - -

Classes

-
SforcePartnerClientTest
- - diff --git a/test/report/index.html b/test/report/index.html deleted file mode 100644 index 27aeb00..0000000 --- a/test/report/index.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -Unit Test Results. - - - - - - - - -<h2>Frame Alert</h2> -<p> - This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. - </p> - - - diff --git a/test/report/overview-frame.html b/test/report/overview-frame.html deleted file mode 100644 index 5e9cefe..0000000 --- a/test/report/overview-frame.html +++ /dev/null @@ -1,12 +0,0 @@ - - - -All Unit Test Packages - - - -

Home

-

Packages

-
SalesforceTest
- - diff --git a/test/report/overview-summary.html b/test/report/overview-summary.html deleted file mode 100644 index 5d2b54c..0000000 --- a/test/report/overview-summary.html +++ /dev/null @@ -1,56 +0,0 @@ - - - -Unit Test Results: Summary - - - -

Unit Test Results

- - - -
Designed for use with PHPUnit2 and Phing.
-
-

Summary

- - - - - - - - - - - - - - - -
TestsFailuresErrorsSuccess rateTime
2300100.00%23.331
-
- Note: failures are anticipated and checked for with assertions while errors are unanticipated. -
-

Packages

- - - - - - - - - - - - - - - -
NameTestsErrorsFailuresTime(s)
SalesforceTest230023.331
- - - -

Report generated at 2007-11-07T11:52:15-08:00
- - diff --git a/test/report/stylesheet.css b/test/report/stylesheet.css deleted file mode 100644 index c5c309a..0000000 --- a/test/report/stylesheet.css +++ /dev/null @@ -1,66 +0,0 @@ - - -body { - font-family: verdana,arial,helvetica; - color:#000000; - font-size: 12px; -} -table tr td, table tr th { - font-family: verdana,arial,helvetica; - font-size: 12px; -} -table.details tr th{ - font-family: verdana,arial,helvetica; - font-weight: bold; - text-align:left; - background:#a6caf0; -} -table.details tr td{ - background:#eeeee0; -} - -p { - line-height:1.5em; - margin-top:0.5em; margin-bottom:1.0em; - font-size: 12px; -} -h1 { - margin: 0px 0px 5px; - font-family: verdana,arial,helvetica; -} -h2 { - margin-top: 1em; margin-bottom: 0.5em; - font-family: verdana,arial,helvetica; -} -h3 { - margin-bottom: 0.5em; - font-family: verdana,arial,helvetica; -} -h4 { - margin-bottom: 0.5em; - font-family: verdana,arial,helvetica; -} -h5 { - margin-bottom: 0.5em; - font-family: verdana,arial,helvetica; -} -h6 { - margin-bottom: 0.5em; - font-family: verdana,arial,helvetica; -} -.Error { - font-weight:bold; color:red; -} -.Failure { - font-weight:bold; color:purple; -} -.small { - font-size: 9px; -} -a { - color: #003399; -} -a:hover { - color: #888888; -} - diff --git a/test/xsl/coverage-frames.xsl b/test/xsl/coverage-frames.xsl deleted file mode 100644 index 0a5060e..0000000 --- a/test/xsl/coverage-frames.xsl +++ /dev/null @@ -1,636 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Coverage Results. - - - - - - - - - <h2>Frame Alert</h2> - <p> - This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. - </p> - - - - - - - - .bannercell { - border: 0px; - padding: 0px; - } - body { - margin-left: 10; - margin-right: 10; - background-color:#FFFFFF; - font-family: verdana,arial,sanserif; - color:#000000; - } - a { - color: #003399; - } - a:hover { - color: #888888; - } - .a td { - background: #efefef; - } - .b td { - background: #fff; - } - th, td { - text-align: left; - vertical-align: top; - } - th { - font-weight:bold; - background: #ccc; - color: black; - } - table, th, td { - font-size: 12px; - border: none - } - table.log tr td, tr th { - } - h2 { - font-weight:bold; - font-size: 12px; - margin-bottom: 5; - } - h3 { - font-size:100%; - font-weight: 12px; - background: #DFDFDF - color: white; - text-decoration: none; - padding: 5px; - margin-right: 2px; - margin-left: 2px; - margin-bottom: 0; - } - .small { - font-size: 9px; - } -TD.empty { - FONT-SIZE: 2px; BACKGROUND: #c0c0c0; BORDER:#9c9c9c 1px solid; - color: #c0c0c0; -} -TD.fullcover { - FONT-SIZE: 2px; BACKGROUND: #00df00; BORDER:#9c9c9c 1px solid; - color: #00df00; -} -TD.covered { - FONT-SIZE: 2px; BACKGROUND: #00df00; BORDER-LEFT:#9c9c9c 1px solid;BORDER-TOP:#9c9c9c 1px solid;BORDER-BOTTOM:#9c9c9c 1px solid; - color: #00df00; -} -TD.uncovered { - FONT-SIZE: 2px; BACKGROUND: #df0000; BORDER:#9c9c9c 1px solid; - color: #df0000; -} -PRE.srcLine { - BACKGROUND: #ffffff; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; -} -td.lineCount, td.coverageCount { - BACKGROUND: #F0F0F0; PADDING-RIGHT: 3px; - text-align: right; -} -td.lineCountHighlight { - background: #C8C8F0; PADDING-RIGHT: 3px; - text-align: right; -} -td.coverageCountHighlight { - background: #F0C8C8; PADDING-RIGHT: 3px; - text-align: right; -} -span.srcLineHighlight { - background: #F0C8C8; -} -span.srcLine { - background: #C8C8F0; -} -TD.srcLineClassStart { - WIDTH: 100%; BORDER-TOP:#dcdcdc 1px solid; FONT-WEIGHT: bold; -} -.srcLine , .srcLine ol, .srcLine ol li {margin: 0;} -.srcLine .de1, .srcLine .de2 {font-family: 'Courier New', Courier, monospace; font-weight: normal;} -.srcLine .imp {font-weight: bold; color: red;} -.srcLine .kw1 {color: #b1b100;} -.srcLine .kw2 {color: #000000; font-weight: bold;} -.srcLine .kw3 {color: #000066;} -.srcLine .co1 {color: #808080; font-style: italic;} -.srcLine .co2 {color: #808080; font-style: italic;} -.srcLine .coMULTI {color: #808080; font-style: italic;} -.srcLine .es0 {color: #000099; font-weight: bold;} -.srcLine .br0 {color: #66cc66;} -.srcLine .st0 {color: #ff0000;} -.srcLine .nu0 {color: #cc66cc;} -.srcLine .me1 {color: #006600;} -.srcLine .me2 {color: #006600;} -.srcLine .re0 {color: #0000ff;} - - - - - - - - - -

All Classes

- - - - - - - / - .html - - - - - -
- - - - (-) - - - () - - -
- - -
- - - - - - - - -

Overview

-

All Packages

- - - - - - - -
- - - -
- - -
- - - - - - - - - - - - - - - - -
Packages: Classes: Methods: LOC:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Methods covered
Total coverage

PackagesMethods covered
- - - -
- - - - - - . - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

-
- -

Classes

- - - - - - - -
- - - - (-) - - - () - - -
- - -
- - - - - - - - - - - - - - - - - - -
Classes: Methods: LOC:
-
- - - - - - - - - - - - - - - - - - - - -
PackageMethods covered

ClassesMethods covered
- - - -
- - - - - - - - - - - - - - - - - -
Methods: LOC:
-
- - - - - - - - - - - - -
Source fileMethods covered
- - -
-
- - - - -
- - - - - - - - - - - - -
- - http://phing.info/ - -

Source Code Coverage

Designed for use with PHPUnit2, Xdebug and Phing.
-
-
- - - - - - -

Report generated at
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
 
- -
- - - - - - - - - - - - - - - - - - - - - - - -
   
- -
-
-
- - - - - - - - - - 0 - - - - - - - - srcLineClassStart - - - -
-
-
- - -
-
-
- -
-
- - -
- - - - - - ../ - - - - - - ../ - - - - - - - - stylesheet.css - - - - - - a - b - - - -
- - diff --git a/test/xsl/log.xsl b/test/xsl/log.xsl deleted file mode 100644 index 105d3da..0000000 --- a/test/xsl/log.xsl +++ /dev/null @@ -1,216 +0,0 @@ - - - - - - - - - - - Phing Build Log - - - - - - - - - -
- - http://phing.info/ - - - Phing -
- - - -

- - - - - - - -

-
- Phing -
-
- - -
- - - - - - failed - complete - - - - - - - - - - - - - -
Build FailedBuild CompleteTotal Time:
- -
- See the stacktrace. -
-
- - - -
phing.file
phing.version
- -

Build events

- - - - - - - -
targettaskmessage
-

- - - -

Error details

- - -
-
-
- -

-
- - - - - - - a - b - - - [ ] - - - - - - -
diff --git a/test/xsl/phpunit2-frames.xsl b/test/xsl/phpunit2-frames.xsl deleted file mode 100644 index 46c6083..0000000 --- a/test/xsl/phpunit2-frames.xsl +++ /dev/null @@ -1,678 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - . - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Unit Test Results. - - - - - - - - - <h2>Frame Alert</h2> - <p> - This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. - </p> - - - - - - - -body { - font-family: verdana,arial,helvetica; - color:#000000; - font-size: 12px; -} -table tr td, table tr th { - font-family: verdana,arial,helvetica; - font-size: 12px; -} -table.details tr th{ - font-family: verdana,arial,helvetica; - font-weight: bold; - text-align:left; - background:#a6caf0; -} -table.details tr td{ - background:#eeeee0; -} - -p { - line-height:1.5em; - margin-top:0.5em; margin-bottom:1.0em; - font-size: 12px; -} -h1 { - margin: 0px 0px 5px; - font-family: verdana,arial,helvetica; -} -h2 { - margin-top: 1em; margin-bottom: 0.5em; - font-family: verdana,arial,helvetica; -} -h3 { - margin-bottom: 0.5em; - font-family: verdana,arial,helvetica; -} -h4 { - margin-bottom: 0.5em; - font-family: verdana,arial,helvetica; -} -h5 { - margin-bottom: 0.5em; - font-family: verdana,arial,helvetica; -} -h6 { - margin-bottom: 0.5em; - font-family: verdana,arial,helvetica; -} -.Error { - font-weight:bold; color:red; -} -.Failure { - font-weight:bold; color:purple; -} -.small { - font-size: 9px; -} -a { - color: #003399; -} -a:hover { - color: #888888; -} - - - - - - - . - - - Unit Test Results: <xsl:value-of select="$class.name"/> - - - - - - -

Class

- - - - - -
- -

Tests

- - - - - - - - - -
- - - -
- - - - - - - - Unit Test Classes: <xsl:value-of select="$name"/> - - - - - - - - - -
-

- - <none> -

-
- -

Classes

- - - - - - - -
- -
- - -
- - - - - - - All Unit Test Classes - - - - - -

Classes

- - - - -
- - -
- - - - - -
- - - / - .html - - - - - - - - - - - - - All Unit Test Packages - - - - - -

Home

-

Packages

- - - - -
- - -
- - - - - - - <none> - - - - - - - - - - Unit Test Results: Summary - - - - - - open('allclasses-frame.html','classListFrame') - -

Summary

- - - - - - - - - - - - - - - - - Error - Failure - Pass - - - - - - - - - -
TestsFailuresErrorsSuccess rateTime
- - - - - - - -
- - - - -
- Note: failures are anticipated and checked for with assertions while errors are unanticipated. -
- -

Packages

- - - - - - - - - - - Error - Failure - Pass - - - - - - - - - -
- - <none> - - - - -
- - - -
- - - - - - - - - - - - open('package-frame.html','classListFrame') - -

Package

- - - - - -

Classes

-

- - - - - -
-

-
- - - -
- - - - - - - ../ - - - - - - ../ - - - - - - - - stylesheet.css - - - - - -

Unit Test Results

- - - - - -
Designed for use with PHPUnit2 and Phing.
-
-
- - - - - - -

Report generated at
-
- - - - - Name - Tests - Errors - Failures - Time(s) - - - - - - - Name - Status - Type - Time(s) - - - - - - - - - - Error - Failure - Pass - - - - - - - - - - - - - - - - - - Error - Failure - TableRowColor - - - - - - Failure - - - - Error - - - - Success - - - - - - - - - - - - - - - - - - - - - - - - - N/A - - - - - -

- - - - - - - -
- - - - - - - - - - - - -
- -
- - - - - - - - - - - - diff --git a/test/xsl/phpunit2-noframes.xsl b/test/xsl/phpunit2-noframes.xsl deleted file mode 100644 index a5d9b65..0000000 --- a/test/xsl/phpunit2-noframes.xsl +++ /dev/null @@ -1,437 +0,0 @@ - - - - - - - - - - - Unit Test Results - - - - - - - - -
- - - -
- - - -
- - - - - - - -
- - - - - - - - -

Packages

- Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers. - - - - - - - - - - - - - - - - - Failure - Error - - - - - - - - - -
- - - -
-
- - - - - - - - - - - - -

Package

- - - - - - -
- Back to top -

-

- - - - - - - - -

TestCase

- - - - - - - - - - -
-

- - Back to top - - - - -

Summary

- - - - - - - - - - - - - - - - - Failure - Error - - - - - - - - - -
TestsFailuresErrorsSuccess rateTime
- - - - - - - -
- - - - -
- Note: failures are anticipated and checked for with assertions while errors are unanticipated. -
-
- - - -

Unit Test Results

- - - - - -
Designed for use with PHPUnit2 and Phing.
-
-
- - - - - - -

Report generated at
-
- - - - Name - Tests - Errors - Failures - Time(s) - - - - - - - Name - Tests - Errors - Failures - Time(s) - - - - - - - Name - Status - Type - Time(s) - - - - - - - - - - - Failure - Error - - - - - - - - - - - - - - - - - - - - - Error - - - - - - Failure - - - - Error - - - - Success - - - - - - - - - - - - - - - - - - - - - - - - N/A - - - - - - -

- - - -
- - -
- - - - - - - - - - - - -
- -
- - - - - - - - - - - -
- diff --git a/test/xsl/str.replace.function.xsl b/test/xsl/str.replace.function.xsl deleted file mode 100644 index d6271c3..0000000 --- a/test/xsl/str.replace.function.xsl +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ERROR: function implementation of str:replace() relies on exsl:node-set(). - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/tests.html b/tests.html deleted file mode 100644 index 2b6a215..0000000 --- a/tests.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - -Apache Setup - - - - - -

-

Unit Tests

-

Instructions | API Docs | Apache Setup | PHP Setup | Unit Tests

-
-

The included unit tests are based on PHPUnit2 and Phing. PHPUnit2 provides the testing framework while Phing is an ANT based build system. The current version of PHPUnit2 as this is written is 2.3.5. The current version of Phing is 2.1.1. PHP 5.1.2 is also required.

-

Installation

-

You can install PHPUnit2 using the PHP Extension and Application Repository (PEAR) installer. On the command-line in your PHP5 home directory, simply type:

-pear install PHPUnit2 -

Due to the changing nature of the Phing documentation as this is written, please refer to http://phing.info/trac/ for the latest installation instructions..

-

This document will assume C:\dev\php5 as your PHP base directory.

-

Build, Configure, and Deploy

-

Configure

-

Edit DOC_ROOT/php-soap/test/SforcePartnerClientTest.php and modify the following to match your account:

- private $username = "username@mail.com";
-private $password = "changeme";
-

A partner.wsdl.xml file is packaged with the toolkit. If for some reason you need a newer version you will need to obtain it from your ADN account. Log into your ADN account and access the setup area. Under 'Integrate' in the left-hand panel you will find the WSDL generator. Select 'Integrate' and then choose the Partner WSDL from the main window. Simply write over the existing partner.wsdl.xml that comes with this toolkit.

-

Run

-
    -
  1. Open a CMD prompt.
    -
  2. -
  3. Navigate to DOC_ROOT/php-soap/test/
  4. -
  5. Type "phing"
  6. -
-The tests results can be found in DOC_ROOT/php-soap/test/reports/index.html.The log file containing any exception is outputted to DOC_ROOT/php-soap/test/reports/logfile.xml. -

Tips / Troubleshooting

-

 

-

 

- - diff --git a/unit_test/Lib/Enum/GenericAbstract.php b/unit_test/Lib/Enum/GenericAbstract.php deleted file mode 100644 index 2ade985..0000000 --- a/unit_test/Lib/Enum/GenericAbstract.php +++ /dev/null @@ -1,60 +0,0 @@ - sizeof($this->_values)) { - return NULL; - } - - return $this->_values[$id]; - } - - /** - * Validates id - * - * @param $value - * @return boolean - */ - public function validateId($id) - { - if(!is_numeric($id)){ - return FALSE; - } - $id = (int)$id; - if($id <= 0) { - return FALSE; - } - - return $id <= sizeof($this->_values); - } - - /** - * Validates value - * - * @param $value - * @return boolean - */ - public function validateValue($value) - { - if($value == '') { - return false; - } - return in_array($value, $this->_values); - } - - /** - * @return array - */ - public function getValues() - { - return $this->values; - } -} \ No newline at end of file diff --git a/unit_test/Lib/Enum/WsdlType.php b/unit_test/Lib/Enum/WsdlType.php deleted file mode 100644 index 14d2e1d..0000000 --- a/unit_test/Lib/Enum/WsdlType.php +++ /dev/null @@ -1,20 +0,0 @@ - Lib_Enum_WsdlType::PARTNER, - '2' => Lib_Enum_WsdlType::ENTERPRISE); -} \ No newline at end of file diff --git a/unit_test/Lib/Exception/InvalidResponse.php b/unit_test/Lib/Exception/InvalidResponse.php deleted file mode 100644 index 978faad..0000000 --- a/unit_test/Lib/Exception/InvalidResponse.php +++ /dev/null @@ -1,2 +0,0 @@ -_mySforceConnection->query($query); - $response = new QueryResult($response); - - echo "\n***** ".$this->getTestName()." *****\n"; - print_r($response); - - echo "\n***** ".$this->getTestName()." response records: *****\n"; - if (isset($response->records) && !empty($response->records)) { - foreach ($response->records as $key=>$record) { - echo "\n***** $key *****\n"; - if (isset($record->fields)) { - print_r($record->fields); - } - } - } - - } -} diff --git a/unit_test/Lib/Test/Enterprise/AllowFieldTruncationHeaderTest.php b/unit_test/Lib/Test/Enterprise/AllowFieldTruncationHeaderTest.php deleted file mode 100644 index 0055756..0000000 --- a/unit_test/Lib/Test/Enterprise/AllowFieldTruncationHeaderTest.php +++ /dev/null @@ -1,32 +0,0 @@ -_mySforceConnection->setAllowFieldTruncationHeader($header); - - $sObject = new stdclass(); - $sObject->FirstName = 'Smith'; - $sObject->LastName = 'John'; - $sObject->Phone = '510-555-55551111111111111111111111111111111111111111111111111111111111111111111'; - $sObject->BirthDate = '1927-01-25'; - - echo "**** Creating the following:\r\n"; - print_r($this->_mySforceConnection->create(array($sObject), 'Contact')); - - - print "**** LastRequestHeaders:\r\n"; - print_r($this->_mySforceConnection->getLastRequestHeaders()); - print "**** LastRequest:\r\n"; - print_r($this->_mySforceConnection->getLastRequest()); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/CDUTest.php b/unit_test/Lib/Test/Enterprise/CDUTest.php deleted file mode 100644 index ea92f60..0000000 --- a/unit_test/Lib/Test/Enterprise/CDUTest.php +++ /dev/null @@ -1,43 +0,0 @@ -FirstName = 'Smith'; - $sObject->LastName = 'John'; - $sObject->Phone = '510-555-5555'; - $sObject->BirthDate = '1927-01-25'; - - $sObject2 = new stdclass(); - $sObject2->FirstName = 'Mary'; - $sObject2->LastName = 'Smith'; - $sObject2->Phone = '510-486-9969'; - $sObject2->BirthDate = '1957-01-25'; - - echo "**** Creating the following:\r\n"; - $createResponse = $this->_mySforceConnection->create(array($sObject, $sObject2), 'Contact'); - - $ids = array(); - foreach ($createResponse as $createResult) { - print_r($createResult); - array_push($ids, $createResult->id); - } - echo "**** Now for Delete:\r\n"; - $deleteResult = $this->_mySforceConnection->delete($ids); - print_r($deleteResult); - - echo "**** Now for UnDelete:\r\n"; - $deleteResult = $this->_mySforceConnection->undelete($ids); - print_r($deleteResult); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/ConvertLeadTest.php b/unit_test/Lib/Test/Enterprise/ConvertLeadTest.php deleted file mode 100644 index 980190b..0000000 --- a/unit_test/Lib/Test/Enterprise/ConvertLeadTest.php +++ /dev/null @@ -1,38 +0,0 @@ -Company = 'test enterprise company'; - $newLead->FirstName = 'John'; - $newLead->LastName = 'Smith'; - - $createResponse = - $this->_mySforceConnection->create( - array($newLead), 'Lead' - ); - - echo "**** Created lead:\r\n"; - print_r($createResponse); - - $leadConvert = new stdClass; - $leadConvert->convertedStatus = 'Closed - Converted'; - $leadConvert->doNotCreateOpportunity = 'false'; - $leadConvert->leadId = $createResponse->id; - $leadConvert->overwriteLeadSource = 'true'; - $leadConvert->sendNotificationEmail = 'true'; - - $leadConvertArray = array($leadConvert); - $leadConvertResponse = $this->_mySforceConnection->convertLead($leadConvertArray); - - print_r($leadConvertResponse); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/DescribeDataCategoryGroupStructuresTest.php b/unit_test/Lib/Test/Enterprise/DescribeDataCategoryGroupStructuresTest.php deleted file mode 100644 index 16883ad..0000000 --- a/unit_test/Lib/Test/Enterprise/DescribeDataCategoryGroupStructuresTest.php +++ /dev/null @@ -1,51 +0,0 @@ -sobject = new SoapVar('Question', XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); - $pair->dataCategoryGroupName = new SoapVar('Products', XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); - - $pairs[] = new SoapVar($pair, SOAP_ENC_OBJECT, 'DataCategoryGroupSobjectTypePair', SforcePartnerClient::PARTNER_NAMESPACE); - $response = $this->_mySforceConnection->describeDataCategoryGroupStructures($pairs, true); - - echo "***** ".$this->getTestName()." Get information only about top categories *****\n"; - print_r($response); - - /* - Get info about two categories - */ - $pairs = array(); - - // First category - $pair = new stdClass; - $pair->sobject = new SoapVar('Question', XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); - $pair->dataCategoryGroupName = new SoapVar('Products', XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); - - // Second category - $pair = new stdClass; - $pair->sobject = new SoapVar('Question', XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); - $pair->dataCategoryGroupName = new SoapVar('Products', XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); - - $pairs[] = new SoapVar($pair, SOAP_ENC_OBJECT, 'DataCategoryGroupSobjectTypePair', SforcePartnerClient::PARTNER_NAMESPACE); - $response = $this->_mySforceConnection->describeDataCategoryGroupStructures($pairs, false); - - echo "\n\n***** ".$this->getTestName()." Get information about two categories *****\n"; - print_r($response); - } -} diff --git a/unit_test/Lib/Test/Enterprise/DescribeDataCategoryGroupsTest.php b/unit_test/Lib/Test/Enterprise/DescribeDataCategoryGroupsTest.php deleted file mode 100644 index 1c6e98a..0000000 --- a/unit_test/Lib/Test/Enterprise/DescribeDataCategoryGroupsTest.php +++ /dev/null @@ -1,22 +0,0 @@ -_mySforceConnection->describeDataCategoryGroups('Question'); - echo "***** ".$this->getTestName()." # Question *****\n"; - print_r($response); - } -} diff --git a/unit_test/Lib/Test/Enterprise/DescribeGlobalTest.php b/unit_test/Lib/Test/Enterprise/DescribeGlobalTest.php deleted file mode 100644 index e994c52..0000000 --- a/unit_test/Lib/Test/Enterprise/DescribeGlobalTest.php +++ /dev/null @@ -1,13 +0,0 @@ -_mySforceConnection->describeGlobal()); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/DescribeLayoutTest.php b/unit_test/Lib/Test/Enterprise/DescribeLayoutTest.php deleted file mode 100644 index 3aa33e8..0000000 --- a/unit_test/Lib/Test/Enterprise/DescribeLayoutTest.php +++ /dev/null @@ -1,13 +0,0 @@ -_mySforceConnection->describeLayout('Task')); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/DescribeSObjectTest.php b/unit_test/Lib/Test/Enterprise/DescribeSObjectTest.php deleted file mode 100644 index b73560f..0000000 --- a/unit_test/Lib/Test/Enterprise/DescribeSObjectTest.php +++ /dev/null @@ -1,13 +0,0 @@ -_mySforceConnection->describeSObject('Task')); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/EmptyRecycleBinTest.php b/unit_test/Lib/Test/Enterprise/EmptyRecycleBinTest.php deleted file mode 100644 index 5893da1..0000000 --- a/unit_test/Lib/Test/Enterprise/EmptyRecycleBinTest.php +++ /dev/null @@ -1,24 +0,0 @@ -Type='Electrical'; - $sObject->Status='New'; - - $response = $this->_mySforceConnection->create(array ($sObject), 'Case'); - echo "***** Creating Case *****\n"; - print_r($response); - $id = $response->id; - echo "***** Deleting Case *****\n"; - print_r($this->_mySforceConnection->delete(array($id))); - echo "***** Emptying Recycle Bin *****\n"; - print_r($this->_mySforceConnection->emptyRecycleBin(array($id))); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/FieldsToNullTest.php b/unit_test/Lib/Test/Enterprise/FieldsToNullTest.php deleted file mode 100644 index c636e62..0000000 --- a/unit_test/Lib/Test/Enterprise/FieldsToNullTest.php +++ /dev/null @@ -1,32 +0,0 @@ -FirstName = 'Mary'; - $sObject->LastName = 'Jane'; - $sObject->Phone = '510-555-5555'; - - $createResponse = $this->_mySforceConnection->create(array($sObject), 'Contact'); - - $retrieveResult= $this->_mySforceConnection->retrieve("FirstName, LastName, Phone", "Contact", $createResponse->id); - echo "***** Before fieldsToNull\r\n"; - print_r($retrieveResult); - - $sObject = new stdclass(); - $sObject->fieldsToNull = array("Phone"); - $sObject->Id = $createResponse->id; - - $updateResult = $this->_mySforceConnection->update(array($sObject), 'Contact'); - - $queryResult = $this->_mySforceConnection->retrieve("FirstName, LastName, Phone", "Contact", $createResponse->id); - echo "***** After fieldsToNull\r\n"; - print_r($queryResult); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/GetDeletedTest.php b/unit_test/Lib/Test/Enterprise/GetDeletedTest.php deleted file mode 100644 index 90656e4..0000000 --- a/unit_test/Lib/Test/Enterprise/GetDeletedTest.php +++ /dev/null @@ -1,38 +0,0 @@ -FirstName = 'Smith'; - $sObject->LastName = 'John'; - $sObject->Phone = '510-555-5555'; - $sObject->BirthDate = '1927-01-25'; - - echo "**** Creating the following:\n"; - $createResponse = $this->_mySforceConnection->create(array($sObject), 'Contact'); - print_r($createResponse); - - $id = $createResponse->id; - $deleteResponse = $this->_mySforceConnection->delete(array ($id)); - echo "***** Deleting record *****\n"; - print_r($deleteResponse); - - echo "***** Wait 60 seconds *****\n"; - sleep(60); - - $currentTime = mktime(); - // assume that delete occured within the last 5 mins. - $startTime = $currentTime - (60*10); - $endTime = $currentTime; - - echo "***** Get Deleted Leads *****\n"; - $getDeletedResponse = $this->_mySforceConnection->getDeleted('Contact', $startTime, $endTime); - print_r($getDeletedResponse); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/GetServerTimestampTest.php b/unit_test/Lib/Test/Enterprise/GetServerTimestampTest.php deleted file mode 100644 index b8e608b..0000000 --- a/unit_test/Lib/Test/Enterprise/GetServerTimestampTest.php +++ /dev/null @@ -1,15 +0,0 @@ -_mySforceConnection->getServerTimestamp(); - print_r($response); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/GetUpdatedTest.php b/unit_test/Lib/Test/Enterprise/GetUpdatedTest.php deleted file mode 100644 index e743ca7..0000000 --- a/unit_test/Lib/Test/Enterprise/GetUpdatedTest.php +++ /dev/null @@ -1,40 +0,0 @@ -FirstName = 'Smith'; - $sObject->LastName = 'John'; - $sObject->Phone = '510-555-5555'; - $sObject->BirthDate = '1927-01-25'; - - echo "**** Creating the following:\n"; - $createResponse = $this->_mySforceConnection->create(array($sObject), 'Contact'); - print_r($createResponse); - - $id = $createResponse->id; - echo "***** Updating record *****\n"; - $sObject->Id = $id; - $sObject->Phone = '999-999-9999'; - $updateResponse = $this->_mySforceConnection->update(array ($sObject), "Contact"); - print_r($updateResponse); - - echo "***** Wait 60 seconds *****\n"; - sleep(60); - - $currentTime = mktime(); - // assume that update occured within the last 5 mins. - $startTime = $currentTime-(60*10); - $endTime = $currentTime; - - echo "***** Get Updated Leads *****\n"; - $getUpdateddResponse = $this->_mySforceConnection->getUpdated('Contact', $startTime, $endTime); - print_r($getUpdateddResponse); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/GetUserInfoTest.php b/unit_test/Lib/Test/Enterprise/GetUserInfoTest.php deleted file mode 100644 index 7464f46..0000000 --- a/unit_test/Lib/Test/Enterprise/GetUserInfoTest.php +++ /dev/null @@ -1,15 +0,0 @@ -_mySforceConnection->getUserInfo(); - print_r($response); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/InvalidateSessionsTest.php b/unit_test/Lib/Test/Enterprise/InvalidateSessionsTest.php deleted file mode 100644 index 0c094ce..0000000 --- a/unit_test/Lib/Test/Enterprise/InvalidateSessionsTest.php +++ /dev/null @@ -1,32 +0,0 @@ -_mySforceConnection->getUserInfo(); - print_r($response); - - $mylogout = $this->_mySforceConnection->invalidateSessions(); - print_r($mylogout); - - $response = $this->_mySforceConnection->getUserInfo(); - print_r($response); - } - - /** - * @param string $rs - * @return void - * @throws Lib_Exception_InvalidResponse - */ - protected function _validateSoapFault($rs) - { - if(strpos($rs, 'INVALID_SESSION_ID') === FALSE) { - throw new Lib_Exception_InvalidResponse(); - } - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/LocaleOptionsTest.php b/unit_test/Lib/Test/Enterprise/LocaleOptionsTest.php deleted file mode 100644 index 16ffabb..0000000 --- a/unit_test/Lib/Test/Enterprise/LocaleOptionsTest.php +++ /dev/null @@ -1,25 +0,0 @@ -_mySforceConnection->setLocaleOptions($header); - - print "**** DescribeSObject result: \r\n"; - print_r( - $this->_mySforceConnection->describeSObject('Account') - ); - - print "**** LastRequestHeaders:\r\n"; - print_r($this->_mySforceConnection->getLastRequestHeaders()); - print "**** LastRequest:\r\n"; - print_r($this->_mySforceConnection->getLastRequest()); - - } -} diff --git a/unit_test/Lib/Test/Enterprise/LoginScopeHeaderTest.php b/unit_test/Lib/Test/Enterprise/LoginScopeHeaderTest.php deleted file mode 100644 index 4ccde36..0000000 --- a/unit_test/Lib/Test/Enterprise/LoginScopeHeaderTest.php +++ /dev/null @@ -1,26 +0,0 @@ -_mySforceConnection->getUserInfo(); - print_r($response); - - $this->_mySforceConnection = new SforceEnterpriseClient(); - $mySoapClient = $this->_mySforceConnection->createConnection($this->getWSDL()); -// $header = new LoginScopeHeader($response->organizationId, $this->_portalId); - - $header = new LoginScopeHeader(NULL, $this->_portalId); - $this->_mySforceConnection->setLoginScopeHeader($header); - $mylogin = $this->_mySforceConnection->login($this->_userName, $this->_password); - - print_r($mylogin); - print_r($this->_mySforceConnection->getServerTimestamp()); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/LoginTest.php b/unit_test/Lib/Test/Enterprise/LoginTest.php deleted file mode 100644 index f8c06f2..0000000 --- a/unit_test/Lib/Test/Enterprise/LoginTest.php +++ /dev/null @@ -1,14 +0,0 @@ -_mylogin); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/LogoutTest.php b/unit_test/Lib/Test/Enterprise/LogoutTest.php deleted file mode 100644 index 1fd025c..0000000 --- a/unit_test/Lib/Test/Enterprise/LogoutTest.php +++ /dev/null @@ -1,32 +0,0 @@ -_mySforceConnection->getUserInfo(); - print_r($response); - - $mylogout = $this->_mySforceConnection->logout(); - print_r($mylogout); - - $response = $this->_mySforceConnection->getUserInfo(); - print_r($response); - } - - /** - * @param string $rs - * @return void - * @throws Lib_Exception_InvalidResponse - */ - protected function _validateSoapFault($rs) - { - if(strpos($rs, 'INVALID_SESSION_ID') === FALSE) { - throw new Lib_Exception_InvalidResponse(); - } - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/MergeTest.php b/unit_test/Lib/Test/Enterprise/MergeTest.php deleted file mode 100644 index 089780b..0000000 --- a/unit_test/Lib/Test/Enterprise/MergeTest.php +++ /dev/null @@ -1,45 +0,0 @@ -LastName = 'Tran'; - $sObject->BirthDate = '1927-01-25'; - $sObject->Phone = '510-555-5555'; - - $sObject2 = new stdclass(); - $sObject2->LastName = 'Tran'; - $sObject2->BirthDate = '1957-01-25'; - $sObject2->Phone = '510-486-9969'; - - $sObject3 = new stdclass(); - $sObject3->LastName = 'Tran'; - $sObject3->BirthDate = '1957-01-25'; - - echo "Create 3 contacts.\n"; - - $createResponse = $this->_mySforceConnection->create(array($sObject, $sObject2, $sObject3), 'Contact'); - - print_r($createResponse); - - // Merge $sObject2 into $sObject - $mergeRequest = new stdclass(); - $sObject->Id = $createResponse[0]->id; - $mergeRequest->masterRecord = $sObject; - $mergeRequest->comments = 'My merge comments'; - - echo "Merge second and third contacts into the first contact.\n"; - - $mergeRequest->recordToMergeIds = array($createResponse[1]->id, $createResponse[2]->id); - - $mergeResponse = $this->_mySforceConnection->merge($mergeRequest, 'Contact'); - - print_r($mergeResponse); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/PackageVersionHeaderTest.php b/unit_test/Lib/Test/Enterprise/PackageVersionHeaderTest.php deleted file mode 100644 index d8e4e77..0000000 --- a/unit_test/Lib/Test/Enterprise/PackageVersionHeaderTest.php +++ /dev/null @@ -1,38 +0,0 @@ -majorNumber = 2; - $pv->minorNumber = 1; - $pv->namespace = SforceEnterpriseClient::ENTERPRISE_NAMESPACE; - $header = new PackageVersionHeader( - array($pv) - ); - print_r($header); - $this->_mySforceConnection->setPackageVersionHeader($header); - - $sObject = new stdclass(); - $sObject->FirstName = 'Smith'; - $sObject->LastName = 'John'; - $sObject->Phone = '510-555-5555'; - $sObject->BirthDate = '1927-01-25'; - - $createResponse = $this->_mySforceConnection->create(array($sObject), 'Contact'); - echo "**** Creating the following:\r\n"; - print_r($createResponse); - - print "**** LastRequestHeaders:\r\n"; - print_r($this->_mySforceConnection->getLastRequestHeaders()); - print "**** LastRequest:\r\n"; - print_r($this->_mySforceConnection->getLastRequest()); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/ProcessSubmitRequestTest.php b/unit_test/Lib/Test/Enterprise/ProcessSubmitRequestTest.php deleted file mode 100644 index d5a4639..0000000 --- a/unit_test/Lib/Test/Enterprise/ProcessSubmitRequestTest.php +++ /dev/null @@ -1,26 +0,0 @@ -action = "Approve"; - $processWorkItemRequest->workitemId = $WORKITEM; - $processWorkItemRequest->comments = "Item has been approved."; - - $response = $this->_mySforceConnection->processWorkitemRequest(array ($processWorkItemRequest)); - - print_r($response); - echo $this->_mySforceConnection->getLastRequest(); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/ProcessWorkItemRequestTest.php b/unit_test/Lib/Test/Enterprise/ProcessWorkItemRequestTest.php deleted file mode 100644 index 1b552b8..0000000 --- a/unit_test/Lib/Test/Enterprise/ProcessWorkItemRequestTest.php +++ /dev/null @@ -1,27 +0,0 @@ -action = "Approve"; - $processWorkItemRequest->workitemId = $WORKITEM; - $processWorkItemRequest->comments = "Item has been approved."; - - $response = $this->_mySforceConnection->processWorkitemRequest(array ($processWorkItemRequest)); - - print_r($response); - echo $this->_mySforceConnection->getLastRequest(); - - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/QueryMoreTest.php b/unit_test/Lib/Test/Enterprise/QueryMoreTest.php deleted file mode 100644 index d6ef60d..0000000 --- a/unit_test/Lib/Test/Enterprise/QueryMoreTest.php +++ /dev/null @@ -1,39 +0,0 @@ -_mySforceConnection->setQueryOptions($options); - $response = $this->_mySforceConnection->query($query); - - !$done = false; - echo "Size of records: ".$response ->size."\n"; - - if ($response->size > 0) { - while (!$done) { - foreach ($response->records as $record) { - echo $record->NumberOfEmployees."\r\n"; - } - if ($response->done != true) { - echo "***** Get Next Chunk *****\n"; - try { - $response = $this->_mySforceConnection->queryMore($response->queryLocator); - } catch (Exception $e) { - print_r($this->_mySforceConnection->getLastRequest()); - echo $e->faultstring; - } - } else { - $done = true; - } - } - } - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/QueryOptionsTest.php b/unit_test/Lib/Test/Enterprise/QueryOptionsTest.php deleted file mode 100644 index 5f8cc62..0000000 --- a/unit_test/Lib/Test/Enterprise/QueryOptionsTest.php +++ /dev/null @@ -1,39 +0,0 @@ -_mySforceConnection->setQueryOptions($options); - $response = $this->_mySforceConnection->query($query); - !$done = false; - - echo "Size of records: ".$response ->size."\n"; - - if ($response->size > 0) { - while (!$done) { - foreach ($response->records as $record) { - echo $record->NumberOfEmployees."\r\n"; - } - if ($response->done != true) { - echo "***** Get Next Chunk *****\n"; - try { - $response = $this->_mySforceConnection->queryMore($response->queryLocator); - } catch (Exception $e) { - print_r($this->_mySforceConnection->getLastRequest()); - echo $e->faultstring; - } - } else { - $done = true; - } - } - } - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/QueryTest.php b/unit_test/Lib/Test/Enterprise/QueryTest.php deleted file mode 100644 index 2ee8356..0000000 --- a/unit_test/Lib/Test/Enterprise/QueryTest.php +++ /dev/null @@ -1,19 +0,0 @@ -_mySforceConnection->query($query); - - foreach ($response->records as $record) { - print_r($record); - print "
"; - } - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/ResetPasswordTest.php b/unit_test/Lib/Test/Enterprise/ResetPasswordTest.php deleted file mode 100644 index ec2a051..0000000 --- a/unit_test/Lib/Test/Enterprise/ResetPasswordTest.php +++ /dev/null @@ -1,36 +0,0 @@ -Alias = 'Johny1'; - $newUser->Email = 'test1@example.com'; - $newUser->EmailEncodingKey = 'UTF-8'; - $newUser->LanguageLocaleKey = 'en_US'; - $newUser->LastName = 'Smith1'; - $newUser->LocaleSidKey = 'en_US'; - $newUser->ProfileId = '00et0000000qoV2AAI'; // standart user - $newUser->TimeZoneSidKey = 'America/Los_Angeles'; - $newUser->Username = 'johnysmith1@example.com'; - $newUser->UserPermissionsCallCenterAutoLogin = 0; - $newUser->UserPermissionsMarketingUser = 0; - $newUser->UserPermissionsOfflineUser = 0; - $newUser->CommunityNickname = 'johnyexamplecom1'; - - $createResponse = $this->_mySforceConnection->create(array($newUser), 'User'); - - echo "**** Creating the following:\r\n"; - print_r($createResponse);*/ - - $new_password=$this->_mySforceConnection->resetPassword('005t0000000uonmAAA'); - print_r($new_password); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/RetrieveTest.php b/unit_test/Lib/Test/Enterprise/RetrieveTest.php deleted file mode 100644 index d24a42c..0000000 --- a/unit_test/Lib/Test/Enterprise/RetrieveTest.php +++ /dev/null @@ -1,37 +0,0 @@ -_mySforceConnection->query($query); - - $ids = array(); - - foreach ($response->records as $record) { - print_r($record); - $ids[] = $record->Id; - } - -// $response = $this->_mySforceConnection->retrieve( -// "Id, AccountNumber, Name, Website", -// "Account", -// array("0018000000Ll0Vm", "0018000000Lkzfz") -// ); - - $response = $this->_mySforceConnection->retrieve( - "Id, Name", - "Profile", - $ids - ); - - print "**** Retrive response:\r\n"; - print_r($response); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/SendEmailTest.php b/unit_test/Lib/Test/Enterprise/SendEmailTest.php deleted file mode 100644 index 07a84b9..0000000 --- a/unit_test/Lib/Test/Enterprise/SendEmailTest.php +++ /dev/null @@ -1,32 +0,0 @@ -toAddresses = $EMAILID; - $singleEmail1->plainTextBody = "Hello there"; - $singleEmail1->subject = "First Single Email"; - $singleEmail1->saveAsActivity = true; - $singleEmail1->emailPriority = EMAIL_PRIORITY_LOW; - - $singleEmail2 = new SingleEmailMessage(); - $singleEmail2->toAddresses = $EMAILID; - $singleEmail2->plainTextBody = "Hello there"; - $singleEmail2->subject = "Second Single Email"; - $singleEmail2->saveAsActivity = true; - $singleEmail2->emailPriority = EMAIL_PRIORITY_LOW; - - echo "***** Send Emails *****\n"; - $emailResponse = $this->_mySforceConnection->sendSingleEmail(array ($singleEmail1, $singleEmail2)); - - print_r($emailResponse); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/SendEmailWithAttachTest.php b/unit_test/Lib/Test/Enterprise/SendEmailWithAttachTest.php deleted file mode 100644 index ee8327f..0000000 --- a/unit_test/Lib/Test/Enterprise/SendEmailWithAttachTest.php +++ /dev/null @@ -1,38 +0,0 @@ -toAddresses = $EMAILID; - $singleEmail1->plainTextBody = "Hello there"; - $singleEmail1->subject = "First Single Email"; - $singleEmail1->saveAsActivity = true; - $singleEmail1->emailPriority = EMAIL_PRIORITY_LOW; - // $singleEmail1->inReplyTo = "First Single Email"; - - $filename = $this->_soapDir . '/earth.png'; - $handle = fopen($filename, "rb"); - $contents = fread($handle, filesize($filename)); - fclose($handle); - $attachment = new stdclass(); - $attachment->body = $contents; - $attachment->contentType = 'image/png'; - $attachment->fileName = $filename; - $attachment->inline = TRUE; - - $singleEmail1->setFileAttachments(array($attachment)); - - echo "***** Send Emails *****\n"; - $emailResponse = $this->_mySforceConnection->sendSingleEmail(array($singleEmail1)); - - print_r($emailResponse); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Enterprise/UpsertTest.php b/unit_test/Lib/Test/Enterprise/UpsertTest.php deleted file mode 100644 index 35dc030..0000000 --- a/unit_test/Lib/Test/Enterprise/UpsertTest.php +++ /dev/null @@ -1,53 +0,0 @@ -_mySforceConnection->query($query)); - /**/ - - $objectType = 'Contact'; - - $createFields = array ( - ); - - $sObject = new stdClass(); - $sObject->FirstName = 'George'; - $sObject->LastName = 'Smith'; - $sObject->Phone = '510-555-5555'; - $sObject->BirthDate = '1927-01-25'; - $sObject->Email = 'test@test.com'; - - $createResponse = $this->_mySforceConnection->create(array($sObject), $objectType); - echo "Creating New Contact\r\n"; - print_r($createResponse); - - $sObject->FirstName = 'Bill'; - $sObject->LastName = 'Clinton'; - - $upsertResponse = $this->_mySforceConnection->upsert('Email', array ($sObject), $objectType); - echo "Upserting Contact (existing)\r\n"; - print_r($upsertResponse); - - $sObject->FirstName = 'John'; - $sObject->LastName = 'Smith'; - $sObject->Email = 'testNew@test.com'; - - echo "Upserting Contact (new)\n"; - $upsertResponse = $this->_mySforceConnection->upsert('Email', array ($sObject), $objectType); - print_r($upsertResponse); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/AllowFieldTruncationHeaderTest.php b/unit_test/Lib/Test/Partner/AllowFieldTruncationHeaderTest.php deleted file mode 100644 index 38fe0b3..0000000 --- a/unit_test/Lib/Test/Partner/AllowFieldTruncationHeaderTest.php +++ /dev/null @@ -1,37 +0,0 @@ -_mySforceConnection->setAllowFieldTruncationHeader($header); - - $fields = array ( - 'FirstName' => 'John', - 'LastName' => 'Smith', - 'Phone' => '511111111111111111111111110-555-5555111111111111111111111111111111111111111111111111', - 'BirthDate' => '1950-01-01' - ); - - $sObject = new SObject(); - $sObject->fields = $fields; - $sObject->type = 'Contact'; - - $createResponse = $this->_mySforceConnection->create(array($sObject)); - echo "**** Creating the following:\r\n"; - print_r($createResponse); - - print "**** LastRequestHeaders:\r\n"; - print_r($this->_mySforceConnection->getLastRequestHeaders()); - print "**** LastRequest:\r\n"; - print_r($this->_mySforceConnection->getLastRequest()); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/AssigmentRuleHeaderTest.php b/unit_test/Lib/Test/Partner/AssigmentRuleHeaderTest.php deleted file mode 100644 index e2e3f6f..0000000 --- a/unit_test/Lib/Test/Partner/AssigmentRuleHeaderTest.php +++ /dev/null @@ -1,30 +0,0 @@ -_mySforceConnection->setAssignmentRuleHeader($header); - - $createFields = array ( - 'FirstName' => 'John', - 'LastName' => 'Doe', - 'Email' => 'johndoe@salesforce.com', - 'Company' => 'Some Company', - 'LeadSource' => 'PHPUnit2', - 'City' => 'Tokyo', - 'Country' => 'Japan' - ); - $sObject1 = new SObject(); - $sObject1->fields = $createFields; - $sObject1->type = 'Lead'; - - $createResponse = $this->_mySforceConnection->create(array($sObject1)); - print_r($createResponse); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/CDUTest.php b/unit_test/Lib/Test/Partner/CDUTest.php deleted file mode 100644 index c8151e2..0000000 --- a/unit_test/Lib/Test/Partner/CDUTest.php +++ /dev/null @@ -1,48 +0,0 @@ - 'John', - 'LastName' => 'Smith', - 'Phone' => '510-555-5555', - 'BirthDate' => '1950-01-01' - ); - - $sObject = new SObject(); - $sObject->fields = $fields; - $sObject->type = 'Contact'; - - $sObject2 = new SObject(); - $sObject2->fields = $fields; - $sObject2->type = 'Contact'; - - $createResponse = $this->_mySforceConnection->create(array($sObject, $sObject2)); - - echo "**** Creating the following:\r\n"; - print_r($createResponse); - - $ids = array(); - foreach ($createResponse as $createResult) { - print_r($createResult); - array_push($ids, $createResult->id); - } - echo "**** Now for Delete:\r\n"; - $deleteResult = $this->_mySforceConnection->delete($ids); - print_r($deleteResult); - - echo "**** Now for UnDelete:\r\n"; - $unDeleteResult = $this->_mySforceConnection->undelete($ids); - print_r($unDeleteResult); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/CallOptionsTest.php b/unit_test/Lib/Test/Partner/CallOptionsTest.php deleted file mode 100644 index 464a3ef..0000000 --- a/unit_test/Lib/Test/Partner/CallOptionsTest.php +++ /dev/null @@ -1,24 +0,0 @@ -_mySforceConnection->setCallOptions($callOptionsHeader); - $loginResult = $this->_mySforceConnection->login($this->_userName, $this->_password); - - print_r($loginResult); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/ConvertLeadTest.php b/unit_test/Lib/Test/Partner/ConvertLeadTest.php deleted file mode 100644 index d09e3e5..0000000 --- a/unit_test/Lib/Test/Partner/ConvertLeadTest.php +++ /dev/null @@ -1,44 +0,0 @@ - 'test company', - 'FirstName' => 'John', - 'LastName' => 'Smith' - ); - - $newLead->fields = $fields; - $newLead->type = 'Lead'; - - $createResponse = - $this->_mySforceConnection->create( - array($newLead) - ); - - echo "**** Created lead:\r\n"; - print_r($createResponse); - - $leadConvert = new stdClass; - $leadConvert->convertedStatus='Closed - Converted'; - $leadConvert->doNotCreateOpportunity='false'; -// $leadConvert->leadId=$convertLEADID; - $leadConvert->leadId=$createResponse->id; - $leadConvert->overwriteLeadSource='true'; - $leadConvert->sendNotificationEmail='true'; - - $leadConvertArray = array($leadConvert); - $leadConvertResponse = $this->_mySforceConnection->convertLead($leadConvertArray); - - print_r($leadConvertResponse); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/DescribeDataCategoryGroupStructuresTest.php b/unit_test/Lib/Test/Partner/DescribeDataCategoryGroupStructuresTest.php deleted file mode 100644 index 04d95a0..0000000 --- a/unit_test/Lib/Test/Partner/DescribeDataCategoryGroupStructuresTest.php +++ /dev/null @@ -1,51 +0,0 @@ -sobject = new SoapVar('Question', XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); - $pair->dataCategoryGroupName = new SoapVar('Products', XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); - - $pairs[] = new SoapVar($pair, SOAP_ENC_OBJECT, 'DataCategoryGroupSobjectTypePair', SforcePartnerClient::PARTNER_NAMESPACE); - $response = $this->_mySforceConnection->describeDataCategoryGroupStructures($pairs, true); - - echo "***** ".$this->getTestName()." Get information only about top categories *****\n"; - print_r($response); - - /* - Get info about two categories - */ - $pairs = array(); - - // First category - $pair = new stdClass; - $pair->sobject = new SoapVar('Question', XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); - $pair->dataCategoryGroupName = new SoapVar('Products', XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); - - // Second category - $pair = new stdClass; - $pair->sobject = new SoapVar('Question', XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); - $pair->dataCategoryGroupName = new SoapVar('Products', XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); - - $pairs[] = new SoapVar($pair, SOAP_ENC_OBJECT, 'DataCategoryGroupSobjectTypePair', SforcePartnerClient::PARTNER_NAMESPACE); - $response = $this->_mySforceConnection->describeDataCategoryGroupStructures($pairs, false); - - echo "\n\n***** ".$this->getTestName()." Get information about two categories *****\n"; - print_r($response); - } -} diff --git a/unit_test/Lib/Test/Partner/DescribeDataCategoryGroupsTest.php b/unit_test/Lib/Test/Partner/DescribeDataCategoryGroupsTest.php deleted file mode 100644 index d5c5f9d..0000000 --- a/unit_test/Lib/Test/Partner/DescribeDataCategoryGroupsTest.php +++ /dev/null @@ -1,22 +0,0 @@ -_mySforceConnection->describeDataCategoryGroups('Question'); - echo "***** ".$this->getTestName()." # Question *****\n"; - print_r($response); - } -} diff --git a/unit_test/Lib/Test/Partner/DescribeGlobalTest.php b/unit_test/Lib/Test/Partner/DescribeGlobalTest.php deleted file mode 100644 index 192065c..0000000 --- a/unit_test/Lib/Test/Partner/DescribeGlobalTest.php +++ /dev/null @@ -1,13 +0,0 @@ -_mySforceConnection->describeGlobal()); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/DescribeLayoutTest.php b/unit_test/Lib/Test/Partner/DescribeLayoutTest.php deleted file mode 100644 index 43259df..0000000 --- a/unit_test/Lib/Test/Partner/DescribeLayoutTest.php +++ /dev/null @@ -1,13 +0,0 @@ -_mySforceConnection->describeLayout('Task')); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/DescribeSObjectTest.php b/unit_test/Lib/Test/Partner/DescribeSObjectTest.php deleted file mode 100644 index 796e9f4..0000000 --- a/unit_test/Lib/Test/Partner/DescribeSObjectTest.php +++ /dev/null @@ -1,13 +0,0 @@ -_mySforceConnection->describeSObject('Contact')); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/EmailHeaderTest.php b/unit_test/Lib/Test/Partner/EmailHeaderTest.php deleted file mode 100644 index 07c327e..0000000 --- a/unit_test/Lib/Test/Partner/EmailHeaderTest.php +++ /dev/null @@ -1,34 +0,0 @@ -_mySforceConnection->setEmailHeader($header); - - $createFields = array ( - 'FirstName' => 'Nick', - 'LastName' => 'Tran', - 'Email' => $EMAILIDFORHEADER, - 'Company' => 'DELETE_ME Company', - 'LeadSource' => 'PHPUnit', - 'City' => 'Tokyo', - 'Country' => 'Japan' - ); - $sObject1 = new SObject(); - $sObject1->fields = $createFields; - $sObject1->type = 'Lead'; - - $createResponse = $this->_mySforceConnection->create(array($sObject1)); - - print_r($createResponse); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/EmptyRecycleBinTest.php b/unit_test/Lib/Test/Partner/EmptyRecycleBinTest.php deleted file mode 100644 index bd07dc8..0000000 --- a/unit_test/Lib/Test/Partner/EmptyRecycleBinTest.php +++ /dev/null @@ -1,30 +0,0 @@ - 'Electrical' - ); - - $sObject = new SObject(); - $sObject->fields = $fields; - $sObject->type = 'Case'; - - $response = $this->_mySforceConnection->create(array ($sObject)); - - echo "Creating Case:\n"; - print_r($response); - - $id = $response->id; - echo "Deleting Case:\n"; - print_r($this->_mySforceConnection->delete(array($id))); - echo "Emptying Recycle Bin:\n"; - print_r($this->_mySforceConnection->emptyRecycleBin(array($id))); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/FieldsToNullTest.php b/unit_test/Lib/Test/Partner/FieldsToNullTest.php deleted file mode 100644 index d3d208d..0000000 --- a/unit_test/Lib/Test/Partner/FieldsToNullTest.php +++ /dev/null @@ -1,69 +0,0 @@ -_mySforceConnection->query($query); -// $queryResult = new QueryResult($queryResponse); -// echo "***** Initial query response *****\n"; -// print_r($queryResult); -// -// $sObject = new SObject(); -// $sObject->fieldsToNull = array ( -// "Title", "FirstName" -// ); -// $sObject->type = 'Lead'; -// $sObject->Id = $leadid; -// $updateResponse = $this->_mySforceConnection->update(array ($sObject)); -// -// echo "***** Updated object with fields to null *****\n"; -// print_r($updateResponse); -// -// $queryResponse = $this->_mySforceConnection->query($query); -// $queryResult = new QueryResult($queryResponse); -// echo "***** Final query response *****\n"; -// print_r($queryResult); - $sObject = new SObject(); - - $fields = array( - 'FirstName' => 'Mary', - 'LastName' => 'Jane', - 'Phone' => '510-555-5555' - ); - - $sObject->fields = $fields; - $sObject->type = 'Contact'; - - $createResponse = $this->_mySforceConnection->create(array($sObject)); - - $retrieveResult= $this->_mySforceConnection->retrieve("FirstName, LastName, Phone", "Contact", $createResponse->id); - echo "***** Before fieldsToNull\r\n"; - print_r($retrieveResult); - - $sObject = new SObject(); - $fields = array( - 'fieldsToNull' => 'Phone', - 'Id' => $createResponse->id - ); - $sObject->fields = $fields; - $sObject->type = 'Contact'; - - $updateResult = $this->_mySforceConnection->update(array($sObject)); - - $queryResult = $this->_mySforceConnection->retrieve("FirstName, LastName, Phone", "Contact", $createResponse->id); - echo "***** After fieldsToNull\r\n"; - print_r($queryResult); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/GetDeletedTest.php b/unit_test/Lib/Test/Partner/GetDeletedTest.php deleted file mode 100644 index 760a4b8..0000000 --- a/unit_test/Lib/Test/Partner/GetDeletedTest.php +++ /dev/null @@ -1,44 +0,0 @@ -type = 'Lead'; - - $fields = array ( - 'Company' => 'XYZ Company', - 'FirstName' => 'John', - 'LastName' => 'Smith', - 'LeadSource' => 'Other', - 'NumberOfEmployees' => 1, - 'Status' => 'Open' - ); - $obj1->fields = $fields; - $createResponse = $this->_mySforceConnection->create(array ($obj1)); - - echo "***** Creating Lead *****\n"; - print_r($createResponse); - - $id = $createResponse->id; - $deleteResponse = $this->_mySforceConnection->delete(array ($id)); - echo "***** Deleting Lead *****\n"; - print_r($deleteResponse); - - echo "***** Wait 60 seconds *****\n"; - sleep(60); - - $currentTime = mktime(); - // assume that delete occured within the last 5 mins. - $startTime = $currentTime - (60*10); - $endTime = $currentTime; - - echo "***** Get Deleted Leads *****\n"; - $getDeletedResponse = $this->_mySforceConnection->getDeleted('Lead', $startTime, $endTime); - print_r($getDeletedResponse); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/GetServerTimestampTest.php b/unit_test/Lib/Test/Partner/GetServerTimestampTest.php deleted file mode 100644 index 1c14038..0000000 --- a/unit_test/Lib/Test/Partner/GetServerTimestampTest.php +++ /dev/null @@ -1,15 +0,0 @@ -_mySforceConnection->getServerTimestamp(); - print_r($response); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/GetUpdatedTest.php b/unit_test/Lib/Test/Partner/GetUpdatedTest.php deleted file mode 100644 index c7a5d92..0000000 --- a/unit_test/Lib/Test/Partner/GetUpdatedTest.php +++ /dev/null @@ -1,46 +0,0 @@ -type = 'Lead'; - - $fields = array ( - 'Company' => 'XYZ Company', - 'FirstName' => 'John', - 'LastName' => 'Smith', - 'LeadSource' => 'Other', - 'NumberOfEmployees' => 1, - 'Status' => 'Open' - ); - $obj1->fields = $fields; - $createResponse = $this->_mySforceConnection->create(array($obj1)); - echo "***** Creating Lead *****\n"; - print_r($createResponse); - - $obj1->Id = $createResponse->id; - $obj1->fields['LastName'] = 'Doe'; - - $updateResponse = $this->_mySforceConnection->update(array($obj1)); - echo "***** Updating Lead *****\n"; - print_r($updateResponse); - - echo "***** Wait 60 seconds *****\n"; - sleep(60); - - $currentTime = mktime(); - // assume that update occured within the last 5 mins. - $startTime = $currentTime-(60*10); - $endTime = $currentTime; - - echo "***** Get Updated Leads from the last 5 minutes *****\n"; - $getUpdatedResponse = $this->_mySforceConnection->getUpdated('Lead', $startTime, $endTime); - print_r($getUpdatedResponse); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/GetUserInfoTest.php b/unit_test/Lib/Test/Partner/GetUserInfoTest.php deleted file mode 100644 index dfab2f6..0000000 --- a/unit_test/Lib/Test/Partner/GetUserInfoTest.php +++ /dev/null @@ -1,15 +0,0 @@ -_mySforceConnection->getUserInfo(); - echo "***** Get User Info*****\n"; - print_r($response); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/InvalidateSessionsTest.php b/unit_test/Lib/Test/Partner/InvalidateSessionsTest.php deleted file mode 100644 index e1813ff..0000000 --- a/unit_test/Lib/Test/Partner/InvalidateSessionsTest.php +++ /dev/null @@ -1,36 +0,0 @@ -_mySforceConnection->getUserInfo(); - print "**** User info:\r\n"; - print_r($response); - - $mylogout = $this->_mySforceConnection->invalidateSessions(); - print "**** Invalidate sessions:\r\n"; - print_r($mylogout); - - $response = $this->_mySforceConnection->getUserInfo(); - print_r($response); - print "**** User info:\r\n"; - print_r($response); - } - - /** - * @param string $rs - * @return void - * @throws Lib_Exception_InvalidResponse - */ - protected function _validateSoapFault($rs) - { - if(strpos($rs, 'INVALID_SESSION_ID') === FALSE) { - throw new Lib_Exception_InvalidResponse(); - } - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/LocaleOptionsTest.php b/unit_test/Lib/Test/Partner/LocaleOptionsTest.php deleted file mode 100644 index f82fb38..0000000 --- a/unit_test/Lib/Test/Partner/LocaleOptionsTest.php +++ /dev/null @@ -1,25 +0,0 @@ -_mySforceConnection->setLocaleOptions($header); - - print "**** DescribeSObject result: \r\n"; - print_r( - $this->_mySforceConnection->describeSObject('Account') - ); - - print "**** LastRequestHeaders:\r\n"; - print_r($this->_mySforceConnection->getLastRequestHeaders()); - print "**** LastRequest:\r\n"; - print_r($this->_mySforceConnection->getLastRequest()); - - } -} diff --git a/unit_test/Lib/Test/Partner/LoginScopeHeaderTest.php b/unit_test/Lib/Test/Partner/LoginScopeHeaderTest.php deleted file mode 100644 index 90fb0b6..0000000 --- a/unit_test/Lib/Test/Partner/LoginScopeHeaderTest.php +++ /dev/null @@ -1,33 +0,0 @@ -_mySforceConnection->getUserInfo(); - print_r($response); - - $this->_mySforceConnection->logout(); - - $this->_mySforceConnection = new SforcePartnerClient(); - $this->_mySforceConnection->createConnection($this->getWSDL()); - - // this value should be taken from salesforce developer site. - -// $header = new LoginScopeHeader($response->organizationId, $this->_portalId); - $header = new LoginScopeHeader(NULL, $this->_portalId); - - $this->_mySforceConnection->setLoginScopeHeader($header); - $mylogin = $this->_mySforceConnection->login($this->_userName, $this->_password); - print_r($mylogin); - print_r($this->_mySforceConnection->getServerTimestamp()); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/LoginTest.php b/unit_test/Lib/Test/Partner/LoginTest.php deleted file mode 100644 index a86d3f2..0000000 --- a/unit_test/Lib/Test/Partner/LoginTest.php +++ /dev/null @@ -1,14 +0,0 @@ -_mylogin); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/LogoutTest.php b/unit_test/Lib/Test/Partner/LogoutTest.php deleted file mode 100644 index fc1eac3..0000000 --- a/unit_test/Lib/Test/Partner/LogoutTest.php +++ /dev/null @@ -1,32 +0,0 @@ -_mySforceConnection->getUserInfo(); - print_r($response); - - $mylogout = $this->_mySforceConnection->logout(); - print_r($mylogout); - - $response = $this->_mySforceConnection->getUserInfo(); - print_r($response); - } - - /** - * @param string $rs - * @return void - * @throws Lib_Exception_InvalidResponse - */ - protected function _validateSoapFault($rs) - { - if(strpos($rs, 'INVALID_SESSION_ID') === FALSE) { - throw new Lib_Exception_InvalidResponse(); - } - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/MergeTest.php b/unit_test/Lib/Test/Partner/MergeTest.php deleted file mode 100644 index 5086658..0000000 --- a/unit_test/Lib/Test/Partner/MergeTest.php +++ /dev/null @@ -1,48 +0,0 @@ -type = 'Contact'; - $fields = array ( - 'LastName'=>'Tran', - 'BirthDate'=> '1927-01-25', - 'Phone' => '510-555-5555', - ); - $sObject->fields = $fields; - - $sObject2 = new SObject(); - $sObject2->type = 'Contact'; - $fields['LastName'] = 'Smith'; - $fields['FirstName'] = 'Nick'; - $sObject2->fields = $fields; - - $sObject3 = new SObject(); - $sObject3->type = 'Contact'; - $fields['Phone'] = '555-555-5555'; - $sObject3->fields = $fields; - - echo "Create 3 contacts.\n"; - $createResponse = $this->_mySforceConnection->create(array($sObject, $sObject2, $sObject3),'Lead'); - - print_r($createResponse); - - // Merge $sObject2 into $sObject - $mergeRequest = new stdclass(); - $sObject->Id = $createResponse[0]->id; - $mergeRequest->masterRecord = $sObject; - $mergeRequest->comments = 'My merge comments'; - $mergeRequest->recordToMergeIds = array($createResponse[1]->id, $createResponse[2]->id); - - echo "Merge second and third contacts into the first contact.\n"; - $mergeResponse = $this->_mySforceConnection->merge($mergeRequest); - - print_r($mergeResponse); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/MetaDataCheckStatusTest.php b/unit_test/Lib/Test/Partner/MetaDataCheckStatusTest.php deleted file mode 100644 index 9b31ec4..0000000 --- a/unit_test/Lib/Test/Partner/MetaDataCheckStatusTest.php +++ /dev/null @@ -1,43 +0,0 @@ -_getMetaDataWSDL(), $this->_mylogin, $this->_mySforceConnection); - - $customObject = new SforceCustomObject(); - $customObject->fullName = 'CustomObjFromPHP__c'; - $customObject->deploymentStatus = DEPLOYMENT_STATUS_DEPLOYED; - - $customObject->setDescription("A description"); - $customObject->setEnableActivities(true); - $customObject->setEnableDivisions(false); - $customObject->setEnableHistory(true); - $customObject->setEnableReports(true); - $customObject->setHousehold(false); - $customObject->setLabel("My Custom Obj from PHP"); - $customField = new SforceCustomField(); - $customField->setFullName('MyCustomFieldb__c'); - $customField->setDescription('Description of New Field'); - $customField->setLabel('My Custom Field Label'); - $customField->setType('Text'); - - $customObject->nameField = $customField; - - $customObject->pluralLabel = 'My Custom Objs from PHP'; - $customObject->sharingModel = SHARING_MODEL_READWRITE; - - print "**** Create:\r\n"; - $createResult = $myMetadataConnection->create($customObject); - print_r($createResult); - - $ids = array($createResult->result->id); - - print_r($myMetadataConnection->checkStatus($ids)); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/MetaDataCreateTest.php b/unit_test/Lib/Test/Partner/MetaDataCreateTest.php deleted file mode 100644 index 88f0362..0000000 --- a/unit_test/Lib/Test/Partner/MetaDataCreateTest.php +++ /dev/null @@ -1,49 +0,0 @@ -_getMetaDataWSDL(), $this->_mylogin, $this->_mySforceConnection); - - $customObject = new SforceCustomObject(); - $customObject->fullName = 'CustomObjFromPHP__c'; - $customObject->deploymentStatus = DEPLOYMENT_STATUS_DEPLOYED; - - $customObject->setDescription("A description"); - $customObject->setEnableActivities(true); - $customObject->setEnableDivisions(false); - $customObject->setEnableHistory(true); - $customObject->setEnableReports(true); - $customObject->setHousehold(false); - $customObject->setLabel("My Custom Obj from PHP"); - $customField = new SforceCustomField(); - $customField->setFullName('MyCustomFieldb__c'); - $customField->setDescription('Description of New Field'); - $customField->setLabel('My Custom Field Label'); - $customField->setType('Text'); - - $customObject->nameField = $customField; - - $customObject->pluralLabel = 'My Custom Objs from PHP'; - $customObject->sharingModel = SHARING_MODEL_READWRITE; - - print_r($myMetadataConnection->create($customObject)); - } - - /** - * @param string $rs - * @return void - * @throws Lib_Exception_InvalidResponse - */ - protected function _validate($rs) - { - if(strpos($rs, 'Error') !== FALSE) { - throw new Lib_Exception_InvalidResponse(); - } - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/MetaDataDeleteTest.php b/unit_test/Lib/Test/Partner/MetaDataDeleteTest.php deleted file mode 100644 index f6b7c42..0000000 --- a/unit_test/Lib/Test/Partner/MetaDataDeleteTest.php +++ /dev/null @@ -1,18 +0,0 @@ -_getMetaDataWSDL(), $this->_mylogin, $this->_mySforceConnection); - - $customObject = new SforceCustomObject(); - $customObject->fullName = 'MyCustomObjFromPHP__c'; - - print_r($myMetadataConnection->delete($customObject)); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/PackageVersionHeaderTest.php b/unit_test/Lib/Test/Partner/PackageVersionHeaderTest.php deleted file mode 100644 index 7c4b308..0000000 --- a/unit_test/Lib/Test/Partner/PackageVersionHeaderTest.php +++ /dev/null @@ -1,43 +0,0 @@ -majorNumber = 2; - $pv->minorNumber = 1; - $pv->namespace = SforcePartnerClient::PARTNER_NAMESPACE; - $header = new PackageVersionHeader( - array($pv) - ); - print_r($header); - $this->_mySforceConnection->setPackageVersionHeader($header); - - $fields = array ( - 'FirstName' => 'John', - 'LastName' => 'Smith', - 'Phone' => '510-555-5555', - 'BirthDate' => '1950-01-01' - ); - - $sObject = new SObject(); - $sObject->fields = $fields; - $sObject->type = 'Contact'; - - $createResponse = $this->_mySforceConnection->create(array($sObject)); - echo "**** Creating the following:\r\n"; - print_r($createResponse); - - print "**** LastRequestHeaders:\r\n"; - print_r($this->_mySforceConnection->getLastRequestHeaders()); - print "**** LastRequest:\r\n"; - print_r($this->_mySforceConnection->getLastRequest()); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/ProcessSubmitRequestTest.php b/unit_test/Lib/Test/Partner/ProcessSubmitRequestTest.php deleted file mode 100644 index 97a4fcc..0000000 --- a/unit_test/Lib/Test/Partner/ProcessSubmitRequestTest.php +++ /dev/null @@ -1,54 +0,0 @@ - 'John', - 'LastName' => 'Smith', - 'Phone' => '510-555-5555', - 'BirthDate' => '1950-01-01' - ); - - $sObject = new SObject(); - $sObject->fields = $fields; - $sObject->type = 'Contact'; - - $sObject2 = new SObject(); - $sObject2->fields = $fields; - $sObject2->type = 'Contact'; - - $createResponse = $this->_mySforceConnection->create(array($sObject, $sObject2)); - - echo "**** Creating the following:\r\n"; - print_r($createResponse); - - $userInfoResponse = $this->_mySforceConnection->getUserInfo(); - echo "***** Get User Info*****\n"; - print_r($userInfoResponse); - - $processSubmitRequest1 = new ProcessSubmitRequest(); - $processSubmitRequest1->objectId = $createResponse['0']->id; - $processSubmitRequest1->comments = "Please approve this request."; - $processSubmitRequest1->nextApproverIds = array($userInfoResponse->userId); - - $processSubmitRequest2 = new ProcessSubmitRequest(); - $processSubmitRequest2->objectId = $createResponse['1']->id; - $processSubmitRequest2->comments = "Please approve this request."; - $processSubmitRequest2->nextApproverIds = array($userInfoResponse->userId); - - $processSubmitRequestResponse = $this->_mySforceConnection->processSubmitRequest( - array($processSubmitRequest1, $processSubmitRequest2) - ); - print_r($processSubmitRequestResponse); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/ProcessWorkItemRequestTest.php b/unit_test/Lib/Test/Partner/ProcessWorkItemRequestTest.php deleted file mode 100644 index a9576cf..0000000 --- a/unit_test/Lib/Test/Partner/ProcessWorkItemRequestTest.php +++ /dev/null @@ -1,27 +0,0 @@ -action = 'Approve'; - $processWorkItem1->workitemId = $WORKITEM; - $processWorkItem1->comments = "Request approved"; - - $processWorkItemRequestResponse = - $this->_mySforceConnection->processWorkitemRequest(array($processWorkItem1)); - - print_r($processWorkItemRequestResponse); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/QueryMoreTest.php b/unit_test/Lib/Test/Partner/QueryMoreTest.php deleted file mode 100644 index c8dba57..0000000 --- a/unit_test/Lib/Test/Partner/QueryMoreTest.php +++ /dev/null @@ -1,46 +0,0 @@ -_mySforceConnection->setQueryOptions($options); - $response = $this->_mySforceConnection->query($query); - - print_r($response); - - $queryResult = new QueryResult($response); - -// print_r($queryResult); - - !$done = false; - - echo "Size of records: ".$queryResult->size; - - if ($queryResult->size > 0) { - while (!$done) { - foreach ($queryResult->records as $record) { - echo 'NumberOfEmployees=' .$record->fields->NumberOfEmployees."\r\n"; - } - if ($queryResult->done != true) { - echo "***** Get Next Chunk *****\n"; - try { - $response = $this->_mySforceConnection->queryMore($queryResult->queryLocator); - $queryResult = new QueryResult($response); - } catch (Exception $e) { - print_r($this->_mySforceConnection->getLastRequest()); - echo $e->faultstring; - } - } else { - $done = true; - } - } - } - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/QueryOptionsTest.php b/unit_test/Lib/Test/Partner/QueryOptionsTest.php deleted file mode 100644 index a5b1467..0000000 --- a/unit_test/Lib/Test/Partner/QueryOptionsTest.php +++ /dev/null @@ -1,41 +0,0 @@ -_mySforceConnection->setQueryOptions($options); - $response = $this->_mySforceConnection->query($query); - $queryResult = new QueryResult($response); - !$done = false; - - echo "Size of records: ".$queryResult->size; - - if ($queryResult->size > 0) { - while (!$done) { - foreach ($queryResult->records as $record) { - echo $record->fields->NumberOfEmployees."\r\n"; - } - if ($queryResult->done != true) { - echo "***** Get Next Chunk *****\n"; - try { - $response = $this->_mySforceConnection->queryMore($queryResult->queryLocator); - $queryResult = new QueryResult($response); - } catch (Exception $e) { - print_r($this->_mySforceConnection->getLastRequest()); - echo $e->faultstring; - } - } else { - $done = true; - } - } - } - - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/QueryTest.php b/unit_test/Lib/Test/Partner/QueryTest.php deleted file mode 100644 index 1e9871c..0000000 --- a/unit_test/Lib/Test/Partner/QueryTest.php +++ /dev/null @@ -1,21 +0,0 @@ -_mySforceConnection->query($query); - $queryResult = new QueryResult($response); - - foreach ($queryResult->records as $record) { - print_r($record); - } - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/ResetPasswordTest.php b/unit_test/Lib/Test/Partner/ResetPasswordTest.php deleted file mode 100644 index e082b55..0000000 --- a/unit_test/Lib/Test/Partner/ResetPasswordTest.php +++ /dev/null @@ -1,44 +0,0 @@ - 'Johny', - 'Email' => 'test@example.com', - 'EmailEncodingKey' => 'UTF-8', - 'LanguageLocaleKey' => 'en_US', - 'LastName' => 'Smith', - 'LocaleSidKey' => 'en_US', - 'ProfileId' => '00et0000000qoV2AAI', // standart user - 'TimeZoneSidKey' => 'America/Los_Angeles', - 'Username' => 'johnysmith@example.com', - 'UserPermissionsCallCenterAutoLogin' => 0, - 'UserPermissionsMarketingUser' => 0, - 'UserPermissionsOfflineUser' => 0, -// 'UserPermissionsWirelessUser' => 0, - 'CommunityNickname' => 'johnyexamplecom' - ); - - $newUser = new SObject(); - $newUser->fields = $values; - $newUser->type = 'User'; - - $createResponse = $this->_mySforceConnection->create(array($newUser)); - - echo "**** Creating the following:\r\n"; - print_r($createResponse); -*/ - - $new_password=$this->_mySforceConnection->resetPassword('005t0000000uonmAAA'); - print_r($new_password); - } - -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/RetrieveTest.php b/unit_test/Lib/Test/Partner/RetrieveTest.php deleted file mode 100644 index 039f9df..0000000 --- a/unit_test/Lib/Test/Partner/RetrieveTest.php +++ /dev/null @@ -1,37 +0,0 @@ -_mySforceConnection->query($query); - - $ids = array(); - - foreach ($response->records as $record) { - print_r($record); - $ids[] = $record->Id; - } - -// $response = $this->_mySforceConnection->retrieve( -// "Id, AccountNumber, Name, Website", -// "Account", -// array("0018000000Ll0Vm", "0018000000Lkzfz") -// ); - - $response = $this->_mySforceConnection->retrieve( - 'Id, Name', - 'Profile', - $ids - ); - - print "**** Retrive response:\r\n"; - print_r($response); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/SendEmailTest.php b/unit_test/Lib/Test/Partner/SendEmailTest.php deleted file mode 100644 index e9d340e..0000000 --- a/unit_test/Lib/Test/Partner/SendEmailTest.php +++ /dev/null @@ -1,33 +0,0 @@ -toAddresses = $EMAILID; - $singleEmail1->plainTextBody = "Hello there"; - $singleEmail1->subject = "First Single Email"; - $singleEmail1->saveAsActivity = true; - $singleEmail1->emailPriority = EMAIL_PRIORITY_LOW; - - $singleEmail2 = new SingleEmailMessage(); - $singleEmail2->toAddresses = $EMAILID; - $singleEmail2->plainTextBody = "Hello there"; - $singleEmail2->subject = "Second Single Email"; - $singleEmail2->saveAsActivity = true; - $singleEmail2->emailPriority = EMAIL_PRIORITY_LOW; - - echo "***** Send Emails *****\n"; - $emailResponse = $this->_mySforceConnection->sendSingleEmail(array ($singleEmail1, $singleEmail2)); - - print_r($emailResponse); - - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/SendEmailWithAttachTest.php b/unit_test/Lib/Test/Partner/SendEmailWithAttachTest.php deleted file mode 100644 index fec04a5..0000000 --- a/unit_test/Lib/Test/Partner/SendEmailWithAttachTest.php +++ /dev/null @@ -1,38 +0,0 @@ -toAddresses = $EMAILID; - $singleEmail1->plainTextBody = "Hello there"; - $singleEmail1->subject = "First Single Email"; - $singleEmail1->saveAsActivity = true; - $singleEmail1->emailPriority = EMAIL_PRIORITY_LOW; - // $singleEmail1->inReplyTo = "First Single Email"; - - $filename = $this->_soapDir . '/earth.png'; - $handle = fopen($filename, "rb"); - $contents = fread($handle, filesize($filename)); - fclose($handle); - $attachment = new stdclass(); - $attachment->body = $contents; - $attachment->contentType = 'image/png'; - $attachment->fileName = $filename; - $attachment->inline = TRUE; - - $singleEmail1->setFileAttachments(array($attachment)); - - echo "***** Send Emails *****\n"; - $emailResponse = $this->_mySforceConnection->sendSingleEmail(array($singleEmail1)); - - print_r($emailResponse); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/UpdateTest.php b/unit_test/Lib/Test/Partner/UpdateTest.php deleted file mode 100644 index 0e6ced8..0000000 --- a/unit_test/Lib/Test/Partner/UpdateTest.php +++ /dev/null @@ -1,43 +0,0 @@ - 'testupdate', - 'City' => 'testupdateCity', - 'Country' => 'US' - ); - $sObject1 = new SObject(); - $sObject1->fields = $fieldsToUpdate; - $sObject1->type = 'Lead'; - $sObject1->Id = $UPDATEOBJECTID1; - - $fieldsToUpdate = array ( - 'FirstName' => 'testupdate', - 'City' => 'testupdate', - 'State' => 'testupdate', - 'Country' => 'US' - ); - $sObject2 = new SObject(); - $sObject2->fields = $fieldsToUpdate; - $sObject2->type = 'Lead'; - $sObject2->Id = $UPDATEOBJECTID2; - $sObject2->fieldsToNull = array('Fax', 'Email'); - - $response = $this->_mySforceConnection->update(array($sObject1, $sObject2)); - - print_r($response); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/Partner/UpsertTest.php b/unit_test/Lib/Test/Partner/UpsertTest.php deleted file mode 100644 index 9125ccb..0000000 --- a/unit_test/Lib/Test/Partner/UpsertTest.php +++ /dev/null @@ -1,46 +0,0 @@ - 'George', - 'LastName' => 'Smith', - 'Phone' => '510-555-5555', - 'BirthDate' => '1927-01-25', - 'Email' => 'test01@test.com' - ); - - $sObject = new SObject(); - $sObject->fields = $createFields; - $sObject->type = 'Contact'; - - $createResponse = $this->_mySforceConnection->create(array($sObject)); - echo "Creating New Contact\r\n"; - print_r($createResponse); - - $sObject->fields['FirstName'] = 'Bill'; - $sObject->fields['LastName'] = 'Clinton'; - $sObject->fields['Email'] = 'test01@test.com'; - - $upsertResponse = $this->_mySforceConnection->upsert('Email', array($sObject)); - echo "Upserting Contact (existing)\r\n"; - print_r($upsertResponse); - - $sObject->fields['FirstName'] = 'John'; - $sObject->fields['LastName'] = 'Smith'; - $sObject->fields['Email'] = 'test02@test.com'; - - echo "Upserting Contact (new)\n"; - $upsertResponse = $this->_mySforceConnection->upsert('Email', array ($sObject)); - print_r($upsertResponse); - } -} \ No newline at end of file diff --git a/unit_test/Lib/Test/TestAbstract.php b/unit_test/Lib/Test/TestAbstract.php deleted file mode 100644 index e5642f4..0000000 --- a/unit_test/Lib/Test/TestAbstract.php +++ /dev/null @@ -1,157 +0,0 @@ -_soapDir = $soapDir; - $this->_logger = new Lib_Utils_FileLogger( - $this->getLogName(), - 'w'); - - $this->_phpVersion = phpversion(); - header('Content-Type: text/plain'); - } - - /** - * @param Lib_Utils_FileLogger $metaInfoLogger - * @return void - */ - public function run(Lib_Utils_FileLogger $metaInfoLogger) - { - try { - ob_start(); - $start_time = microtime(TRUE); - - try { - $this->_run(); - } catch (SoapFault $fault) { - $end_time = microtime(TRUE); - // some time SoapFaul is sign of positive test result - $resultStr = ob_get_clean(); - $this->_logger->write($resultStr); - print '
' . $resultStr . '
'; - - $this->_logger->write($fault->faultstring); - print '
SoapFault:
'; - print '
' . $fault->faultstring . '
'; - - try { -// $this->_validateSoapFault($resultStr . $fault->faultstring); - $this->_validateSoapFault($fault->faultstring); - $metaInfoLogger->write(basename($this->getLogName()) . ' - test is ok!'); - } catch (Lib_Exception_InvalidResponse $e) { - $metaInfoLogger->write(basename($this->getLogName()) . ' - test failed!'); - } - - return; - } - - $end_time = microtime(TRUE); - $resultStr = ob_get_clean(); - $this->_logger->write($resultStr); - print $resultStr; - - try { - $this->_validate($resultStr); - $metaInfoLogger->write(basename($this->getLogName()) . ' - test is ok!'); - } catch (Lib_Exception_InvalidResponse $e) { - $metaInfoLogger->write(basename($this->getLogName()) . ' - test failed!'); - } - - $metaInfoLogger->write('Total time: '. ($end_time - $start_time)); - $metaInfoLogger->write('Max allocated memory: '. memory_get_peak_usage(TRUE)); - } catch (Exception $e) { - $this->_logger->write($this->_mySforceConnection->getLastRequest()); - ob_start(); - print_r($e); - $eStr = ob_get_clean(); - $this->_logger->write($eStr); - - print $this->_mySforceConnection->getLastRequest(); - echo "\n\n\n"; - print $eStr; - - $metaInfoLogger->write('Test failed!'); - } - } - - public function getLogName() - { - return $this->_soapDir . '/results/' . $this->getTestName() . '_' . $this->getWSDLName() . '_' . - $this->getWSDLVersion() . '_' . phpversion(); - } - - protected function _getMetaDataWSDL() - { - return $this->_soapDir . '/' . $this->_medaDataWsdlName . '.wsdl.xml'; - } - - /** - * @return void - * @throws SoapFault - */ - abstract protected function _run(); - - /** - * NOTE: implement in sub-classes. - * - * @param string $rs - * @return void - * @throws Lib_Exception_InvalidResponse - */ - protected function _validate($rs) - { - // generic check - if(strpos($rs, 'errors') !== FALSE) { - throw new Lib_Exception_InvalidResponse(); - } - } - - /** - * NOTE: implement in sub-classes. - * - * @param string $rs - * @return void - * @throws Lib_Exception_InvalidResponse - */ - protected function _validateSoapFault($rs) - { - throw new Lib_Exception_InvalidResponse(); - } - - /** - * - * @return string location of local wsdl file - */ - abstract public function getWSDL(); - - abstract public function getWSDLName(); - - abstract public function getWSDLVersion(); - - abstract public function getTestName(); -} diff --git a/unit_test/Lib/Test/TestAbstractEnterprise.php b/unit_test/Lib/Test/TestAbstractEnterprise.php deleted file mode 100644 index 5bd6078..0000000 --- a/unit_test/Lib/Test/TestAbstractEnterprise.php +++ /dev/null @@ -1,36 +0,0 @@ -_soapDir . '/SforceEnterpriseClient.php'); - require_once ($this->_soapDir . '/SforceHeaderOptions.php'); - require_once ($this->_soapDir . '/SforceMetadataClient.php'); - - $this->_mySforceConnection = new SforceEnterpriseClient(); - $this->_mySoapClient = $this->_mySforceConnection->createConnection($this->getWSDL()); - $this->_mylogin = $this->_mySforceConnection->login($this->_userName, $this->_password); - - $_SESSION['location'] = $this->_mySforceConnection->getLocation(); - $_SESSION['sessionId'] = $this->_mySforceConnection->getSessionId(); - $_SESSION['wsdl'] = $this->getWSDL(); - } - - public function getWSDLName() - { - return $this->_wsdlName; - } - - public function getWSDLVersion() - { - return $this->_wsdlVersion; - } - - public function getWSDL() { - return "{$this->_soapDir}/{$this->_wsdlName}{$this->_wsdlVersion}.wsdl.xml"; - } -} diff --git a/unit_test/Lib/Test/TestAbstractPartner.php b/unit_test/Lib/Test/TestAbstractPartner.php deleted file mode 100644 index 96c0e2a..0000000 --- a/unit_test/Lib/Test/TestAbstractPartner.php +++ /dev/null @@ -1,35 +0,0 @@ -_soapDir . '/SforcePartnerClient.php'); - require_once ($this->_soapDir . '/SforceHeaderOptions.php'); - require_once ($this->_soapDir . '/SforceMetadataClient.php'); - - $this->_mySforceConnection = new SforcePartnerClient(); - $this->_mySoapClient = $this->_mySforceConnection->createConnection($this->getWSDL()); - $this->_mylogin = $this->_mySforceConnection->login($this->_userName, $this->_password); - - $_SESSION['location'] = $this->_mySforceConnection->getLocation(); - $_SESSION['sessionId'] = $this->_mySforceConnection->getSessionId(); - $_SESSION['wsdl'] = $this->getWSDL(); - } - - public function getWSDLName() { - return $this->_wsdlName; - } - - public function getWSDLVersion() - { - return $this->_wsdlVersion; - } - - public function getWSDL() { - return "{$this->_soapDir}/{$this->_wsdlName}{$this->_wsdlVersion}.wsdl.xml"; - } -} diff --git a/unit_test/Lib/Test/TestFactory.php b/unit_test/Lib/Test/TestFactory.php deleted file mode 100644 index 82b9803..0000000 --- a/unit_test/Lib/Test/TestFactory.php +++ /dev/null @@ -1,47 +0,0 @@ -_logger = new Lib_Utils_FileLogger($logName, 'a+', TRUE); - $this->_soapDir = $soapDir; - } - - /** - * @param int $type - * @param string $target - * @return void - */ - public function run($type, $target) - { - $this->_logger->write(__METHOD__ . ' started'); - - $WsdlTypeEnum = new Lib_Enum_WsdlType(); - $typeName = $WsdlTypeEnum->getById($type); - - // create appropriate test instance and run it - $className = 'Lib_Test_' . ucfirst(strtolower($typeName)) . '_' . $target . 'Test'; - - /* @var $testCase Lib_Test_TestAbstract */ - $testCase = new $className($this->_soapDir); - $testCase->run($this->_logger); - - $this->_logger->write('Lib_Test_TestFactory->run finished'); - } - - public function runAll() - { - // TODO Implement - // Iterate throw all PARTNER and ENTERPRISE tests - } -} \ No newline at end of file diff --git a/unit_test/Lib/Utils/FileLogger.php b/unit_test/Lib/Utils/FileLogger.php deleted file mode 100644 index 4396124..0000000 --- a/unit_test/Lib/Utils/FileLogger.php +++ /dev/null @@ -1,26 +0,0 @@ -_filename = $filename; - $this->_hanlder = fopen($filename, $mode); - $this->_withTimeStamps = $withTimeStamps; - } - - function __destruct() { - fclose($this->_hanlder); - } - - public function write($message) { - fwrite($this->_hanlder, - ($this->_withTimeStamps ? date(DateTime::ATOM) . ' ' : '') . $message . "\n"); - } -} \ No newline at end of file diff --git a/unit_test/index.php b/unit_test/index.php deleted file mode 100644 index 7aaffe5..0000000 --- a/unit_test/index.php +++ /dev/null @@ -1,102 +0,0 @@ - - -
-
Partner
-
AssigmentRuleHeader
-
CallOptions
-
CDU
-
ConvertLead
-
DescribeGlobal
-
DescribeLayout
-
DescribeSObject
-
DescribeDataCategoryGroups new!
-
DescribeDataCategoryGroupStructures new!
-
EmailHeader
-
EmptyRecycleBin
-
FieldsToNull
-
GetDeleted
-
GetServerTimestamp
-
GetUpdated
-
GetUserInfo
-
InvalidateSessions
-
LoginScopeHeader
-
Login
-
Logout
-
Merge
-
MetaDataCheckStatus
-
MetaDataCreate
-
MetaDataDelete
-
ProcessSubmitRequest
-
ProcessWorkItemRequest
-
QueryMore
-
QueryOptions
-
Query
-
 
-
ResetPassword
-
Retrieve
-
Search
-
SendEmail
-
SetPassword
-
SendEmailWithAttach
-
Update
-
Upsert
-
LocaleOptions
-
AllowFieldTruncationHeader
-
PackageVersionHeader
-
- -
-
Enterprise
-
AssigmentRuleHeader
-
 
-
CDU
-
ConvertLead
-
DescribeGlobal
-
DescribeLayout
-
DescribeSObject
-
DescribeDataCategoryGroups new!
-
DescribeDataCategoryGroupStructures new!
-
EmailHeader
-
EmptyRecycleBin
-
FieldsToNull
-
GetDeleted
-
GetServerTimestamp
-
GetUpdated
-
GetUserInfo
-
InvalidateSessions
-
LoginScopeHeader
-
Login
-
Logout
-
Merge
-
 
-
 
-
 
-
ProcessSubmitRequest
-
ProcessWorkItemRequest
-
QueryMore
-
QueryOptions
-
Query
-
AggregateResult new!
-
ResetPassword
-
Retrieve
-
Search
-
SendEmail
-
SetPassword
-
SendEmailWithAttach
-
Update
-
Upsert
-
LocaleOptions
-
AllowFieldTruncationHeader
-
PackageVersionHeader
-
diff --git a/unit_test/runTest.php b/unit_test/runTest.php deleted file mode 100644 index c45d83d..0000000 --- a/unit_test/runTest.php +++ /dev/null @@ -1,39 +0,0 @@ -run($type, $target); -