Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
account.php
1
<?php
2
3
namespace
Bitrix\Seo\BusinessSuite
;
4
5
use
Bitrix\Seo\BusinessSuite\DTO
;
6
7
abstract
class
Account
extends
AbstractBase
8
{
9
public
function
getProfile
() : ?DTO\
Profile
10
{
11
$response = $this->
getRequest
()->send([
12
'methodName'
=> $this->
getMethodName
(
'profile'
),
13
'parameters'
=> []
14
]);
15
16
if
($response->isSuccess() && $data = $response->fetch())
17
{
18
return
19
(
new
DTO\
Profile
())
20
->
setId
($data[
'ID'
])
21
->setPicture($data[
'PICTURE'
][
'data'
][
'url'
] ??
null
)
22
->setLink($data[
'LINK'
])
23
->setName($data[
'NAME'
])
24
;
25
}
26
27
return
null
;
28
}
29
}
Bitrix\Seo\BusinessSuite\AbstractBase
Definition
abstractbase.php:9
Bitrix\Seo\BusinessSuite\AbstractBase\getMethodName
getMethodName(string $name)
Definition
abstractbase.php:20
Bitrix\Seo\BusinessSuite\Account
Definition
account.php:8
Bitrix\Seo\BusinessSuite\Account\getProfile
getProfile()
Definition
account.php:9
Bitrix\Seo\BusinessSuite\DTO\Profile
Definition
profile.php:6
Bitrix\Seo\BusinessSuite\DTO\Profile\setId
setId(?string $id)
Definition
profile.php:23
Bitrix\Seo\Retargeting\BaseApiObject\getRequest
getRequest()
Definition
baseapiobject.php:44
Bitrix\Seo\BusinessSuite\DTO
Definition
profile.php:3
Bitrix\Seo\BusinessSuite
Definition
abstractbase.php:3
modules
seo
lib
businesssuite
account.php
Создано системой
1.10.0