Bitrix API

CommentReader

Class CommentReader

Table of Contents

Methods

getCommentData()  : array<string|int, mixed>
getCommentId()  : int
getInstance()  : static
isContainCodes()  : bool
Checks if comment contains codes from $codes (all codes from $codes if $all).
read()  : void
setCommentData()  : void
setCommentId()  : void

Methods

getCommentData()

public getCommentData() : array<string|int, mixed>
Return values
array<string|int, mixed>

getCommentId()

public getCommentId() : int
Return values
int

getInstance()

public static getInstance(int $taskId[, int $commentId = 0 ]) : static
Parameters
$taskId : int
$commentId : int = 0
Return values
static

isContainCodes()

Checks if comment contains codes from $codes (all codes from $codes if $all).

public isContainCodes(array<string|int, mixed> $codes[, bool $all = false ]) : bool
Parameters
$codes : array<string|int, mixed>
$all : bool = false
Return values
bool

read()

public read() : void
Tags
throws
ArgumentException
throws
LoaderException
throws
ObjectPropertyException
throws
SystemException

setCommentData()

public setCommentData(array<string|int, mixed> $commentData) : void
Parameters
$commentData : array<string|int, mixed>

setCommentId()

public setCommentId(int $commentId) : void
Parameters
$commentId : int

        
On this page

Search results