1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
facebookauthadapter.php
См. документацию.
1<?php
2
3namespace Bitrix\Seo\Retargeting;
4
5use Bitrix\Seo;
6use Bitrix\Seo\Retargeting;
7use Bitrix\Main\SystemException;
8use Bitrix\Main\Web\Uri;
9use Bitrix\Seo\Service;
10use Bitrix\Seo\Service as SeoService;
11
13{
14 public function getAuthUrl()
15 {
16 $serviceUrl = (new Retargeting\ProxyRequest())->getServiceUrl(Seo\Service::SERVICE_URL);
17
19 {
20 try
21 {
22 Seo\Service::register($serviceUrl);
23 }
24 catch (SystemException $e)
25 {
26 return '';
27 }
28 }
29
30 $authorizeUrl = (new Retargeting\ProxyRequest())->getServiceUrl(Seo\Service::getAuthorizeLink());
31
32 $authorizeData = SeoService::getAuthorizeData(
33 $this->getEngineCode(),
35 );
36
37 if (!empty($this->parameters['URL_PARAMETERS']))
38 {
39 $authorizeData['urlParameters'] = $this->parameters['URL_PARAMETERS'];
40 }
41
42 $uri = new Uri($authorizeUrl);
43
44 return $uri->addParams($authorizeData)->getLocator();
45 }
46}
Определения uri.php:17
static getAuthorizeLink()
Определения service.php:370
static register(string $serviceUrl='')
Определения service.php:318
static isRegistered()
Определения service.php:65
const SERVICE_URL
Определения service.php:40
static getAuthorizeData($engine, $clientType=false)
Определения service.php:381
const CLIENT_TYPE_SINGLE
Определения service.php:53
const CLIENT_TYPE_MULTIPLE
Определения service.php:54
if(file_exists($_SERVER['DOCUMENT_ROOT'] . "/urlrewrite.php")) $uri
Определения urlrewrite.php:61