TimeLimiter implements iLimiter
Table of Contents
Interfaces
- iLimiter
- Interface iLimiter
Constants
- DEFAULT_SENDING_END = '18:00'
- DEFAULT_SENDING_START = '09:00'
Methods
- create() : static
- Create instance.
- getCaption() : string|null
- Get caption.
- getCurrent() : int
- Get current.
- getLimit() : int
- Get max.
- getParameter() : mixed|null
- Get parameter.
- getUnit() : string
- Get unit.
- getUnitName() : string
- Get unit name.
- isHidden() : bool
- Returns true if limiter should be hidden on the CRM-marketing settings page
- prepareMessageConfiguration() : mixed
- add options SENDING_START and SENDING_END to the Message Configuration
- prepareMessageConfigurationView() : mixed
- add options view SENDING_START and SENDING_END to the Message Configuration
- setParameter() : $this
- Set parameter.
- withLetter() : mixed
Constants
DEFAULT_SENDING_END
public
mixed
DEFAULT_SENDING_END
= '18:00'
DEFAULT_SENDING_START
public
mixed
DEFAULT_SENDING_START
= '09:00'
Methods
create()
Create instance.
public
static create() : static
Return values
staticgetCaption()
Get caption.
public
getCaption() : string|null
Tags
Return values
string|nullgetCurrent()
Get current.
public
getCurrent() : int
Tags
Return values
intgetLimit()
Get max.
public
getLimit() : int
Tags
Return values
intgetParameter()
Get parameter.
public
getParameter(mixed $name) : mixed|null
Parameters
- $name : mixed
-
Name.
Tags
Return values
mixed|nullgetUnit()
Get unit.
public
getUnit() : string
Tags
Return values
stringgetUnitName()
Get unit name.
public
getUnitName() : string
Tags
Return values
stringisHidden()
Returns true if limiter should be hidden on the CRM-marketing settings page
public
isHidden() : bool
Tags
Return values
boolprepareMessageConfiguration()
add options SENDING_START and SENDING_END to the Message Configuration
public
static prepareMessageConfiguration(mixed $configuration) : mixed
Parameters
- $configuration : mixed
prepareMessageConfigurationView()
add options view SENDING_START and SENDING_END to the Message Configuration
public
static prepareMessageConfigurationView(mixed $configuration) : mixed
Parameters
- $configuration : mixed
setParameter()
Set parameter.
public
setParameter(mixed $name, mixed $value) : $this
Parameters
- $name : mixed
-
Name.
- $value : mixed
-
Value.
Tags
Return values
$thiswithLetter()
public
withLetter(mixed $letter) : mixed
Parameters
- $letter : mixed