# tasks/ext/phar/PharPackageTask.php

## \PharPackageTask
jump to top

Package: phing\tasks\ext

Package task for {@link http://ru.php.net/manual/en/book.phar.php Phar technology}.

Parent(s)
  \MatchingTask < \Task < \ProjectComponent
Author
  Alexey Shockov
Since
  2.4.0

### Properties

`string $alias= ''`

Details

Type
  string

`\PhingFile $baseDirectory= ''`

Base directory, from where local package paths will be calculated.

Details

Type
  \PhingFile

`\PhingFile $cliStubFile= ''`

Details

Type
  \PhingFile

`int $compression= 'Phar::NONE'`

Default value `Phar::NONE` Details

Type
  int

`\PhingFile $destinationFile= ''`

Details

Type
  \PhingFile

`array $filesets= 'array()'`

Default value `array()`Details

Type
  array

`\PharMetadata $metadata= 'null'`

Default value `null` Details

Type
  \PharMetadata

`int $signatureAlgorithm= 'Phar::SHA1'`

Default value `Phar::SHA1` Details

Type
  int

`string $stubPath= ''`

Details

Type
  string

`\PhingFile $webStubFile= ''`

Details

Type
  \PhingFile

### Methods

`__construct( ) : void`

`appendSelector( ) : void`

`buildPhar( ) : \Phar`

Build and configure Phar object.

Returns

Type | Description
--- | ---
\Phar |

`checkPreconditions( ) : void`

Throws

Exception | Description
--- | ---
\BuildException |

`createAnd( ) : void`

`createContains( ) : void`

`createCustom( ) : void`

`createDate( ) : void`

`createDepend( ) : void`

`createDepth( ) : void`

`createExclude( ) : void`

`createExcludesFile( ) : void`

`createFileSet( ) : \FileSet`

Returns

Type | Description
--- | ---
\FileSet |

`createFilename( ) : void`

`createInclude( ) : void`

`createIncludesFile( ) : void`

`createMajority( ) : void`

`createMetadata( ) : \PharMetadata`

Returns

Type | Description
--- | ---
\PharMetadata |

`createNone( ) : void`

`createNot( ) : void`

`createOr( ) : void`

`createPatternSet( ) : void`

`createPresent( ) : void`

`createSelector( ) : void`

`createSize( ) : void`

`getDescription( ) : void`

`getDirectoryScanner( ) : void`

`getImplicitFileSet( ) : void`
final

`getLocation( ) : void`

`getOwningTarget( ) : void`

`getProject( ) : void`

`getRegisterSlot( ) : void`

`getRuntimeConfigurableWrapper( ) : void`

`getSelectors( ) : void`

`getTaskName( ) : void`

`getTaskType( ) : void`

`hasSelectors( ) : void`

`init( ) : void`

`log( ) : void`

`main( ) : void`

Throws

Exception | Description
--- | ---
\BuildException |

`maybeConfigure( ) : void`

`perform( ) : void`

`selectorCount( ) : void`

`selectorElements( ) : void`

`setAlias( $alias ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$alias |  |

`setBaseDir( \PhingFile $baseDirectory ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$baseDirectory | \PhingFile |

`setCaseSensitive( ) : void`

`setCliStub( \PhingFile $stubFile ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$stubFile | \PhingFile |

`setCompression( string $compression ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$compression | string |

`setDefaultexcludes( ) : void`

`setDescription( ) : void`

`setDestFile( \PhingFile $destinationFile ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$destinationFile | \PhingFile |

`setExcludes( ) : void`

`setExcludesfile( ) : void`

`setFollowSymlinks( ) : void`

`setIncludes( ) : void`

`setIncludesfile( ) : void`

`setLocation( ) : void`

`setOwningTarget( ) : void`

`setProject( ) : void`

`setRuntimeConfigurableWrapper( ) : void`

`setSignature( string $algorithm ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$algorithm | string |

`setStub( string $stubPath ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$stubPath | string |

`setTaskName( ) : void`

`setTaskType( ) : void`

`setWebStub( \PhingFile $stubFile ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$stubFile | \PhingFile |

Documentation was generated by DocBlox 0.17.1.