1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
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
Определения
abstractbase.php:9
Bitrix\Seo\BusinessSuite\AbstractBase\getMethodName
getMethodName(string $name)
Определения
abstractbase.php:20
Bitrix\Seo\BusinessSuite\Account
Определения
account.php:8
Bitrix\Seo\BusinessSuite\Account\getProfile
getProfile()
Определения
account.php:9
Bitrix\Seo\BusinessSuite\DTO\Profile
Определения
profile.php:6
Bitrix\Seo\Retargeting\BaseApiObject\getRequest
getRequest()
Определения
baseapiobject.php:44
$data
$data['IS_AVAILABLE']
Определения
.description.php:13
Bitrix\Seo\BusinessSuite\DTO
Определения
profile.php:3
$response
$response
Определения
result.php:21
bitrix
modules
seo
lib
businesssuite
account.php
Создано системой
1.14.0