WebservicesConvertLead
in package
Table of Contents
- vtwsConvertlead() : int
- The function convert the lead.
- vtwsConvertLeadTransferHandler() : bool
- function to handle the transferring of related records for lead.
- vtwsPopulateConvertLeadEntities() : entity
- Populate the entity fields with the lead info.
- vtwsUpdateConvertLeadStatus() : mixed
- The function updates the status convert lead.
- vtwsValidateConvertLeadEntityMandatoryValues() : string
- Validate convert lead entity mandatory values.
Methods
vtwsConvertlead()
The function convert the lead.
public
static vtwsConvertlead(string $entityvalues, Users_Record_Model $user) : int
Parameters
- $entityvalues : string
- $user : Users_Record_Model
Return values
int —vtwsConvertLeadTransferHandler()
function to handle the transferring of related records for lead.
public
static vtwsConvertLeadTransferHandler(int $leadIdComponents, int $entityIds, string $entityvalues) : bool
Parameters
- $leadIdComponents : int
- $entityIds : int
- $entityvalues : string
Return values
bool —vtwsPopulateConvertLeadEntities()
Populate the entity fields with the lead info.
public
static vtwsPopulateConvertLeadEntities(array<string|int, mixed> $entityvalue, string $entity, Vtiger_Record_Model $recordModel, string $leadinfo) : entity
If mandatory field is not provided populate with '????'.
Parameters
- $entityvalue : array<string|int, mixed>
- $entity : string
- $recordModel : Vtiger_Record_Model
- $leadinfo : string
Return values
entity —array
vtwsUpdateConvertLeadStatus()
The function updates the status convert lead.
public
static vtwsUpdateConvertLeadStatus(int $entityIds, int $leadId, Users_Record_Model $user) : mixed
Parameters
- $entityIds : int
- $leadId : int
- $user : Users_Record_Model
Return values
mixed —vtwsValidateConvertLeadEntityMandatoryValues()
Validate convert lead entity mandatory values.
public
static vtwsValidateConvertLeadEntityMandatoryValues(string $entity, Vtiger_Module_Model $targetModuleModel) : string
Parameters
- $entity : string
- $targetModuleModel : Vtiger_Module_Model