1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
modulestructure.php
См. документацию.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
Bitrix\Main\Cli\Command\Dev\Service\Module;
6
7
final
class
ModuleStructure
8
{
9
public
const
STRUCTURE
= [
10
'Access'
,
11
'Command'
,
12
'Controller'
,
13
'Entity'
,
14
'Internals'
=> [
15
'Exception'
,
16
'Integration'
,
17
'Model'
,
18
'Repository'
,
19
'Service'
,
20
],
21
'Provider'
=> [
22
'Params'
,
23
],
24
'Service'
,
25
];
26
27
public
function
__construct
(
private
readonly
string
$path
)
28
{
29
30
}
31
32
public
function
getStructure
(
array
$structure = self::STRUCTURE,
string
$path
=
''
):
array
33
{
34
$result
= [];
35
foreach
($structure as
$key
=> $value)
36
{
37
$currentPath
= $this->
path
.
$path
;
38
if
(is_array($value))
39
{
40
$result
= array_merge(
$result
, $this->
getStructure
($value,
$path
.
$key
.
'/'
));
41
}
42
else
43
{
44
$result
[] =
$currentPath
. $value;
45
}
46
}
47
48
return
$result
;
49
}
50
}
$path
$path
Определения
access_edit.php:21
$currentPath
$currentPath
Определения
access_edit.php:61
Bitrix\Main\Cli\Command\Dev\Service\Module\ModuleStructure
Определения
modulestructure.php:8
Bitrix\Main\Cli\Command\Dev\Service\Module\ModuleStructure\getStructure
getStructure(array $structure=self::STRUCTURE, string $path='')
Определения
modulestructure.php:32
Bitrix\Main\Cli\Command\Dev\Service\Module\ModuleStructure\__construct
__construct(private readonly string $path)
Определения
modulestructure.php:27
Bitrix\Main\Cli\Command\Dev\Service\Module\ModuleStructure\STRUCTURE
const STRUCTURE
Определения
modulestructure.php:9
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$result
$result
Определения
get_property_values.php:14
$key
if(empty($signedUserToken)) $key
Определения
quickway.php:257
path
path
Определения
template_copy.php:201
bitrix
modules
main
lib
cli
command
dev
service
module
modulestructure.php
Создано системой
1.14.0