1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
config.php
См. документацию.
1<?php
2
3namespace Bitrix\MobileApp\Janative\Entity;
4
5use Bitrix\Main\IO\File;
6use Bitrix\Main\IO\Path;
7
12class Config
13{
14 private ?string $path;
15 private array $config = [];
16
17 public function __construct($path)
18 {
19 $this->path = Path::normalize($path);
20 $file = new File($this->path);
21 if ($file->isExists())
22 {
23 $content = include($this->path);
24
25 if (is_array($content))
26 {
27 $this->config = $content;
28 }
29 }
30 }
31
32 public function __get($name)
33 {
34 $config = $this->config;
35 if ($name == "extensions")
36 {
37 if (array_keys($config) !== range(0, count($config) - 1) && array_key_exists('extensions', $config))
38 {
39 return $config['extensions'];
40 }
41 else
42 {
43 return [];
44 }
45 }
46 elseif ($name == "dynamicData")
47 {
48 return $config['dynamicData'] ?? [];
49 }
50 }
51
52 public function exists(): bool
53 {
54 return !empty($this->config);
55 }
56}
$content
Определения commerceml.php:144
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$name
Определения menu_edit.php:35
Определения Image.php:9
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения prolog_main_admin.php:393
$config
Определения quickway.php:69
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"
Определения waybill.php:936
path
Определения template_copy.php:201