1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
AbstractAnalytics.php
См. документацию.
1<?php
2
3declare(strict_types=1);
4
6
10
11abstract class AbstractAnalytics
12{
13 use ContextCustomer;
14
15 protected Chat $chat;
16 protected int $userId;
17
18 public function __construct(Chat $chat)
19 {
20 $this->chat = $chat;
21 $this->userId = $this->getContext()->getUserId();
22 }
23
24 protected function async(callable $job): void
25 {
26 Application::getInstance()->addBackgroundJob($job);
27 }
28
29 protected function isChatTypeAllowed(Chat $chat): bool
30 {
31 if ($chat instanceof Chat\OpenLineLiveChat || $chat instanceof Chat\OpenLineChat)
32 {
33 return false;
34 }
35
36 return true;
37 }
38}
static getInstance()
Определения servicelocator.php:33
trait ContextCustomer
Определения ContextCustomer.php:12