Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
facebookconversion.php
1
<?php
2
3
namespace
Bitrix\Sale\Controller
;
4
5
use
Bitrix\Main\Engine\ActionFilter\Authentication
;
6
use
Bitrix\Main\Localization\Loc
;
7
8
Loc::loadMessages
(__FILE__);
9
10
class
FacebookConversion
extends
\Bitrix\Main\Engine\Controller
11
{
12
public
function
configureActions
()
13
{
14
return
[
15
'customizeProduct'
=> [
16
'-prefilters'
=> [
17
Authentication::class
18
]
19
],
20
'contact'
=> [
21
'-prefilters'
=> [
22
Authentication::class
23
]
24
],
25
];
26
}
27
28
public
function
contactAction
($contactBy): void
29
{
30
\Bitrix\Sale\Internals\FacebookConversion::onContactHandler($contactBy);
31
}
32
33
public
function
customizeProductAction
(
string
$offerId): void
34
{
35
\Bitrix\Sale\Internals\FacebookConversion::onCustomizeProductHandler((
int
)$offerId);
36
}
37
}
Bitrix\Main\Engine\ActionFilter\Authentication
Definition
authentication.php:14
Bitrix\Main\Engine\Controller
Definition
controller.php:32
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Sale\Controller\FacebookConversion
Definition
facebookconversion.php:11
Bitrix\Sale\Controller\FacebookConversion\customizeProductAction
customizeProductAction(string $offerId)
Definition
facebookconversion.php:33
Bitrix\Sale\Controller\FacebookConversion\configureActions
configureActions()
Definition
facebookconversion.php:12
Bitrix\Sale\Controller\FacebookConversion\contactAction
contactAction($contactBy)
Definition
facebookconversion.php:28
Bitrix\Sale\Controller
modules
sale
lib
controller
facebookconversion.php
Создано системой
1.10.0