RegularTaskReplicator extends AbstractReplicator
Replicate an entity based on data from another entity.
Table of Contents
Constants
- DEBUG_KEY = 'tasks_use_regularity_use_debug'
- ENABLED_KEY = 'tasks_use_regularity'
Methods
- __construct() : mixed
- disableTimeZone() : void
- enableTimeZone() : void
- 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.
- replicate() : ReplicationResult
- Replicates an entity.
Constants
DEBUG_KEY
public
mixed
DEBUG_KEY
= 'tasks_use_regularity_use_debug'
ENABLED_KEY
public
mixed
ENABLED_KEY
= 'tasks_use_regularity'
Methods
__construct()
public
__construct([int $userId = 0 ]) : mixed
Parameters
- $userId : int = 0
disableTimeZone()
public
disableTimeZone() : void
enableTimeZone()
public
enableTimeZone() : void
getPayloadKey()
Returns the key by which it is convenient to obtain the value of the replication result.
public
static getPayloadKey() : string
Return values
stringisDebug()
Enable or disable debug logging.
public
isDebug() : bool
Return values
boolisEnabled()
Enable or disable replication.
public
static isEnabled() : bool
Return values
boolreplicate()
Replicates an entity.
public
replicate(int $entityId[, bool $force = false ]) : ReplicationResult
Parameters
- $entityId : int
- $force : bool = false