You are here

function salesforce::retrieve in Salesforce Suite 5

Same name and namespace in other branches
  1. 5.2 includes/salesforce.php \salesforce::retrieve()

perform retrieve

@access public

Parameters

string: $fieldList fields of sObject to return $sObjectType type of object to retrieve $ids ids of sObjects to retrieve

Return value

mixed array of sObjects. (See WSDL.)

File

includes/salesforce.php, line 252

Class

salesforce
salesforce

Code

function retrieve($fieldList, $sObjectType, $ids) {
  $param = array(
    'fieldList' => $fieldList,
    'sObjectType' => $sObjectType,
    'ids' => $ids,
  );
  $this->result = $this->client
    ->call('retrieve', array(
    'parameters' => $param,
  ), '', '', false, true);
  return $this->result['result'];
}