Common
Table of Contents
Constants
- URL_IM_HISTORY = '/online/?IM_HISTORY=imol|#ID#'
Methods
- combineUserCode() : string
- Create custom code from an array of data.
- getAgreementFields() : array<string|int, mixed>
- getConfigIdByChatId() : int|bool
- Try to configId of the active session on $chatId.
- getUrlImHistory() : mixed
- getUrlImHistoryBbCode() : string
- parseUserCode() : array<string|int, mixed>
- Parses custom code to the components of the data.
Constants
URL_IM_HISTORY
public
mixed
URL_IM_HISTORY
= '/online/?IM_HISTORY=imol|#ID#'
Methods
combineUserCode()
Create custom code from an array of data.
public
static combineUserCode(array<string|int, mixed> $userCode) : string
Parameters
- $userCode : array<string|int, mixed>
Return values
stringgetAgreementFields()
public
static getAgreementFields() : array<string|int, mixed>
Return values
array<string|int, mixed>getConfigIdByChatId()
Try to configId of the active session on $chatId.
public
static getConfigIdByChatId(int $chatId) : int|bool
Parameters
- $chatId : int
Return values
int|boolgetUrlImHistory()
public
static getUrlImHistory(mixed $sessionId) : mixed
Parameters
- $sessionId : mixed
getUrlImHistoryBbCode()
public
static getUrlImHistoryBbCode(mixed $sessionId, mixed $textUrl) : string
Parameters
- $sessionId : mixed
- $textUrl : mixed
Return values
stringparseUserCode()
Parses custom code to the components of the data.
public
static parseUserCode(string $userCode) : array<string|int, mixed>
Parameters
- $userCode : string