PEAR logo

PEAR_PackageFileManager : The Definitive Guide



Chapter 6. Setting options

Table of Contents

List of options

This lesson :

List of options

Default behavior may be changed in many way. First one is to define options with the setOptions() method. Here are the list of all available options, with their default values:

Table 6.1.  Reference of generation options for package.xml 2.0

Name Type Default
packagefile string package.xml
filelistgenerator string file
license string PHP License
baseinstalldir string null
changelogoldtonew boolean true
roles array
           
array(
   'h' => 'src',
   'c' => 'src',
   'm4' => 'src',
   'w32' => 'src',
   'dll' => 'ext',
   'php' => 'php',
   'html' => 'doc',
   '*' => 'data',
)
           
          
dir_roles array
           
array(
   'docs' => 'doc',
   'examples' => 'doc',
   'tests' => 'test',
)
           
          
exceptions array array()
installexceptions array array()
ignore array array()
include array array()
notes string null
changelognotes mixed (string | boolean) false
outputdirectory mixed (string | boolean) false
pathtopackagefile mixed (string | boolean) false
lang string en
replacements array array()
globalreplacements array array()
globalreplaceexceptions array array()
simpleoutput boolean false
addhiddenfiles boolean false
cleardependencies boolean false
clearcontents boolean true
clearchangelog boolean false
PEAR_PackageFileManager : The Definitive Guide v 1.6.0 : November 17, 2006