1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
modulestructure.php
См. документацию.
1<?php
2
3declare(strict_types=1);
4
5namespace Bitrix\Main\Cli\Command\Dev\Service\Module;
6
7final 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
Определения access_edit.php:21
$currentPath
Определения access_edit.php:61
getStructure(array $structure=self::STRUCTURE, string $path='')
Определения modulestructure.php:32
__construct(private readonly string $path)
Определения modulestructure.php:27
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$result
Определения get_property_values.php:14
if(empty($signedUserToken)) $key
Определения quickway.php:257
path
Определения template_copy.php:201