1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
account.php
См. документацию.
1<?php
2
3namespace Bitrix\Seo\BusinessSuite;
4
5use Bitrix\Seo\BusinessSuite\DTO;
6
7abstract 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}
getMethodName(string $name)
Определения abstractbase.php:20
$data['IS_AVAILABLE']
Определения .description.php:13
$response
Определения result.php:21