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

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

static GetArchive ($strArcName, $strType="")
static DetectTypeByFilename ($filename)
static GetAvailableFormats ()
static GetArchiveExtensions ()
static IsArchive ($strFilename)
static HasAccess ($strFilename, $isFile)
static IsFileSafe (string $filename)

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

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

Методы

◆ DetectTypeByFilename()

DetectTypeByFilename ( $filename)
static

Finds the type of the archive by its filename

Аргументы
string$filenamefull path to the file
Возвращает
false|string $type code of the type if it's supported (TAR.GZ, ZIP), false if archive type is not found for the file

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

◆ GetArchive()

GetArchive ( $strArcName,
$strType = "" )
static

Creates an object of the archive

Аргументы
string$strArcNamefull path to the archive file to be created
string$strTypeone of the supported archive types (TAR.GZ, ZIP etc.)
Возвращает
false | IBXArchive object of a specific class, false if type is not supported or path is incorrect

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

◆ GetArchiveExtensions()

GetArchiveExtensions ( )
static

Returns the array of file extensions which are considered as archives

Возвращает
array containing extensions in lower case

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

◆ GetAvailableFormats()

GetAvailableFormats ( )
static

Contains information about archives supported by the system

Возвращает
array containing archive type code, classname, extensions, classpath for each type

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

◆ HasAccess()

HasAccess ( $strFilename,
$isFile )
static

Checks if current user has access to the file or folder according to Bitrix permissions

Аргументы
string$strFilenamefull path to the file
boolean$isFiletrue if we check file permissions, false if folder permissions should be checked
Возвращает
boolean

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

◆ IsArchive()

IsArchive ( $strFilename)
static

Checks if the file is archive of the suppoted type

Аргументы
string$strFilenamefull path to the archive to be checked
Возвращает
boolean

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

◆ IsFileSafe()

IsFileSafe ( string $filename)
static

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


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