См. определение в файле zip.php строка 11
◆ __construct()
◆ Add()
Add |
( |
| $arFileList, |
|
|
| $arParams = 0 ) |
Archives files and folders
- Аргументы
-
array | $arFileList | containing files and folders to be packed into archive |
array | int | $arParams | - if specified contains options to use for archivation |
- Возвращает
- array|int 0 or false if error, array with the list of packed files and folders if success. Errors can be seen using GetErrors() method
См. определение в файле zip.php строка 574
◆ Create()
Create |
( |
| $arFileList, |
|
|
| $arParams = 0 ) |
Creates an archive
- Аргументы
-
array | $arFileList | containing files and folders to be added to the archive |
array | int | $arParams | an array of parameters |
- Возвращает
- array|int 0 if error, array $arResultList with packed files if success
См. определение в файле zip.php строка 523
◆ Delete()
Deletes a file from the archive
- Аргументы
-
array | $arParams | rules defining which files should be deleted |
- Возвращает
- array|int 0 if error, array $arResultList with deleted files if success
См. определение в файле zip.php строка 693
◆ Extract()
Extracts archive content
- Аргументы
-
array | int | $arParams | an array of parameters |
- Возвращает
- array|int 0 or false if error, array of extracted files and folders if success. Errors can be seen using GetErrors() method
См. определение в файле zip.php строка 649
◆ GetContent()
Returns the list of files and folders in the archive
- Возвращает
- array|int 0 if error, array of results if success
См. определение в файле zip.php строка 625
◆ GetErrors()
Returns an array containing error codes and messages. Call this method after Pack or Unpack
- Возвращает
- array
Замещает IBXArchive.
См. определение в файле zip.php строка 512
◆ GetOptions()
Returns an array of packing/unpacking options and their current values
- Возвращает
- array
Замещает IBXArchive.
См. определение в файле zip.php строка 493
◆ GetProperties()
Returns archive properties
- Возвращает
- array|int 0 if error, array $arProperties if success
См. определение в файле zip.php строка 728
◆ 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
- Возвращает
- string path to file
Замещает IBXArchive.
См. определение в файле zip.php строка 396
◆ Pack()
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 |
- Возвращает
- mixed 0 or false if error, 1 if success, 2 if the next step should be performed. Errors can be seen using GetErrors() method
Замещает IBXArchive.
См. определение в файле zip.php строка 48
◆ SetOptions()
Lets the user define packing/unpacking options
- Аргументы
-
array | $arOptions | an array with the options' names and their values |
- Возвращает
- void
Замещает IBXArchive.
См. определение в файле zip.php строка 451
◆ Unpack()
Unpacks archive into specified folder
- Аргументы
-
string | $strPath | - path to the directory to unpack archive to |
- Возвращает
- mixed 0 or false if error, 1 if success. Errors can be seen using GetErrors() method
Замещает IBXArchive.
См. определение в файле zip.php строка 406
◆ $zipfile
◆ $zipname
◆ ReadBlockSize
const ReadBlockSize = 2048 |
Объявления и описания членов класса находятся в файле:
- C:/bitrix/modules/main/classes/general/zip.php