5use Bitrix\Im\Model\EO_LinkPin;
7use Bitrix\Im\V2\Common\ContextCustomer;
25 $this->initByDefault();
35 return LinkPinTable::class;
57 if (
$entity->getMessage() !==
null)
68 $pin->setContext($context);
72 ->setAuthorId($pin->getContext()->getUserId())
87 ->setSelect([
'ID',
'CHAT_ID',
'AUTHOR_ID',
'DATE_CREATE',
'MESSAGE_ID'])
98 return static::initByEntity(
$entity)->setEntity($message);
setEntityId(?int $entityId)
setEntity(RestEntity $entity)
static getRestEntityName()
static getEntityClassName()
toRestFormat(array $option=[])
setMessageId(?int $messageId)
static initByEntity(EO_LinkPin $entity)
setMessageInfo(Message $message)
getPopupData(array $excludedList=[])
__construct($source=null)
static createFromMessage(Message $message, ?Context $context=null)
static getEntityIdFieldName()
static getByMessage(Message $message)