Topic extends Forum
FinalYes
Table of Contents
Constants
- MODULE_NAME = 'forum'
- TYPE_TASK = 'TK'
Methods
- delete() : mixed
- getFileCount() : int
- Get file count for a topic
- getParser() : mixed
- onAfterAdd() : mixed
- onBeforeAdd() : bool|void
- Fires when new topic was added for the task
- updateTopicTitle() : bool
- Updates forum topic title to match task's title
Constants
MODULE_NAME
public
mixed
MODULE_NAME
= 'forum'
TYPE_TASK
public
mixed
TYPE_TASK
= 'TK'
Methods
delete()
public
static delete(mixed $id) : mixed
Parameters
- $id : mixed
getFileCount()
Get file count for a topic
public
static getFileCount(int $taskId) : int
Parameters
- $taskId : int
Tags
Return values
intgetParser()
public
static getParser([array<string|int, mixed> $parameters = array() ]) : mixed
Parameters
- $parameters : array<string|int, mixed> = array()
onAfterAdd()
public
static onAfterAdd(mixed $entityType, mixed $entityId, mixed $topicId) : mixed
Parameters
- $entityType : mixed
- $entityId : mixed
- $topicId : mixed
onBeforeAdd()
Fires when new topic was added for the task
public
static onBeforeAdd(mixed $entityType, mixed $entityId, mixed $arPost, mixed &$arTopic) : bool|void
Parameters
- $entityType : mixed
- $entityId : mixed
- $arPost : mixed
- $arTopic : mixed
Return values
bool|voidupdateTopicTitle()
Updates forum topic title to match task's title
public
static updateTopicTitle(mixed $topicId, mixed $title) : bool
Parameters
- $topicId : mixed
- $title : mixed