Config
Class Config
Table of Contents
Constants
- SIGHT_SALT = 'main_mail_callback'
Methods
- generateId() : $this
- Generate ID.
- getEntityId() : string
- Get entity ID.
- getEntityType() : string
- Get entity type.
- getHost() : string
- Get host.
- getId() : string
- Get id.
- getModuleId() : string
- Get module ID.
- getSignature() : string|null
- Get signature.
- setEntityId() : $this
- Set entity ID.
- setEntityType() : $this
- Set entity type.
- setHost() : $this
- Set host.
- setModuleId() : $this
- Set module ID.
- unpackId() : $this
- Unpack ID.
- verifySignature() : bool
- Verify signature.
Constants
SIGHT_SALT
public
mixed
SIGHT_SALT
= 'main_mail_callback'
Methods
generateId()
Generate ID.
public
static generateId(string $moduleId[, string|null $entityType = null ], string|int $entityId) : $this
Parameters
- $moduleId : string
-
Module ID.
- $entityType : string|null = null
-
Entity type.
- $entityId : string|int
-
Entity ID.
Tags
Return values
$thisgetEntityId()
Get entity ID.
public
getEntityId() : string
Unique per moduleId
& entityType
.
It might be an email or ID of row in some table.
Return values
stringgetEntityType()
Get entity type.
public
getEntityType() : string
Return values
stringgetHost()
Get host.
public
getHost() : string
Return values
stringgetId()
Get id.
public
getId() : string
Return values
stringgetModuleId()
Get module ID.
public
getModuleId() : string
Return values
stringgetSignature()
Get signature.
public
getSignature() : string|null
Return values
string|nullsetEntityId()
Set entity ID.
public
setEntityId(string $entityId) : $this
Parameters
- $entityId : string
-
Entity ID.
Tags
Return values
$thissetEntityType()
Set entity type.
public
setEntityType(string|null $entityType) : $this
Additional category on callback. Unique per moduleId
.
Parameters
- $entityType : string|null
-
Entity type.
Tags
Return values
$thissetHost()
Set host.
public
setHost(string $host) : $this
Parameters
- $host : string
-
Host.
Return values
$thissetModuleId()
Set module ID.
public
setModuleId(string $moduleId) : $this
Parameters
- $moduleId : string
-
Module ID.
Tags
Return values
$thisunpackId()
Unpack ID.
public
unpackId(string $id) : $this
Parameters
- $id : string
-
ID.
Tags
Return values
$thisverifySignature()
Verify signature.
public
verifySignature(string $signature) : bool
Parameters
- $signature : string
-
Signature.