Метод getCommentByType
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
строки
140–152
~/bitrix/modulestasks/lib/comments/task/commentposter.php
Исходный код
Сигнатура метода
public function getCommentByType($type = Comment::TYPE_DEFAULT): ?Comment
Возвращает:
?Comment
Описание
Returns first comment of given type from collection or null if there is no comments of such type.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$type
|
-
|
Comment::TYPE_DEFAULT
|
-
|