types/PearPackageFileSet.php

Show: inherited
Table of Contents

Part of phing, the PHP build tool

PHP version 5

Author
Christian Weiske  
Category
Types  
License
LGPL v3 or later http://www.gnu.org/licenses/lgpl.html  
Link
https://gitorious.org/phing/pearPackageFileSet  
Package
phing.types  
Version
SVN: $Id: PearPackageFileSet.php 1358 2011-11-01 21:37:49Z mrook $  

\PearPackageFileSet

Package: phing\types

Fileset that contains files of an installed PEAR package.

It can be used to package up PEAR package dependencies in own release files (zip, tgz, phar).

Parent(s)
\FileSet < \AbstractFileSet < \DataType < \ProjectComponent
Author
Christian Weiske  
Category
Types  
Internal
A normal fileset is used that way in CopyTask, rSTTask: $ds = $fs->getDirectoryScanner($project); $fromDir = $fs->getDir($project); $srcFiles = $ds->getIncludedFiles(); $srcDirs = $ds->getIncludedDirectories(); The scanner is used as follows: $ds->getBaseDir() $ds->scan()  
License
LGPL v3 or later http://www.gnu.org/licenses/lgpl.html  
Link
https://gitorious.org/phing/pearPackageFileSet  

Properties

Propertyprotectedstring  $channel= ''

Name of channel the package is from, e.g. "pear.php.net".

Details
Type
string
Propertyprotected  $config= ''

Full path to a PEAR config file.

If none provided, default one is used.

Details
Type
n/a
Propertyprotectedstring  $package= ''

Package name to get files from, e.g. "Console_CommandLine"

Details
Type
string
Propertyprotected\PearPackageScanner  $pps= ''

instance
Details
Type
\PearPackageScanner
Propertyprotected  $prefix= ''

Prefix to prepend to the file paths in the zip

Details
Type
n/a
Propertyprotectedstring  $role= ''php''

Use files of that role only.

Multiple roles are not supported, and you always have to specify one.

Default value'php'Details
Type
string

Methods

methodpublic__clone( ) : void
inherited

Return a FileSet that has the same basedir and same patternsets as this one.

Inherited from: \FileSet::__clone()
methodpublic__construct(  $fileset = null ) : void
inherited

Inherited from: \FileSet::__construct()
Parameters
Name Type Description
$fileset
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( ) : \PhingFile

Returns the base directory all package files are relative to

Returns
Type Description
\PhingFile Base directory
methodpublicgetDirectoryScanner( \Project $project ) : \PearPackageScanner

Creates and returns the pear package scanner.

Scanner already has scan() called.

Parameters
Name Type Description
$project \Project

Current phing project

Returns
Type Description
\PearPackageScanner
methodpublicgetProject( ) : void
methodpublicgetRef( ) : void
methodpublicgetSelectors( ) : void
methodpublichasPatterns( ) : void
methodpublichasSelectors( ) : void
methodpublicisReference( ) : void
methodprotectedloadPearPackageScanner( ) : void

Loads the package scanner instance into $this->pps

methodpubliclog( ) : void
inherited

Inherited from: ProjectComponent::log()\FileSet::log()
methodpublicnoChildrenAllowed( ) : void
methodpublicparsingComplete( ) : void
methodpublicselectorCount( ) : void
methodpublicselectorElements( ) : void
methodpublicsetCaseSensitive( ) : void
methodpublicsetConfig( string $config ) : void

Sets the full path to the PEAR configuration file

Parameters
Name Type Description
$config string

Configuration file

methodpublicsetDefaultexcludes( ) : void
methodpublicsetDescription( ) : void
methodpublicsetDir( ) : void
methodpublicsetExcludes( ) : void
methodpublicsetExcludesfile( ) : void
methodpublicsetExpandSymbolicLinks( ) : void
methodpublicsetIncludes( ) : void
methodpublicsetIncludesfile( ) : void
methodpublicsetPackage( string $package ) : void

Sets the package name.

If no channel is given, "pear.php.net" is used.

Parameters
Name Type Description
$package string

Single package name, or "channel/name" combination

methodpublicsetProject( ) : void
methodpublicsetRefid( ) : void
methodpublicsetRole( string $role ) : void

Sets the role of files that should be included.

Examples are php,doc,script

Parameters
Name Type Description
$role string

PEAR file role

methodprotectedsetupDirectoryScanner( ) : void
methodpublictooManyAttributes( ) : void
Documentation was generated by DocBlox 0.17.1.