1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
repository.php
См. документацию.
1<?php
2
3namespace Sale\Handlers\Delivery\YandexTaxi\Api\Tariffs;
4
5use Bitrix\Main\Web\Json;
6
12final class Repository
13{
18 public function getTariffs(): array
19 {
20 $tariffs = Json::decode(file_get_contents(__DIR__ . '/tariffs.json'));
21
22 if (!is_array($tariffs))
23 {
24 return [];
25 }
26
27 if (!is_array($tariffs['available_tariffs']))
28 {
29 return [];
30 }
31
32 return $tariffs['available_tariffs'];
33 }
34}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804