Dotclear 2.26
Loading...
Searching...
No Matches
fileUnzip Class Reference

Public Member Functions

 __construct ($file_name)
 
 __destruct ()
 
 close ()
 
 getList ($stop_on_file=false, $exclude=false)
 
 unzipAll ($target)
 
 unzip ($file_name, $target=false)
 
 getFilesList ()
 
 getDirsList ()
 
 getRootDir ()
 
 isEmpty ()
 
 hasFile ($f)
 
 setExcludePattern ($pattern)
 

Protected Member Functions

 fp ()
 
 isFileExcluded ($f)
 
 putContent ($content, $target=false)
 
 testTargetDir ($dir)
 
 uncompress ($content, $mode, $size, $target=false)
 
 loadFileListByEOF ($stop_on_file=false, $exclude=false)
 
 loadFileListBySignatures ($stop_on_file=false, $exclude=false)
 
 getFileHeaderInformation ($start_offset=false)
 
 getTimeStamp ($date, $time)
 
 cleanFileName ($n)
 
 memoryAllocate ($size)
 

Protected Attributes

 $file_name
 
 $compressed_list = []
 
 $eo_central = []
 
 $zip_sig = "\x50\x4b\x03\x04"
 
 $dir_sig = "\x50\x4b\x01\x02"
 
 $dir_sig_e = "\x50\x4b\x05\x06"
 
 $fp = null
 
 $memory_limit = null
 
 $exclude_pattern = ''
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $file_name)

References $file_name.

◆ __destruct()

__destruct ( )

References close().

Member Function Documentation

◆ close()

close ( )

References fp().

Referenced by __destruct().

◆ getList()

getList (   $stop_on_file = false,
  $exclude = false 
)

◆ unzipAll()

unzipAll (   $target)

References getList(), and unzip().

◆ unzip()

unzip (   $file_name,
  $target = false 
)

◆ getFilesList()

getFilesList ( )

References getList().

Referenced by getRootDir().

◆ getDirsList()

getDirsList ( )

References getList().

Referenced by getRootDir().

◆ getRootDir()

getRootDir ( )

◆ isEmpty()

isEmpty ( )

References getList().

◆ hasFile()

hasFile (   $f)

References getList().

◆ setExcludePattern()

setExcludePattern (   $pattern)

◆ fp()

◆ isFileExcluded()

isFileExcluded (   $f)
protected

Referenced by unzip().

◆ putContent()

putContent (   $content,
  $target = false 
)
protected

Referenced by uncompress(), and unzip().

◆ testTargetDir()

testTargetDir (   $dir)
protected

Referenced by unzip().

◆ uncompress()

uncompress (   $content,
  $mode,
  $size,
  $target = false 
)
protected

References memoryAllocate(), and putContent().

Referenced by unzip().

◆ loadFileListByEOF()

loadFileListByEOF (   $stop_on_file = false,
  $exclude = false 
)
protected

◆ loadFileListBySignatures()

loadFileListBySignatures (   $stop_on_file = false,
  $exclude = false 
)
protected

References $fp, fp(), and getFileHeaderInformation().

Referenced by getList().

◆ getFileHeaderInformation()

getFileHeaderInformation (   $start_offset = false)
protected

◆ getTimeStamp()

getTimeStamp (   $date,
  $time 
)
protected

◆ cleanFileName()

cleanFileName (   $n)
protected

◆ memoryAllocate()

memoryAllocate (   $size)
protected

Referenced by uncompress(), and unzip().

Field Documentation

◆ $file_name

$file_name
protected

Referenced by __construct(), and unzip().

◆ $compressed_list

$compressed_list = []
protected

◆ $eo_central

$eo_central = []
protected

◆ $zip_sig

$zip_sig = "\x50\x4b\x03\x04"
protected

◆ $dir_sig

$dir_sig = "\x50\x4b\x01\x02"
protected

◆ $dir_sig_e

$dir_sig_e = "\x50\x4b\x05\x06"
protected

◆ $fp

◆ $memory_limit

$memory_limit = null
protected

◆ $exclude_pattern

$exclude_pattern = ''
protected

The documentation for this class was generated from the following file: