Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
provider.php
1
<?php
2
3
namespace
Bitrix\Sale\Internals\Analytics\Events
;
4
5
use
Bitrix\Main
;
6
use
Bitrix\Sale
;
7
14
final
class
Provider
extends
Sale\Internals\Analytics\Provider
15
{
16
private
const
TYPE =
'events'
;
17
19
private
$event;
20
21
public
function
__construct
(
Event
$event)
22
{
23
$this->
event
= $event;
24
}
25
29
public
static
function
getCode
(): string
30
{
31
return
self::TYPE;
32
}
33
34
protected
function
needProvideData
(): bool
35
{
36
return
true
;
37
}
38
42
protected
function
getProviderData
(): array
43
{
44
return
[
45
'event_code'
=> $this->
event
->getName(),
46
'events'
=> [
47
[
48
'created_at'
=> (
new
Main\Type\DateTime
())->getTimestamp(),
49
'payload'
=> $this->
event
->getPayload(),
50
],
51
],
52
];
53
}
54
}
Bitrix\Catalog\Model\Event
Definition
event.php:11
Bitrix\Main\Type\DateTime
Definition
datetime.php:9
Bitrix\Rest\OAuth\Provider
Definition
provider.php:11
Bitrix\Sale\Internals\Analytics\Events\Provider\getCode
static getCode()
Definition
provider.php:29
Bitrix\Sale\Internals\Analytics\Events\Provider\getProviderData
getProviderData()
Definition
provider.php:42
Bitrix\Sale\Internals\Analytics\Events\Provider\needProvideData
needProvideData()
Definition
provider.php:34
Bitrix\Sale\Internals\Analytics\Events\Provider\__construct
__construct(Event $event)
Definition
provider.php:21
Bitrix\Main
Bitrix\Sale\Internals\Analytics\Events
Definition
event.php:3
Bitrix\Sale
modules
sale
lib
internals
analytics
events
provider.php
Создано системой
1.10.0