Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
extension.php
1
<?php
2
3
namespace
Bitrix\Seo\BusinessSuite
;
4
5
use
Bitrix\Seo\Retargeting
;
6
use
Bitrix\Seo\BusinessSuite\Configuration\Facebook
;
7
8
abstract
class
Extension
extends
AbstractBase
9
{
15
public
function
getInstalls
(): ?Retargeting\
Response
16
{
17
if
($setup = Facebook\
Setup::load
())
18
{
19
return
$installs = $this->
getRequest
()->
send
([
'methodName'
=> $this->
getMethodName
(
'installs.get'
),
20
'parameters'
=> [
21
'fbe_external_business_id'
=> $setup->get(Facebook\
Setup::BUSINESS_ID
)
22
]
23
]);
24
}
25
return
null
;
26
}
27
33
public
function
uninstall
() : ?Retargeting\
Response
34
{
35
if
($setup = Facebook\
Setup::load
())
36
{
37
return
$this->
getRequest
()->
send
([
38
'methodName'
=> $this->
getMethodName
(
'installs.delete'
),
39
'parameters'
=> [
40
'fbe_external_business_id'
=> $setup->get(Facebook\
Setup::BUSINESS_ID
)
41
]
42
]);
43
}
44
return
null
;
45
}
46
}
Bitrix\Main\Response
Definition
response.php:5
Bitrix\Main\Response\send
send()
Definition
response.php:89
Bitrix\Seo\BusinessSuite\AbstractBase
Definition
abstractbase.php:9
Bitrix\Seo\BusinessSuite\AbstractBase\getMethodName
getMethodName(string $name)
Definition
abstractbase.php:20
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Setup\load
static load()
Definition
setup.php:156
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Setup\BUSINESS_ID
const BUSINESS_ID
Definition
setup.php:14
Bitrix\Seo\BusinessSuite\Extension
Definition
extension.php:9
Bitrix\Seo\BusinessSuite\Extension\getInstalls
getInstalls()
Definition
extension.php:15
Bitrix\Seo\BusinessSuite\Extension\uninstall
uninstall()
Definition
extension.php:33
Bitrix\Seo\Retargeting\BaseApiObject\getRequest
getRequest()
Definition
baseapiobject.php:44
Bitrix\Seo\BusinessSuite\Configuration\Facebook
Definition
config.php:2
Bitrix\Seo\BusinessSuite
Definition
abstractbase.php:3
Bitrix\Seo\Retargeting
Definition
account.php:3
modules
seo
lib
businesssuite
extension.php
Создано системой
1.10.0