Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
byqueryrequester.php
1
<?php
2
3
namespace
Bitrix\Location\Source\Google\Requesters
;
4
10
final
class
ByQueryRequester
extends
BaseRequester
11
{
12
protected
$url
=
'https://maps.googleapis.com/maps/api/place/textsearch/json'
;
13
protected
$defaultFields
=
'basic'
;
14
protected
$requiredFields
= [
'query'
,
'language'
,
'key'
];
15
protected
$fieldsToEncode
= [
'query'
];
16
21
protected
function
makeUrl
(array $data): string
22
{
23
if
(empty($data[
'fields'
]))
24
{
25
$data[
'fields'
] =
$this->defaultFields
;
26
}
27
28
return
parent::makeUrl($data);
29
}
30
}
Bitrix\Location\Source\Google\Requesters\BaseRequester
Definition
baserequester.php:19
Bitrix\Location\Source\Google\Requesters\ByQueryRequester
Definition
byqueryrequester.php:11
Bitrix\Location\Source\Google\Requesters\ByQueryRequester\$fieldsToEncode
$fieldsToEncode
Definition
byqueryrequester.php:15
Bitrix\Location\Source\Google\Requesters\ByQueryRequester\$defaultFields
$defaultFields
Definition
byqueryrequester.php:13
Bitrix\Location\Source\Google\Requesters\ByQueryRequester\makeUrl
makeUrl(array $data)
Definition
byqueryrequester.php:21
Bitrix\Location\Source\Google\Requesters\ByQueryRequester\$requiredFields
$requiredFields
Definition
byqueryrequester.php:14
Bitrix\Location\Source\Google\Requesters\ByQueryRequester\$url
$url
Definition
byqueryrequester.php:12
Bitrix\Location\Source\Google\Requesters
Definition
autocompleterequester.php:3
modules
location
lib
source
google
requesters
byqueryrequester.php
Создано системой
1.10.0