|
1C-Bitrix 25.700.0
|
Открытые члены | |
| __construct ($strArchiveName, $bCompress=false, $start_time=-1, $max_exec_time=-1, $pos=0, $stepped=false) | |
| Pack ($arFileList, $startFile="") | |
| Unpack ($strPath) | |
| GetStartFile () | |
| SetOptions ($arOptions) | |
| GetOptions () | |
| Add ($vFileList, $strAddPath=false, $strRemovePath=false) | |
| addFile ($strFilename, $strAddPath, $strRemovePath) | |
| addString ($strFilename, $strFileContent) | |
| extractFiles ($strPath, $vFileList=false) | |
| extractContent () | |
| GetErrors () | |
| getFilePos () | |
Поля данных | |
| $_strArchiveName = "" | |
| $_bCompress = false | |
| $_strSeparator = " " | |
| $_dFile = 0 | |
| $_arErrors = [] | |
| $start_time = 0 | |
| $max_exec_time = 0 | |
| $file_pos = 0 | |
| $stepped = false | |
| Поля данных унаследованные от IBXArchive | |
| const | StatusError = 0 |
| const | StatusSuccess = 1 |
| const | StatusContinue = 2 |
См. определение в файле tar_gz.php строка 12
| __construct | ( | $strArchiveName, | |
| $bCompress = false, | |||
| $start_time = -1, | |||
| $max_exec_time = -1, | |||
| $pos = 0, | |||
| $stepped = false ) |
См. определение в файле tar_gz.php строка 34
Archives files and folders
| array | $vFileList | containing files and folders to be packed into archive |
| string | bool | $strAddPath | - if specified contains path to add to each packed file/folder |
| string | bool | $strRemovePath | - if specified contains path to remove from each packed file/folder |
См. определение в файле tar_gz.php строка 422
| addFile | ( | $strFilename, | |
| $strAddPath, | |||
| $strRemovePath ) |
Adds file into archive
| string | $strFilename | full path to file |
| string | $strAddPath | - if specified contains path to add to each packed file/folder |
| string | $strRemovePath | - if specified contains path to remove from each packed file/folder |
См. определение в файле tar_gz.php строка 477
| addString | ( | $strFilename, | |
| $strFileContent ) |
Adds string as a file into archive
| string | $strFilename | full path to file |
| string | $strFileContent | - file content |
См. определение в файле tar_gz.php строка 513
| extractContent | ( | ) |
Extract content of the archive
См. определение в файле tar_gz.php строка 572
| extractFiles | ( | $strPath, | |
| $vFileList = false ) |
Extract files from the archive
| string | $strPath | path where to extract |
| array | bool | $vFileList | if specified - array of files to be extracted, else - all files will be extracted |
См. определение в файле tar_gz.php строка 545
| GetErrors | ( | ) |
Returns an array containing error codes and messages. Call this method after Pack or Unpack
Замещает IBXArchive.
См. определение в файле tar_gz.php строка 594
| getFilePos | ( | ) |
Returns the position of the file for the next step
См. определение в файле tar_gz.php строка 795
| GetOptions | ( | ) |
Returns an array of packing/unpacking options and their current values
Замещает IBXArchive.
См. определение в файле tar_gz.php строка 397
| GetStartFile | ( | ) |
Called from the archive object it returns the name of the file for the next step during multistep archivation. Call if Pack method returned 2
Замещает IBXArchive.
См. определение в файле tar_gz.php строка 186
| Pack | ( | $arFileList, | |
| $startFile = "" ) |
Packs files and folders into archive
| array | $arFileList | containing files and folders to be packed into archive |
| string | $startFile | - if specified then all files before it won't be packed during the traversing of $arFileList. Can be used for multistep archivation |
Замещает IBXArchive.
См. определение в файле tar_gz.php строка 81
| SetOptions | ( | $arOptions | ) |
Lets the user define packing/unpacking options
| array | $arOptions | an array with the options' names and their values |
Замещает IBXArchive.
См. определение в файле tar_gz.php строка 337
| Unpack | ( | $strPath | ) |
Unpacks archive into specified folder
| string | $strPath | - path to the directory to unpack archive to |
Замещает IBXArchive.
См. определение в файле tar_gz.php строка 163
| $_arErrors = [] |
См. определение в файле tar_gz.php строка 18
| $_bCompress = false |
См. определение в файле tar_gz.php строка 15
| $_dFile = 0 |
См. определение в файле tar_gz.php строка 17
| $_strArchiveName = "" |
См. определение в файле tar_gz.php строка 14
| $_strSeparator = " " |
См. определение в файле tar_gz.php строка 16
| $file_pos = 0 |
См. определение в файле tar_gz.php строка 21
| $max_exec_time = 0 |
См. определение в файле tar_gz.php строка 20
| $start_time = 0 |
См. определение в файле tar_gz.php строка 19
| $stepped = false |
См. определение в файле tar_gz.php строка 22