1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
extension.php
См. документацию.
1<?php
2
3namespace Bitrix\Seo\BusinessSuite;
4
5use Bitrix\Seo\Retargeting;
6use Bitrix\Seo\BusinessSuite\Configuration\Facebook;
7
8abstract 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}
Определения response.php:5
getMethodName(string $name)
Определения abstractbase.php:20