Factory
Table of Contents
Methods
- canUseAutomation() : mixed
- canUseBizprocDesigner() : mixed
- createRuntime() : Runtime
- Create Runtime instance.
- createTarget() : BaseTarget
- Create Target instance by entity type.
- getAvailableTriggers() : array<string|int, mixed>
- getRobotsLimit() : int
- getTarget() : mixed
- getTriggerByCode() : bool|BaseTrigger
- hasRobotsForStatus() : bool
- isAutomationAvailable() : mixed
- isAutomationLimited() : bool
- isAutomationRunnable() : bool
- isBizprocDesignerEnabled() : bool
- isBizprocDesignerSupported() : bool
- isScriptAvailable() : bool
- isSupported() : mixed
- onFieldsChanged() : mixed
- registerActivity() : mixed
- registerConversionResult() : mixed
- runOnAdd() : mixed
- runOnStatusChanged() : mixed
Methods
canUseAutomation()
public
static canUseAutomation() : mixed
canUseBizprocDesigner()
public
static canUseBizprocDesigner() : mixed
createRuntime()
Create Runtime instance.
public
static createRuntime() : Runtime
Tags
Return values
Runtime —Runtime instance.
createTarget()
Create Target instance by entity type.
public
static createTarget(int $entityTypeId) : BaseTarget
Parameters
- $entityTypeId : int
-
Entity type id from \CCrmOwnerType.
Tags
Return values
BaseTarget —Target instance, child of BaseTarget.
getAvailableTriggers()
public
static getAvailableTriggers(int $entityTypeId) : array<string|int, mixed>
Parameters
- $entityTypeId : int
-
Entity type id.
Return values
array<string|int, mixed>getRobotsLimit()
public
static getRobotsLimit(int $entityTypeId) : int
Parameters
- $entityTypeId : int
Return values
intgetTarget()
public
static getTarget(mixed $entityTypeId, mixed $entityId) : mixed
Parameters
- $entityTypeId : mixed
- $entityId : mixed
getTriggerByCode()
public
static getTriggerByCode(mixed $code) : bool|BaseTrigger
Parameters
- $code : mixed
-
Trigger string code.
Return values
bool|BaseTrigger —Trigger class name or false.
hasRobotsForStatus()
public
static hasRobotsForStatus(int $entityTypeId, string $entityStatus) : bool
Parameters
- $entityTypeId : int
-
Entity type id.
- $entityStatus : string
-
Entity status for check.
Return values
boolisAutomationAvailable()
public
static isAutomationAvailable(mixed $entityTypeId[, mixed $ignoreLicense = false ]) : mixed
Parameters
- $entityTypeId : mixed
- $ignoreLicense : mixed = false
isAutomationLimited()
public
static isAutomationLimited(int $entityTypeId) : bool
Parameters
- $entityTypeId : int
Return values
boolisAutomationRunnable()
public
static isAutomationRunnable(int $entityTypeId) : bool
Parameters
- $entityTypeId : int
Return values
boolisBizprocDesignerEnabled()
public
static isBizprocDesignerEnabled(int $entityTypeId) : bool
Parameters
- $entityTypeId : int
Return values
boolisBizprocDesignerSupported()
public
static isBizprocDesignerSupported(int $entityTypeId) : bool
Parameters
- $entityTypeId : int
Return values
boolisScriptAvailable()
public
static isScriptAvailable(mixed $entityTypeId[, mixed $ignoreLicense = false ]) : bool
Parameters
- $entityTypeId : mixed
- $ignoreLicense : mixed = false
Return values
boolisSupported()
public
static isSupported(mixed $entityTypeId) : mixed
Parameters
- $entityTypeId : mixed
onFieldsChanged()
public
static onFieldsChanged(mixed $entityTypeId, mixed $entityId, array<string|int, mixed> $changedFields) : mixed
Parameters
- $entityTypeId : mixed
- $entityId : mixed
- $changedFields : array<string|int, mixed>
registerActivity()
public
static registerActivity(mixed $id) : mixed
Parameters
- $id : mixed
registerConversionResult()
public
static registerConversionResult(mixed $entityTypeId, mixed $entityId, Result $result) : mixed
Parameters
- $entityTypeId : mixed
- $entityId : mixed
- $result : Result
runOnAdd()
public
static runOnAdd(mixed $entityTypeId, mixed $entityId[, Starter|null $starter = null ]) : mixed
Parameters
- $entityTypeId : mixed
- $entityId : mixed
- $starter : Starter|null = null
runOnStatusChanged()
public
static runOnStatusChanged(mixed $entityTypeId, mixed $entityId) : mixed
Parameters
- $entityTypeId : mixed
- $entityId : mixed