DealConverter extends EntityConverter
Table of Contents
Methods
- __construct() : mixed
- executePhase() : bool
- Try to execute current conversion phase.
- getEntityTypeID() : int
- Get converter entity type ID.
- getMap() : EntityConversionMap
- Get conversion map for for specified entity type.
- getMapper() : DealConversionMapper|null
- Get conversion mapper
- getSupportedDestinationTypeIDs() : array<string|int, mixed>
- Get Supported Destination Types.
- initialize() : void
- Initialize converter.
- isAttachingSourceActivitiesEnabled() : bool
- Returns true if activities from Deal entity should be copied to destination entity
- isFinished() : bool
- Check if current phase is final.
- mapEntityFields() : array<string|int, mixed>
- Map entity fields to specified type.
- moveToNextPhase() : bool
- Try to move converter to next phase
Methods
__construct()
public
__construct([EntityConversionConfig $config = null ]) : mixed
Parameters
- $config : EntityConversionConfig = null
executePhase()
Try to execute current conversion phase.
public
executePhase() : bool
Tags
Return values
boolgetEntityTypeID()
Get converter entity type ID.
public
getEntityTypeID() : int
Return values
intgetMap()
Get conversion map for for specified entity type.
public
static getMap(int $entityTypeID) : EntityConversionMap
Try to load saved map. If map is not found then default map will be created.
Parameters
- $entityTypeID : int
-
Entity Type ID.
Return values
EntityConversionMapgetMapper()
Get conversion mapper
public
getMapper() : DealConversionMapper|null
Return values
DealConversionMapper|nullgetSupportedDestinationTypeIDs()
Get Supported Destination Types.
public
getSupportedDestinationTypeIDs() : array<string|int, mixed>
Return values
array<string|int, mixed>initialize()
Initialize converter.
public
initialize() : void
Tags
isAttachingSourceActivitiesEnabled()
Returns true if activities from Deal entity should be copied to destination entity
public
isAttachingSourceActivitiesEnabled() : bool
Return values
boolisFinished()
Check if current phase is final.
public
isFinished() : bool
Return values
boolmapEntityFields()
Map entity fields to specified type.
public
mapEntityFields(int $entityTypeID[, array<string|int, mixed>|null $options = null ]) : array<string|int, mixed>
Parameters
- $entityTypeID : int
-
Entity type ID.
- $options : array<string|int, mixed>|null = null
-
Mapping options.
Return values
array<string|int, mixed>moveToNextPhase()
Try to move converter to next phase
public
moveToNextPhase() : bool