Bitrix API

RegularTemplateTaskReplicator extends AbstractReplicator

Replicate an entity based on data from another entity.

Table of Contents

Constants

AGENT_TEMPLATE  = 'CTasks::RepeatTaskByTemplateId(#ID#);'
DEBUG_KEY  = 'tasks_use_new_replication_use_debug'
EMPTY_AGENT  = ''
ENABLE_MUTEX  = 'tasks_use_mutex'
ENABLE_RECALCULATION  = 'tasks_use_recalculation'
ENABLE_TIME_PRIORITY  = 'tasks_use_time_priority'
ENABLED_KEY  = 'tasks_use_new_replication'

Methods

__construct()  : mixed
disableTimeZone()  : void
enableTimeZone()  : void
getAgentName()  : string
getNextTimeByTemplateId()  : string
getPayloadKey()  : string
Returns the key by which it is convenient to obtain the value of the replication result.
isDebug()  : bool
Enable or disable debug logging.
isEnabled()  : bool
Enable or disable replication.
isMutexEnabled()  : bool
isRecalculationEnabled()  : bool
isTimePriorityEnabled()  : bool
replicate()  : ReplicationResult
Replicates an entity.
startReplication()  : void
startReplicationAndUpdateTemplate()  : void
stopReplication()  : void

Constants

Methods

__construct()

public __construct([int $userId = 0 ]) : mixed
Parameters
$userId : int = 0

getNextTimeByTemplateId()

public getNextTimeByTemplateId(int $templateId[, string $baseTime = '' ]) : string
Parameters
$templateId : int
$baseTime : string = ''
Return values
string

getPayloadKey()

Returns the key by which it is convenient to obtain the value of the replication result.

public static getPayloadKey() : string
Return values
string

startReplicationAndUpdateTemplate()

public startReplicationAndUpdateTemplate(int $templateId, array<string|int, mixed> $replicateParameters) : void
Parameters
$templateId : int
$replicateParameters : array<string|int, mixed>

        
On this page

Search results