4use \Bitrix\Landing\Block\Cache;
26 $res = self::getList([
31 'INTERNAL_CHAT_ID' => $chatId,
32 '=ENTITY_TYPE' => self::BINDING_TYPE_BLOCK
35 while ($row = $res->fetch())
37 Cache::clear($row[
'ENTITY_ID']);
47 public static function bindingBlock(
int $chatId,
int $blockId): void
49 $res = self::getList([
54 'INTERNAL_CHAT_ID' => $chatId,
55 'ENTITY_ID' => $blockId,
56 '=ENTITY_TYPE' => self::BINDING_TYPE_BLOCK
62 'INTERNAL_CHAT_ID' => $chatId,
63 'ENTITY_ID' => $blockId,
64 'ENTITY_TYPE' => self::BINDING_TYPE_BLOCK
76 $res = self::getList([
81 'ENTITY_ID' => $blockId,
82 '=ENTITY_TYPE' => self::BINDING_TYPE_BLOCK
85 while ($row = $res->fetch())
87 self::delete($row[
'ID']);
static bindingBlock(int $chatId, int $blockId)
static clearCache(int $chatId)
static unbindingBlock(int $blockId)