You are here

function salesforce::create in Salesforce Suite 5

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

create 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 177

Class

salesforce
salesforce

Code

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