Метод | Описание | |
---|---|---|
__construct ( ) : none | Constructor. | |
__destroy ( ) : none | Free the file resource Automatic destroy. | |
allow ( $ext = null ) : none | What extensions do we want out of this ZIP. | |
close ( ) : none | Free the file resource. | |
debug_string ( $open = '<p>', $close = '</p>' ) : string | Show debug messages. | |
error_string ( $open = '<p>', $close = '</p>' ) : string | Show error messages. | |
extract ( $zip_file, $target_dir = null, $preserve_filepath = true ) : none | Unzip all files in archive. | |
native_unzip ( $zip_file, $target_dir = null, $preserve_filepath = true ) | -------------------------------------------------------------------- | |
old_____extract ( $zip_file, $target_dir = null, $preserve_filepath = true ) | ||
set_debug ( $string ) : none | Save debug data. | |
set_error ( $string ) : none | Save errors. |
Метод | Описание | |
---|---|---|
_extract_file ( $compressed_file_name, $target_file_name = false, $underscore_case = false ) : Unziped | Unzip file in archive. | |
_get_file_header ( &$fh, $start_offset = false ) | -------------------------------------------------------------------- | |
_list_files ( $stop_on_file = false ) : mixed | List all files in archive. | |
_load_file_list_by_eof ( &$fh, $stop_on_file = false ) | -------------------------------------------------------------------- | |
_load_files_by_signatures ( &$fh, $stop_on_file = false ) | -------------------------------------------------------------------- | |
_uncompress ( $content, $mode, $uncompressed_size, $target_file_name = false ) : none | Uncompress file. And save it to the targetFile. |
public __destroy ( ) : none | ||
Результат | none |
public allow ( $ext = null ) : none | ||
Результат | none |
public debug_string ( $open = '<p>', $close = '</p>' ) : string | ||
Результат | string |
public error_string ( $open = '<p>', $close = '</p>' ) : string | ||
Результат | string |
public extract ( $zip_file, $target_dir = null, $preserve_filepath = true ) : none | ||
Результат | none |
public native_unzip ( $zip_file, $target_dir = null, $preserve_filepath = true ) |
public old_____extract ( $zip_file, $target_dir = null, $preserve_filepath = true ) |