1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
sourcecodepicker.php
См. документацию.
1<?php
2
3namespace Bitrix\Location\Infrastructure;
4
5use Bitrix\Location\Entity\Source\Factory;
6use Bitrix\Main\Config\Option;
7use Bitrix\Main\Loader;
8use Bitrix\Main\ModuleManager;
9
16{
17 private const OPTION_NAME = 'location_default_source_code';
18
22 public static function getSourceCode(): string
23 {
24 return Option::get(
25 'location',
26 self::OPTION_NAME,
27 (
28 ModuleManager::isModuleInstalled('bitrix24')
29 && Loader::includeModule('bitrix24')
30 )
33
34 );
35 }
36
40 public static function setSourceCode(string $sourceCode): void
41 {
42 Option::set('location', self::OPTION_NAME, $sourceCode);
43 }
44}
const GOOGLE_SOURCE_CODE
Определения factory.php:17
static setSourceCode(string $sourceCode)
Определения sourcecodepicker.php:40