Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
eventhandler.php
1
<?php
2
namespace
Bitrix\Sale\Cashbox\Internals\Analytics
;
3
4
use
Bitrix\Main
;
5
use
Bitrix\Sale
;
6
12
class
EventHandler
13
{
17
public
static
function
onPrintableCheckSend
(Main\
Event
$event): void
18
{
19
$check = $event->getParameter(
'CHECK'
);
20
if
(is_array($check) && isset($check[
'ID'
]))
21
{
22
$check = Sale\Cashbox\CheckManager::getObjectById($check[
'ID'
]);
23
if
($check)
24
{
25
$provider =
new
Sale\Cashbox\Internals\Analytics\Provider
($check);
26
(
new
Sale\Internals\Analytics\Storage
($provider))->save();
27
}
28
}
29
}
30
}
Bitrix\Catalog\Model\Event
Definition
event.php:11
Bitrix\Rest\OAuth\Provider
Definition
provider.php:11
Bitrix\Sale\Basket\Storage
Definition
storage.php:9
Bitrix\Sale\Cashbox\Internals\Analytics\EventHandler
Definition
eventhandler.php:13
Bitrix\Sale\Cashbox\Internals\Analytics\EventHandler\onPrintableCheckSend
static onPrintableCheckSend(Main\Event $event)
Definition
eventhandler.php:17
Bitrix\Main
Bitrix\Sale\Cashbox\Internals\Analytics
Definition
agent.php:2
Bitrix\Sale
modules
sale
lib
cashbox
internals
analytics
eventhandler.php
Создано системой
1.10.0