1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
responseyandex.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Seo\Checkout\Services;
4
5
use Bitrix\Main\Error;
6
use Bitrix\Seo\Checkout\Response;
7
13
class
ResponseYandex
extends
Response
14
{
15
const
TYPE_CODE
=
'yandex'
;
16
20
public
function
parse
(
$data
)
21
{
22
if
(isset(
$data
[
'errors'
]))
23
{
24
$this->addError(
new
Error
(
$data
[
'errors'
][
'message'
],
$data
[
'errors'
][
'code'
]));
25
}
26
else
27
{
28
if
(
$data
[
'data'
])
29
{
30
$this->setData(
$data
[
'data'
]);
31
}
32
}
33
}
34
}
Bitrix\Main\Error
Определения
error.php:15
Bitrix\Main\Response
Определения
response.php:5
Bitrix\Seo\Checkout\Services\ResponseYandex
Определения
responseyandex.php:14
Bitrix\Seo\Checkout\Services\ResponseYandex\TYPE_CODE
const TYPE_CODE
Определения
responseyandex.php:15
Bitrix\Seo\Checkout\Services\ResponseYandex\parse
parse($data)
Определения
responseyandex.php:20
$data
$data['IS_AVAILABLE']
Определения
.description.php:13
bitrix
modules
seo
lib
checkout
services
responseyandex.php
Создано системой
1.14.0