You are here

function salesforce::update in Salesforce Suite 5

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

update sObjects.

@access public

Parameters

mixed: $values either a single sObject or an array of sObjects

Return value

mixed either a single SaveResult complex type or an array of SaveResult complex types. (See WSDL.)

File

includes/salesforce.php, line 192

Class

salesforce
salesforce

Code

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