PHP Class AdminPageFramework_Zip, admin-page-framework

Mostrar archivo Open project: michaeluno/admin-page-framework Class Usage Examples

Public Properties

Property Type Description
$aCallbacks
$aOptions
$sDestination
$sSource

Public Methods

Method Description
__construct ( $sSource, $sDestination, $abOptions = false, array $aCallbacks = [] )
_replyToCompressDirectory ( ZipArchive $oZip, $sSourceDirPath, array $aCallbacks = [], $bIncludeDir = false, array $aAdditionalSourceDirs = [] )
_replyToCompressFile ( ZipArchive $oZip, $sSourceFilePath, $aCallbacks = null )
_replyToReturnFalse ( )
compress ( )

Private Methods

Method Description
_addArchiveItem ( ZipArchive $oZip, $sSource, $_sIterationItem, array $aCallbacks, $sInsidePathPrefix = '' )
_addArchiveItems ( $oZip, $aSourceDirPaths, $aCallbacks, $sRootDirName = '' )
_addEmptyDir ( ZipArchive $oZip, $sInsidePath, $oCallable )
_addFromString ( ZipArchive $oZip, $sInsidePath, $sSourceContents = '', array $aCallbacks = [] )
_addRelativeDir ( $oZip, $sRelativeDirPath, $oCallable )
_getFilteredArchivePath ( $sArchivePath, $oCallable )
_getFormattedOptions ( $abOptions )
_getMainDirectoryName ( $sSource )
_getSanitizedSourcePath ( $sPath )
_getSourceType ( $sSource )
isFeasible ( $sSource )

Method Details

__construct() public method

public __construct ( $sSource, $sDestination, $abOptions = false, array $aCallbacks = [] )
$aCallbacks array

_replyToCompressDirectory() public method

public _replyToCompressDirectory ( ZipArchive $oZip, $sSourceDirPath, array $aCallbacks = [], $bIncludeDir = false, array $aAdditionalSourceDirs = [] )
$oZip ZipArchive
$aCallbacks array
$aAdditionalSourceDirs array

_replyToCompressFile() public method

public _replyToCompressFile ( ZipArchive $oZip, $sSourceFilePath, $aCallbacks = null )
$oZip ZipArchive

_replyToReturnFalse() public method

public _replyToReturnFalse ( )

compress() public method

public compress ( )

Property Details

$aCallbacks public_oe property

public $aCallbacks

$aOptions public_oe property

public $aOptions

$sDestination public_oe property

public $sDestination

$sSource public_oe property

public $sSource