Свойство | Тип | Описание | |
---|---|---|---|
$compression_level | integer | Ranges from 0 to 9, with 9 being the highest level. | |
$directory | string | Zip data for a directory in string form | |
$entries | integer | Number of files/folder in zip file | |
$file_num | integer | Number of files in zip | |
$now | integer | Reference to time at init | |
$offset | integer | relative offset of local header | |
$zipdata | string | Zip data in string form |
Метод | Описание | |
---|---|---|
__construct ( ) : void | Initialize zip compression class | |
add_data ( mixed $filepath, string $data = NULL ) : void | Add Data to Zip | |
add_dir ( mixed $directory ) : void | Add Directory | |
archive ( string $filepath ) : boolean | Write File to the specified directory | |
clear_data ( ) : CI_Zip | Initialize Data | |
download ( string $filename = 'backup.zip' ) : void | Download | |
get_zip ( ) : string | Get the Zip file | |
read_dir ( string $path, boolean $preserve_filepath = TRUE, string $root_path = NULL ) : boolean | Read a directory and add it to the zip. | |
read_file ( string $path, boolean $archive_filepath = FALSE ) : boolean | Read the contents of a file and add it to the zip |
Метод | Описание | |
---|---|---|
_add_data ( string $filepath, string $data, integer $file_mtime, integer $file_mdate ) : void | Add Data to Zip | |
_add_dir ( string $dir, integer $file_mtime, integer $file_mdate ) : void | Add Directory | |
_get_mod_time ( string $dir ) : array | Get file/directory modification time |
public __construct ( ) : void | ||
Результат | void |
protected _get_mod_time ( string $dir ) : array | ||
$dir | string | path to file |
Результат | array | filemtime/filemdate |
public clear_data ( ) : CI_Zip | ||
Результат | CI_Zip |
public int $compression_level | ||
Результат | integer |
public string $directory | ||
Результат | string |
public int $entries | ||
Результат | integer |