1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
byidrequester.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Location\Source\Google\Requesters;
4
9
final
class
ByIdRequester
extends
BaseRequester
10
{
11
protected
$url
=
'https://maps.googleapis.com/maps/api/place/details/json'
;
12
protected
$defaultFields
=
'formatted_address,name,place_id,types,address_components,geometry'
;
13
protected
$requiredFields
= [
'placeid'
,
'language'
,
'key'
];
14
protected
$fieldsToEncode
= [
'placeid'
];
15
20
protected
function
makeUrl
(
array
$data
): string
21
{
22
if
(empty(
$data
[
'fields'
]))
23
{
24
$data
[
'fields'
] =
$this->defaultFields
;
25
}
26
27
return
parent::makeUrl(
$data
);
28
}
29
}
Bitrix\Location\Source\Google\Requesters\BaseRequester
Определения
baserequester.php:19
Bitrix\Location\Source\Google\Requesters\ByIdRequester
Определения
byidrequester.php:10
Bitrix\Location\Source\Google\Requesters\ByIdRequester\$fieldsToEncode
$fieldsToEncode
Определения
byidrequester.php:14
Bitrix\Location\Source\Google\Requesters\ByIdRequester\$defaultFields
$defaultFields
Определения
byidrequester.php:12
Bitrix\Location\Source\Google\Requesters\ByIdRequester\makeUrl
makeUrl(array $data)
Определения
byidrequester.php:20
Bitrix\Location\Source\Google\Requesters\ByIdRequester\$requiredFields
$requiredFields
Определения
byidrequester.php:13
Bitrix\Location\Source\Google\Requesters\ByIdRequester\$url
$url
Определения
byidrequester.php:11
$data
$data['IS_AVAILABLE']
Определения
.description.php:13
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
bitrix
modules
location
lib
source
google
requesters
byidrequester.php
Создано системой
1.14.0