1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
tests_package.php
См. документацию.
1
<?
8
13
class
CSecurityTestsPackage
14
{
15
const
SLOW_LOCAL_TESTS
=
"slow_local"
;
16
const
FAST_LOCAL_TESTS
=
"fast_local"
;
17
const
LOCAL_TESTS
=
"local"
;
18
const
REMOTE_TESTS
=
"remote"
;
19
20
protected
static
$fastLocalTests
=
array
(
21
"CSecurityEnvironmentTest"
,
22
"CSecurityPhpConfigurationTest"
23
);
24
25
protected
static
$slowLocalTests
=
array
(
26
"CSecurityFilePermissionsTest"
,
27
"CSecurityTaintCheckingTest"
,
28
"CSecurityUserTest"
,
29
"CSecurityUserOtpTest"
,
30
"CSecuritySiteConfigurationTest"
31
);
32
33
protected
static
$remoteTests
=
array
(
34
"CSecurityCloudMonitorTest"
,
35
);
36
42
public
static
function
getTestsPackage
($pType =
""
)
43
{
44
if
(is_array($pType))
45
{
46
$tests =
array
();
47
foreach
($pType as
$type
)
48
{
49
$tests = array_merge($tests, self::getPackage(
$type
));
50
}
51
}
52
else
53
{
54
$tests =
self::getPackage
($pType);
55
}
56
return
$tests;
57
}
58
62
public
static
function
getAllTests
()
63
{
64
return
array_merge(self::$fastLocalTests, self::$slowLocalTests, self::$remoteTests);
65
}
66
71
protected
static
function
getPackage
($pType =
""
)
72
{
73
if
(!is_string($pType) || $pType ==
""
)
74
return
array
();
75
76
if
($pType === self::FAST_LOCAL_TESTS)
77
{
78
return
self::$fastLocalTests;
79
}
80
elseif
($pType === self::SLOW_LOCAL_TESTS)
81
{
82
return
self::$slowLocalTests;
83
}
84
elseif
($pType === self::LOCAL_TESTS)
85
{
86
return
array_merge(self::$fastLocalTests, self::$slowLocalTests);
87
}
88
elseif
($pType === self::REMOTE_TESTS)
89
{
90
return
self::$remoteTests;
91
}
92
else
93
{
94
return
array
();
95
}
96
}
97
}
$type
$type
Определения
options.php:106
CSecurityTestsPackage
Определения
tests_package.php:14
CSecurityTestsPackage\FAST_LOCAL_TESTS
const FAST_LOCAL_TESTS
Определения
tests_package.php:16
CSecurityTestsPackage\$slowLocalTests
static $slowLocalTests
Определения
tests_package.php:25
CSecurityTestsPackage\$remoteTests
static $remoteTests
Определения
tests_package.php:33
CSecurityTestsPackage\getTestsPackage
static getTestsPackage($pType="")
Определения
tests_package.php:42
CSecurityTestsPackage\getAllTests
static getAllTests()
Определения
tests_package.php:62
CSecurityTestsPackage\LOCAL_TESTS
const LOCAL_TESTS
Определения
tests_package.php:17
CSecurityTestsPackage\SLOW_LOCAL_TESTS
const SLOW_LOCAL_TESTS
Определения
tests_package.php:15
CSecurityTestsPackage\getPackage
static getPackage($pType="")
Определения
tests_package.php:71
CSecurityTestsPackage\REMOTE_TESTS
const REMOTE_TESTS
Определения
tests_package.php:18
CSecurityTestsPackage\$fastLocalTests
static $fastLocalTests
Определения
tests_package.php:20
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
elseif
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения
prolog_main_admin.php:393
bitrix
modules
security
classes
general
tests
tests_package.php
Создано системой
1.14.0