util/PearPackageScanner.php
Part of phing, the PHP build tool
PHP version 5
- Author
- Christian Weiske
- Category
- Util
- License
- LGPL v3 or later http://www.gnu.org/licenses/lgpl.html
- Link
- https://gitorious.org/phing/pearPackageFileSet
- Package
- phing.util
- Version
- SVN: $Id: PearPackageScanner.php 1359 2011-11-01 21:52:28Z mrook $
\PearPackageScanner
Package: phing\util
Scans for files in a PEAR package.
- Parent(s)
- \DirectoryScanner
- Author
- Christian Weiske
- Category
- Util
- License
- LGPL v3 or later http://www.gnu.org/licenses/lgpl.html
- Link
- https://gitorious.org/phing/pearPackageFileSet
Properties
Methods

loadPackageInfo(
)
:
\PEAR_PackageFile_v2Loads and returns the PEAR package information.
Returns
Throws
| Type | Description |
|---|---|
| \PEAR_PackageFile_v2 | Package information object |
| Exception | Description |
|---|---|
| \BuildException | When the package does not exist |

scan(
)
:
booleanGenerates the list of included files and directories
Returns
Details
| Type | Description |
|---|---|
| boolean | True if all went well, false if something was wrong |
- Uses
- \$filesIncluded
- Uses
- \$filesDeselected
- Uses
- \$filesNotIncluded
- Uses
- \$filesExcluded
- Uses
- \$everythingIncluded
- Uses
- \$dirsIncluded
- Uses
- \$dirsDeselected
- Uses
- \$dirsNotIncluded
- Uses
- \$dirsExcluded

setChannel(
string $channel
)
:
voidSets the name of the package channel name
Parameters
| Name | Type | Description |
|---|---|---|
| $channel | string | package channel name or alias |

setConfig(
string $config
)
:
voidSets the full path to the PEAR configuration file
Parameters
| Name | Type | Description |
|---|---|---|
| $config | string | Configuration file |

setPackage(
string $package
)
:
voidSets the name of the PEAR package to get the files from
Parameters
| Name | Type | Description |
|---|---|---|
| $package | string | Package name without channel |