1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс CSecuritySiteChecker

Открытые члены

 __construct ($pTests=array(), $pIsFirstStart=false, $pIsCheckRequirementsNeeded=true)
 startTesting ($pParams=array())
 getPercent ()
 isAnyCheckingExists ()
 isAllTestCompleted ()

Открытые статические члены

static runTestPackage ($pType="", $pIsFirstStart=false, $pIsCheckRequirementsNeeded=true)
static addResults ($pResults)
static getLastTestingInfo ()
static clearTemporaryData ()
static isNewTestNeeded ()
static calculateCriticalResults ($pResults=array())
static OnAdminInformerInsertItems ()

Поля данных

const ADMIN_PAGE_URL = "/bitrix/admin/security_scanner.php"
const CHECKING_REPEAT_TIME = 2592000
const CACHE_DIR = "/security/site_checker"
const CACHE_BASE_ID = "sec_site_check"
const SESSION_DATA_KEY = "SECURITY_SITE_CHECKER"

Защищенные члены

 finalizeLastTest ()
 getCurrentTestName ()
 makeParamsForTest ($pTestName, $pParams)
 getNextStep ()
 initializeAvailableTests ()
 initializeNeededTests ($pTests)

Защищенные статические члены

static getList ($pFilter=array(), $pMaxCount=1)
static getFormatedDate ($timestamp)
static clearCache ()

Защищенные данные

 $allTests = array()
 $neededTests = ""
 $neededTestName = ""
 $sessionData = null
 $isCheckRequirementsNeeded = true

Статические защищенные данные

static $dbFields = array("ID", "TEST_DATE", "RESULTS")

Подробное описание

См. определение в файле site_checker.php строка 6

Конструктор(ы)

◆ __construct()

__construct ( $pTests = array(),
$pIsFirstStart = false,
$pIsCheckRequirementsNeeded = true )
Аргументы
array$pTests
bool$pIsFirstStart
bool$pIsCheckRequirementsNeeded
Исключения
Exception

См. определение в файле site_checker.php строка 30

Методы

◆ addResults()

addResults ( $pResults)
static

Add new testing results ro DB

Аргументы
array$pResults
Возвращает
bool

См. определение в файле site_checker.php строка 154

◆ calculateCriticalResults()

calculateCriticalResults ( $pResults = array())
static
Аргументы
array$pResults
Возвращает
int

См. определение в файле site_checker.php строка 321

◆ clearCache()

clearCache ( )
staticprotected

@global CCacheManager $CACHE_MANAGER

См. определение в файле site_checker.php строка 277

◆ clearTemporaryData()

clearTemporaryData ( )
static

См. определение в файле site_checker.php строка 216

◆ finalizeLastTest()

finalizeLastTest ( )
protected

См. определение в файле site_checker.php строка 294

◆ getCurrentTestName()

getCurrentTestName ( )
protected
Возвращает
string

См. определение в файле site_checker.php строка 398

◆ getFormatedDate()

getFormatedDate ( $timestamp)
staticprotected
Аргументы
$timestamp
Возвращает
string

@global CDataBase $DB

См. определение в файле site_checker.php строка 268

◆ getLastTestingInfo()

getLastTestingInfo ( )
static

Return last saved testing results

Возвращает
array

@global CCacheManager $CACHE_MANAGER

См. определение в файле site_checker.php строка 178

◆ getList()

getList ( $pFilter = array(),
$pMaxCount = 1 )
staticprotected

Return saved testing results

Аргументы
array$pFilter
int$pMaxCount
Возвращает
bool|CDBResult

См. определение в файле site_checker.php строка 140

◆ getNextStep()

getNextStep ( )
protected
Возвращает
int

См. определение в файле site_checker.php строка 430

◆ getPercent()

getPercent ( )

Return current percent of complete testing

Возвращает
int

См. определение в файле site_checker.php строка 127

◆ initializeAvailableTests()

initializeAvailableTests ( )
protected
Возвращает
bool

См. определение в файле site_checker.php строка 447

◆ initializeNeededTests()

initializeNeededTests ( $pTests)
protected
Аргументы
string | array$pTests
Возвращает
bool

См. определение в файле site_checker.php строка 457

◆ isAllTestCompleted()

isAllTestCompleted ( )
Возвращает
bool

См. определение в файле site_checker.php строка 311

◆ isAnyCheckingExists()

isAnyCheckingExists ( )

См. определение в файле site_checker.php строка 287

◆ isNewTestNeeded()

isNewTestNeeded ( )
static

Return true if administrator must run testing

Возвращает
bool

@global CCacheManager $CACHE_MANAGER

См. определение в файле site_checker.php строка 225

◆ makeParamsForTest()

makeParamsForTest ( $pTestName,
$pParams )
protected
Аргументы
string$pTestName
array$pParams
Возвращает
array

См. определение в файле site_checker.php строка 412

◆ OnAdminInformerInsertItems()

OnAdminInformerInsertItems ( )
static
Возвращает
bool

@global CUser $USER

См. определение в файле site_checker.php строка 353

◆ runTestPackage()

runTestPackage ( $pType = "",
$pIsFirstStart = false,
$pIsCheckRequirementsNeeded = true )
static

Run several tests

Аргументы
string | array$pType
bool$pIsFirstStart
bool$pIsCheckRequirementsNeeded
Возвращает
array|bool

См. определение в файле site_checker.php строка 98

◆ startTesting()

startTesting ( $pParams = array())

Start testing and return results

Аргументы
array$pParams
Возвращает
array|bool

См. определение в файле site_checker.php строка 50

Поля

◆ $allTests

$allTests = array()
protected

См. определение в файле site_checker.php строка 14

◆ $dbFields

$dbFields = array("ID", "TEST_DATE", "RESULTS")
staticprotected

См. определение в файле site_checker.php строка 19

◆ $isCheckRequirementsNeeded

$isCheckRequirementsNeeded = true
protected

См. определение в файле site_checker.php строка 22

◆ $neededTestName

$neededTestName = ""
protected

См. определение в файле site_checker.php строка 17

◆ $neededTests

$neededTests = ""
protected

См. определение в файле site_checker.php строка 16

◆ $sessionData

$sessionData = null
protected

См. определение в файле site_checker.php строка 21

◆ ADMIN_PAGE_URL

const ADMIN_PAGE_URL = "/bitrix/admin/security_scanner.php"

См. определение в файле site_checker.php строка 8

◆ CACHE_BASE_ID

const CACHE_BASE_ID = "sec_site_check"

См. определение в файле site_checker.php строка 11

◆ CACHE_DIR

const CACHE_DIR = "/security/site_checker"

См. определение в файле site_checker.php строка 10

◆ CHECKING_REPEAT_TIME

const CHECKING_REPEAT_TIME = 2592000

См. определение в файле site_checker.php строка 9

◆ SESSION_DATA_KEY

const SESSION_DATA_KEY = "SECURITY_SITE_CHECKER"

См. определение в файле site_checker.php строка 12


Объявления и описания членов класса находятся в файле: