• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Link/Reminder/ReminderItem.php
  • Класс: BitrixImV2LinkReminderReminderItem
  • Вызов: ReminderItem::toRestFormat
public function toRestFormat(array $option = []): array
{
	$message = null;
	if (!isset($option['WITHOUT_MESSAGES']) || $option['WITHOUT_MESSAGES'] === 'N')
	{
		$message = $this->getEntity()->toRestFormat();
	}
	return [
		'id' => $this->getPrimaryId(),
		'messageId' => $this->getMessageId(),
		'chatId' => $this->getChatId(),
		'authorId' => $this->getAuthorId(),
		'dateCreate' => $this->getDateCreate()->format('c'),
		'dateRemind' => $this->getDateRemind()->format('c'),
		'isReminded' => $this->isReminded(),
		'message' => $message,
	];
}