You are here

class LeadConvert in Salesforce Suite 5

Same name and namespace in other branches
  1. 5.2 includes/salesforce.php \LeadConvert

salesforce sObject.

@access public

Hierarchy

Expanded class hierarchy of LeadConvert

1 string reference to 'LeadConvert'
LeadConvert::serialize in includes/salesforce.php

File

includes/salesforce.php, line 472

View source
class LeadConvert {
  var $accountId;
  var $contactId;
  var $convertedStatus;
  var $doNotCreateOpportunity;
  var $leadId;
  var $opportunityName;
  var $overwriteLeadSource;
  var $ownerId;
  var $sendNotificationEmail;
  function LeadConvert($accountId, $contactId, $convertedStatus, $doNotCreateOpportunity, $leadId, $opportunityName, $overwriteLeadSource, $ownerId, $sendNotificationEmail) {
    $this->accountId = $accountId;
    $this->contactId = $contactId;
    $this->convertedStatus = $convertedStatus;
    $this->doNotCreateOpportunity = $doNotCreateOpportunity;
    $this->leadId = $leadId;
    $this->opportunityName = $opportunityName;
    $this->overwriteLeadSource = $overwriteLeadSource;
    $this->ownerId = $ownerId;
    $this->sendNotificationEmail = $sendNotificationEmail;
  }
  function serialize() {
    $valuesSer['accountId'] = $this->accountId;
    $valuesSer['contactId'] = $this->contactId;
    $valuesSer['convertedStatus'] = $this->convertedStatus;
    $valuesSer['doNotCreateOpportunity'] = $this->doNotCreateOpportunity;
    $valuesSer['leadId'] = $this->leadId;
    $valuesSer['opportunityName'] = $this->opportunityName;
    $valuesSer['overwriteLeadSource'] = $this->overwriteLeadSource;
    $valuesSer['ownerId'] = $this->ownerId;
    $valuesSer['sendNotificationEmail'] = $this->sendNotificationEmail;
    $leadConvert = new soapval('LeadConvert', false, $valuesSer);
    return $leadConvert
      ->serialize();
  }

}

Members