Replicator
AbstractYes
Table of Contents
Constants
- AGENT_NAME_PARAMETER = 'agentName'
- AGENT_TEMPLATE = 'CTasks::RepeatTaskByTemplateId(#ID#);'
- DEBUG_KEY = 'tasks_use_new_replication_use_debug'
- EMPTY_AGENT = ''
- NEW_REPLICATION_KEY = 'tasks_use_new_replication'
Methods
- __construct() : mixed
- getAgentName() : string
- isEnabled() : bool
- replicate() : string
Constants
AGENT_NAME_PARAMETER
public
mixed
AGENT_NAME_PARAMETER
= 'agentName'
AGENT_TEMPLATE
public
mixed
AGENT_TEMPLATE
= 'CTasks::RepeatTaskByTemplateId(#ID#);'
DEBUG_KEY
public
mixed
DEBUG_KEY
= 'tasks_use_new_replication_use_debug'
EMPTY_AGENT
public
mixed
EMPTY_AGENT
= ''
NEW_REPLICATION_KEY
public
mixed
NEW_REPLICATION_KEY
= 'tasks_use_new_replication'
Methods
__construct()
public
__construct([int $userId = 0 ]) : mixed
Parameters
- $userId : int = 0
getAgentName()
public
static getAgentName(int $templateId) : string
Parameters
- $templateId : int
Return values
stringisEnabled()
public
abstract static isEnabled() : bool
Return values
boolreplicate()
public
replicate(int $templateId[, bool $force = false ]) : string
Parameters
- $templateId : int
- $force : bool = false