1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
config.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\MobileApp\Janative\Entity;
4
5
use Bitrix\Main\IO\File;
6
use Bitrix\Main\IO\Path;
7
12
class
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
}
Bitrix\MobileApp\Janative\Entity\Config\__construct
__construct($path)
Определения
config.php:17
Bitrix\MobileApp\Janative\Entity\Config\__get
__get($name)
Определения
config.php:32
Bitrix\MobileApp\Janative\Entity\Config\exists
exists()
Определения
config.php:52
$content
$content
Определения
commerceml.php:144
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$name
$name
Определения
menu_edit.php:35
Bitrix\Main\Config
Определения
configuration.php:3
Bitrix\Main\File
Определения
Image.php:9
elseif
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения
prolog_main_admin.php:393
$config
$config
Определения
quickway.php:69
count
</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
path
Определения
template_copy.php:201
bitrix
modules
mobileapp
lib
janative
entity
config.php
Создано системой
1.14.0