ChatContentCollector
Table of Contents
Methods
- __construct() : mixed
- cleanupChatBasics() : void
- deleteChat() : void
- Does critical cleanup using DELETE queries without loops and only by indexed fields. Must be run on the same hit when user initiates chat deletion. All other operations will be performed via agents.
- getNextChatIdToCleanup() : int|null
- processCleanup() : string|null
Methods
__construct()
public
__construct(Chat|int $chat) : mixed
Parameters
- $chat : Chat|int
cleanupChatBasics()
public
cleanupChatBasics([int|null $userId = null ]) : void
Parameters
- $userId : int|null = null
Tags
deleteChat()
Does critical cleanup using DELETE queries without loops and only by indexed fields. Must be run on the same hit when user initiates chat deletion. All other operations will be performed via agents.
public
deleteChat([int|null $userId = null ]) : void
Parameters
- $userId : int|null = null
Tags
getNextChatIdToCleanup()
public
getNextChatIdToCleanup() : int|null
Tags
Return values
int|nullprocessCleanup()
public
processCleanup(int $limit[, string|null $previousCompletedStep = null ]) : string|null
Parameters
- $limit : int
- $previousCompletedStep : string|null = null