tasks/ext/ZipTask.php

Show: inherited
Table of Contents

\ZipFileSet

Package: phing\tasks\ext

This is a FileSet with the to specify permissions.

Permissions are currently not implemented by PEAR Archive_Tar, but hopefully they will be in the future.

Parent(s)
\FileSet < \AbstractFileSet < \DataType < \ProjectComponent

Properties

Propertyprivate  $files= 'null'
Default valuenullDetails
Type
n/a

Methods

methodpublic__clone( ) : void

methodpublic__construct( ) : void

methodpublicappendSelector( ) : void

methodpubliccircularReference( ) : void

methodpubliccreateAnd( ) : void

methodpubliccreateContains( ) : void

methodpubliccreateContainsRegexp( ) : void

methodpubliccreateCustom( ) : void

methodpubliccreateDate( ) : void

methodpubliccreateDepend( ) : void

methodpubliccreateDepth( ) : void

methodpubliccreateExclude( ) : void

methodpubliccreateExcludesFile( ) : void

methodpubliccreateFilename( ) : void

methodpubliccreateInclude( ) : void

methodpubliccreateIncludesFile( ) : void

methodpubliccreateMajority( ) : void

methodpubliccreateNone( ) : void

methodpubliccreateNot( ) : void

methodpubliccreateOr( ) : void

methodpubliccreatePatternSet( ) : void

methodpubliccreatePresent( ) : void

methodpubliccreateSelector( ) : void

methodpubliccreateSize( ) : void

methodpubliccreateType( ) : void

methodpublicdieOnCircularReference( ) : void

methodpublicgetCheckedRef( ) : void

methodpublicgetDescription( ) : void

methodpublicgetDir( ) : void

methodpublicgetDirectoryScanner( ) : void

methodpublicgetFiles(  $p,  $includeEmpty = true ) : void

Get a list of files and directories specified in the fileset.

@return array a list of file and directory names, relative to the baseDir for the project.

Parameters
Name Type Description
$p
$includeEmpty
methodpublicgetProject( ) : void

methodpublicgetRef( ) : void

methodpublicgetSelectors( ) : void

methodpublichasPatterns( ) : void

methodpublichasSelectors( ) : void

methodpublicisReference( ) : void

methodpubliclog( ) : void

methodpublicnoChildrenAllowed( ) : void

methodpublicparsingComplete( ) : void

methodpublicselectorCount( ) : void

methodpublicselectorElements( ) : void

methodpublicsetCaseSensitive( ) : void

methodpublicsetDefaultexcludes( ) : void

methodpublicsetDescription( ) : void

methodpublicsetDir( ) : void

methodpublicsetExcludes( ) : void

methodpublicsetExcludesfile( ) : void

methodpublicsetExpandSymbolicLinks( ) : void

methodpublicsetIncludes( ) : void

methodpublicsetIncludesfile( ) : void

methodpublicsetProject( ) : void

methodpublicsetRefid( ) : void

methodprotectedsetupDirectoryScanner( ) : void

methodpublictooManyAttributes( ) : void

\ZipTask

Package: phing\tasks\ext

Creates a zip archive using PHP ZipArchive extension/

Parent(s)
\MatchingTask < \Task < \ProjectComponent
Author
Michiel Rook  
Since
2.1.0  
Version
$Id: ZipTask.php 1379 2011-12-07 19:59:40Z mrook $  

Properties

Propertyprivate\PhingFile  $baseDir= ''

Details
Type
\PhingFile
Propertyprivate  $fileSetFiles= 'array()'
Default valuearray()Details
Type
n/a
Propertyprivate  $filesets= 'array()'
Default valuearray()Details
Type
n/a
Propertyprivate  $includeEmpty= 'true'

Whether to include empty dirs in the archive.

Default valuetrueDetails
Type
n/a
Propertyprivatestring  $prefix= 'null'

File path prefix in zip archive

Default valuenullDetails
Type
string
Propertyprivate\PhingFile  $zipFile= ''

Details
Type
\PhingFile

Methods

methodpublic__construct( ) : void

methodpublicappendSelector( ) : void

methodprotectedarchiveIsUpToDate( array $files, \PhingFile $dir ) : boolean

Parameters
Name Type Description
$files array

array of filenames

$dir \PhingFile
Returns
Type Description
boolean
methodpubliccreateAnd( ) : void

methodpubliccreateContains( ) : void

methodpubliccreateCustom( ) : void

methodpubliccreateDate( ) : void

methodpubliccreateDepend( ) : void

methodpubliccreateDepth( ) : void

methodpubliccreateExclude( ) : void

methodpubliccreateExcludesFile( ) : void

methodpubliccreateFileSet( ) : \FileSet

Add a new fileset.

Returns
Type Description
\FileSet
methodpubliccreateFilename( ) : void

methodpubliccreateInclude( ) : void

methodpubliccreateIncludesFile( ) : void

methodpubliccreateMajority( ) : void

methodpubliccreateNone( ) : void

methodpubliccreateNot( ) : void

methodpubliccreateOr( ) : void

methodpubliccreatePatternSet( ) : void

methodpubliccreatePresent( ) : void

methodpubliccreateSelector( ) : void

methodpubliccreateSize( ) : void

methodpublicgetDescription( ) : void

methodprotectedgetDirectoryScanner( ) : void

methodprotectedgetImplicitFileSet( ) : void
final

methodpublicgetLocation( ) : void

methodpublicgetOwningTarget( ) : void

methodpublicgetProject( ) : void

methodprotectedgetRegisterSlot( ) : void

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodpublicgetSelectors( ) : void

methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodpublichasSelectors( ) : void

methodpublicinit( ) : void

methodpubliclog( ) : void

methodpublicmain( ) : void

do the work

Throws
Exception Description
\BuildException
methodpublicmaybeConfigure( ) : void

methodpublicperform( ) : void

methodpublicselectorCount( ) : void

methodpublicselectorElements( ) : void

methodpublicsetBasedir( \PhingFile $baseDir ) : void

This is the base directory to look in for things to zip.

Parameters
Name Type Description
$baseDir \PhingFile
methodpublicsetCaseSensitive( ) : void

methodpublicsetDefaultexcludes( ) : void

methodpublicsetDescription( ) : void

methodpublicsetDestFile( \PhingFile $destFile ) : void

Set is the name/location of where to create the zip file.

Parameters
Name Type Description
$destFile \PhingFile

The output of the zip

methodpublicsetExcludes( ) : void

methodpublicsetExcludesfile( ) : void

methodpublicsetFollowSymlinks( ) : void

methodpublicsetIncludeEmptyDirs( boolean $bool ) : void

Set the include empty dirs flag.

Parameters
Name Type Description
$bool boolean

Flag if empty dirs should be tarred too

Details
Access
public  
methodpublicsetIncludes( ) : void

methodpublicsetIncludesfile( ) : void

methodpublicsetLocation( ) : void

methodpublicsetOwningTarget( ) : void

methodpublicsetPrefix( string $prefix ) : void

Sets the file path prefix for file in the zip file.

Parameters
Name Type Description
$prefix string

Prefix

methodpublicsetProject( ) : void

methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

Documentation was generated by DocBlox 0.17.1.