DelayInterval
Table of Contents
Constants
- TYPE_AFTER = 'after'
- TYPE_BEFORE = 'before'
- TYPE_IN = 'in'
Methods
- __construct() : mixed
- DelayInterval constructor.
- createFromActivityProperties() : DelayInterval
- getBasis() : mixed
- getInTime() : array<string|int, mixed>|null
- getType() : mixed
- getValue() : mixed
- getValueType() : mixed
- isActivated() : bool
- isNow() : bool
- Checks if interval equals to Now.
- isWaitWorkDay() : bool
- isWorkTime() : mixed
- setActivated() : void
- setBasis() : DelayInterval
- setInTime() : $this
- setType() : DelayInterval
- setValue() : DelayInterval
- setValueType() : DelayInterval
- setWaitWorkDay() : $this
- setWorkTime() : $this
- toActivityProperties() : array<string|int, mixed>
- Converts instance to activity properties array.
- toArray() : array<string|int, mixed>
- Converts instance to array.
Constants
TYPE_AFTER
public
mixed
TYPE_AFTER
= 'after'
TYPE_BEFORE
public
mixed
TYPE_BEFORE
= 'before'
TYPE_IN
public
mixed
TYPE_IN
= 'in'
Methods
__construct()
DelayInterval constructor.
public
__construct([array<string|int, mixed>|null $params = null ]) : mixed
Parameters
- $params : array<string|int, mixed>|null = null
-
Initial parameters.
createFromActivityProperties()
public
static createFromActivityProperties(array<string|int, mixed> $properties) : DelayInterval
Parameters
- $properties : array<string|int, mixed>
-
Activity properties.
Return values
DelayIntervalgetBasis()
public
getBasis() : mixed
getInTime()
public
getInTime() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullgetType()
public
getType() : mixed
getValue()
public
getValue() : mixed
getValueType()
public
getValueType() : mixed
isActivated()
public
isActivated() : bool
Return values
boolisNow()
Checks if interval equals to Now.
public
isNow() : bool
Return values
boolisWaitWorkDay()
public
isWaitWorkDay() : bool
Return values
boolisWorkTime()
public
isWorkTime() : mixed
setActivated()
public
setActivated(bool $activated) : void
Parameters
- $activated : bool
setBasis()
public
setBasis(mixed $basis) : DelayInterval
Parameters
- $basis : mixed
-
Delay interval basis (date/time field etc.).
Return values
DelayIntervalsetInTime()
public
setInTime(array<string|int, mixed>|null $inTime) : $this
Parameters
- $inTime : array<string|int, mixed>|null
Return values
$thissetType()
public
setType(mixed $type) : DelayInterval
Parameters
- $type : mixed
-
Interval type (before, after, in time).
Return values
DelayIntervalsetValue()
public
setValue(int $value) : DelayInterval
Parameters
- $value : int
-
Delay interval value.
Return values
DelayIntervalsetValueType()
public
setValueType(string $valueType) : DelayInterval
Parameters
- $valueType : string
-
Delay interval value type.
Return values
DelayIntervalsetWaitWorkDay()
public
setWaitWorkDay(bool $flag) : $this
Parameters
- $flag : bool
Return values
$thissetWorkTime()
public
setWorkTime(bool $flag) : $this
Parameters
- $flag : bool
-
True of false.
Return values
$thistoActivityProperties()
Converts instance to activity properties array.
public
toActivityProperties(array<string|int, mixed> $documentType) : array<string|int, mixed>
Parameters
- $documentType : array<string|int, mixed>
-
Document type.
Return values
array<string|int, mixed>toArray()
Converts instance to array.
public
toArray() : array<string|int, mixed>