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

Public Member Functions

 __construct ($out_fp)
 
 __destruct ()
 
 close ()
 
 addExclusion ($reg)
 
 addFile ($file, $name=null)
 
 addDirectory ($dir, $name=null, $recursive=false)
 
 write ()
 

Protected Member Functions

 writeDirectory ($name)
 
 writeFile ($name, $file, $size, $mtime)
 
 formatName ($name)
 
 isExcluded ($name)
 
 makeDate ($ts)
 
 makeTime ($ts)
 
 memoryAllocate ($size)
 

Protected Attributes

 $entries = []
 
 $root_dir = null
 
 $ctrl_dir = []
 
 $eof_ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00"
 
 $old_offset = 0
 
 $fp
 
 $memory_limit = null
 
 $exclusions = []
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $out_fp)

◆ __destruct()

__destruct ( )

References close().

Member Function Documentation

◆ close()

close ( )

Referenced by __destruct().

◆ addExclusion()

addExclusion (   $reg)

◆ addFile()

addFile (   $file,
  $name = null 
)

References formatName(), and isExcluded().

Referenced by addDirectory().

◆ addDirectory()

addDirectory (   $dir,
  $name = null,
  $recursive = false 
)

◆ write()

write ( )

References writeDirectory(), and writeFile().

◆ writeDirectory()

writeDirectory (   $name)
protected

References makeDate(), and makeTime().

Referenced by write().

◆ writeFile()

writeFile (   $name,
  $file,
  $size,
  $mtime 
)
protected

References makeDate(), makeTime(), and memoryAllocate().

Referenced by write().

◆ formatName()

formatName (   $name)
protected

Referenced by addDirectory(), and addFile().

◆ isExcluded()

isExcluded (   $name)
protected

Referenced by addDirectory(), and addFile().

◆ makeDate()

makeDate (   $ts)
protected

Referenced by writeDirectory(), and writeFile().

◆ makeTime()

makeTime (   $ts)
protected

Referenced by writeDirectory(), and writeFile().

◆ memoryAllocate()

memoryAllocate (   $size)
protected

Referenced by writeFile().

Field Documentation

◆ $entries

$entries = []
protected

◆ $root_dir

$root_dir = null
protected

◆ $ctrl_dir

$ctrl_dir = []
protected

◆ $eof_ctrl_dir

$eof_ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00"
protected

◆ $old_offset

$old_offset = 0
protected

◆ $fp

$fp
protected

◆ $memory_limit

$memory_limit = null
protected

◆ $exclusions

$exclusions = []
protected

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