1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
filesystemhelper.php
См. документацию.
1
<?php
2
namespace
Bitrix\Translate\IO;
3
4
use Bitrix\Translate;
5
6
class
FileSystemHelper
7
{
15
public
static
function
getFolderList
(
string
$path
):
array
16
{
17
$path
=
Translate\IO\Path::tidy
(\rtrim(
$path
,
'/'
));
18
if
(defined(
'GLOB_BRACE'
))
19
{
20
return \glob(
$path
.
'/{,.}*'
, \GLOB_BRACE | \GLOB_ONLYDIR);
21
}
22
return
array_merge(
23
\glob(
$path
.
'/.*'
, \GLOB_ONLYDIR),
24
\glob(
$path
.
'/*'
, \GLOB_ONLYDIR)
25
);
26
}
27
35
public
static
function
getFileList
(
string
$path
):
array
36
{
37
$path
=
Translate\IO\Path::tidy
(\rtrim(
$path
,
'/'
));
38
if
(defined(
'GLOB_BRACE'
))
39
{
40
return \glob(
$path
.
'/{,.}*.php'
, \GLOB_BRACE);
41
}
42
return
array_merge(
43
\glob(
$path
.
'/.*.php'
),
44
\glob(
$path
.
'/*.php'
)
45
);
46
}
47
}
$path
$path
Определения
access_edit.php:21
Bitrix\Translate\IO\FileSystemHelper
Определения
filesystemhelper.php:7
Bitrix\Translate\IO\FileSystemHelper\getFileList
static getFileList(string $path)
Определения
filesystemhelper.php:35
Bitrix\Translate\IO\FileSystemHelper\getFolderList
static getFolderList(string $path)
Определения
filesystemhelper.php:15
Bitrix\Translate\IO\Path\tidy
static tidy(string $path)
Определения
path.php:16
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
bitrix
modules
translate
lib
io
filesystemhelper.php
Создано системой
1.14.0