@@ 699-704 (lines=6) @@ | ||
696 | * @param string $type Object type |
|
697 | * @return DescribsSObjectResult |
|
698 | */ |
|
699 | public function describeSObject($type) { |
|
700 | $this->setHeaders("describeSObject"); |
|
701 | $arg = new stdClass(); |
|
702 | $arg->sObjectType = new SoapVar($type, XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); |
|
703 | return $this->sforce->describeSObject($arg)->result; |
|
704 | } |
|
705 | ||
706 | /** |
|
707 | * An array-based version of describeSObject; describes metadata (field list |
|
@@ 737-742 (lines=6) @@ | ||
734 | * @param string $sObjectType sObject Type |
|
735 | * @return DescribeDataCategoryGroupResult |
|
736 | */ |
|
737 | public function describeDataCategoryGroups($sObjectType) { |
|
738 | $this->setHeaders('describeDataCategoryGroups'); |
|
739 | $arg = new stdClass(); |
|
740 | $arg->sObjectType = new SoapVar($sObjectType, XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); |
|
741 | return $this->sforce->describeDataCategoryGroups($arg)->result; |
|
742 | } |
|
743 | ||
744 | /** |
|
745 | * Retrieves available category groups along with their data category structure for objects specified in the request. |
|
@@ 872-877 (lines=6) @@ | ||
869 | * @param string $searchString Search string that specifies the text expression to search for. |
|
870 | * @return SearchResult |
|
871 | */ |
|
872 | public function search($searchString) { |
|
873 | $this->setHeaders("search"); |
|
874 | $arg = new stdClass(); |
|
875 | $arg->searchString = new SoapVar($searchString, XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); |
|
876 | return new SforceSearchResult($this->sforce->search($arg)->result); |
|
877 | } |
|
878 | ||
879 | /** |
|
880 | * Retrieves the current system timestamp (GMT) from the Web service. |
|
@@ 900-906 (lines=7) @@ | ||
897 | * @param string $userId ID of the User. |
|
898 | * @param string $password New password |
|
899 | */ |
|
900 | public function setPassword($userId, $password) { |
|
901 | $this->setHeaders("setPassword"); |
|
902 | $arg = new stdClass(); |
|
903 | $arg->userId = new SoapVar($userId, XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); |
|
904 | $arg->password = $password; |
|
905 | return $this->sforce->setPassword($arg); |
|
906 | } |
|
907 | ||
908 | /** |
|
909 | * Changes a user's password to a system-generated value. |
|
@@ 914-919 (lines=6) @@ | ||
911 | * @param string $userId Id of the User |
|
912 | * @return password |
|
913 | */ |
|
914 | public function resetPassword($userId) { |
|
915 | $this->setHeaders("resetPassword"); |
|
916 | $arg = new stdClass(); |
|
917 | $arg->userId = new SoapVar($userId, XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); |
|
918 | return $this->sforce->resetPassword($arg)->result; |
|
919 | } |
|
920 | } |
|
921 | ||
922 | class SforceSearchResult { |