Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
extension.php
1<?php
2
4
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}