PEAR_PackageFile_v2 (Constructor) [line 132]
PEAR_PackageFile_v2 PEAR_PackageFile_v2(
)
|
|
The constructor merely sets up the private error stack
analyzeSourceCode [line 1896]
void analyzeSourceCode(
$file, [
$string = false])
|
|
Parameters:
dependsOn [line 1555]
void dependsOn(
$package,
$channel)
|
|
Parameters:
flattenFilelist [line 652]
Convert a recursive set of <dir> and <file> tags into a single <dir> tag with <file> tags.
fromArray [line 798]
void fromArray(
array
$pinfo)
|
|
Directly set the array that defines this packagefile
WARNING: no validation. This should only be performed by internal methods inside PEAR or by inputting an array saved from an existing PEAR_PackageFile_v2
Parameters:
getArchiveFile [line 785]
getArray [line 822]
void getArray(
[
$forReg = false])
|
|
Parameters:
getBundledPackages [line 1821]
void getBundledPackages(
)
|
|
getChangelog [line 1784]
getChannel [line 889]
getCompatible [line 1480]
array|false getCompatible(
)
|
|
getConfigureOptions [line 1195]
array|false getConfigureOptions(
)
|
|
Return configure options array, if any
getContents [line 1357]
Retrieve the contents tag
getContributors [line 1014]
getDate [line 1060]
getDefaultGenerator [line 1887]
void &getDefaultGenerator(
)
|
|
getDependencies [line 1488]
getDependencyGroup [line 1603]
array|false getDependencyGroup(
string
$name)
|
|
Get the contents of a dependency group
Parameters:
getDeps [line 1632]
array|false getDeps(
[boolean
$raw = false], [
$nopearinstaller = false])
|
|
Retrieve a partial package.xml 1.0 representation of dependencies
a very limited representation of dependencies is returned by this method. The <exclude> tag for excluding certain versions of a dependency is completely ignored. In addition, dependency groups are ignored, with the assumption that all dependencies in dependency groups are also listed in the optional group that work with all dependency groups
Parameters:
getDescription [line 924]
getDevelopers [line 1006]
getDirtree [line 1417]
getExtends [line 908]
getFileContents [line 1842]
string getFileContents(
string
$file)
|
|
Get the contents of a file listed within the package.xml
Parameters:
getFilelist [line 1161]
void getFilelist(
[
$preserve = false])
|
|
This should only be used to retrieve filenames and install attributes
Parameters:
getHelpers [line 1022]
getInstallationFilelist [line 1234]
array getInstallationFilelist(
[
$forfilecheck = false])
|
|
Retrieve a list of files that should be installed on this computer
Parameters:
getInstalledBinary [line 170]
void getInstalledBinary(
)
|
|
getInstalledLocation [line 1332]
void getInstalledLocation(
$file)
|
|
Parameters:
getLastInstalledVersion [line 527]
string|false getLastInstalledVersion(
)
|
|
getLastModified [line 1829]
getLeads [line 998]
getLicense [line 1103]
void getLicense(
[
$raw = false])
|
|
Parameters:
getLicenseLocation [line 1118]
void getLicenseLocation(
)
|
|
getMaintainers [line 932]
void getMaintainers(
[
$raw = false])
|
|
Parameters:
getName [line 876]
getNotes [line 1126]
getPackage [line 881]
getPackageFile [line 780]
getPackageType [line 1743]
php|extsrc|extbin|zendextsrc|zendextbin|bundle|false getPackageType(
)
|
|
getPackagexmlVersion [line 1797]
void getPackagexmlVersion(
)
|
|
getPEARDependency2 [line 161]
To make unit-testing easier
Parameters:
getPEARDownloader [line 146]
To make unit-testing easier
Parameters:
getProvidesExtension [line 260]
string|false getProvidesExtension(
)
|
|
getReleases [line 1769]
array|false getReleases(
)
|
|
getRequestedGroup [line 505]
void getRequestedGroup(
)
|
|
getRW [line 1867]
getSourcePackage [line 1811]
array|false getSourcePackage(
)
|
|
getStability [line 1087]
getState [line 1095]
void getState(
[
$key = 'release'])
|
|
Parameters:
getSummary [line 916]
getTask [line 1951]
boolean getTask(
string
$task)
|
|
Determine whether a task name is a valid task. Custom tasks may be defined using subdirectories by putting a "-" in the name, as in <tasks:mycustom-task>
Note that this method will auto-load the task class file and test for the existence of the name with "-" replaced by "_" as in PEAR/Task/mycustom/task.php makes class PEAR_Task_mycustom_task
Parameters:
getTasksNs [line 1926]
getTime [line 1068]
getUri [line 900]
getUsesrole [line 1138]
array|false getUsesrole(
)
|
|
Return the <usesrole> tag contents, if any
getUsestask [line 1150]
array|false getUsestask(
)
|
|
Return the <usestask> tag contents, if any
getValidationWarnings [line 775]
getVersion [line 1079]
void getVersion(
[package|api
$key = 'release'])
|
|
Parameters:
hasDeps [line 1792]
initPostinstallScripts [line 586]
bool initPostinstallScripts(
)
|
|
Initialize post-install scripts for running
This method can be used to detect post-install scripts, as the return value indicates whether any exist
installBinary [line 182]
Installation of source package has failed, attempt to download and install the binary version of this package.
Parameters:
installedFile [line 1344]
void installedFile(
$file,
$atts)
|
|
This is only used at install-time, after all serialization is over.
Overridden in child classes as:
- PEAR_PackageFile_v2_rw::installedFile()
- This is only used at install-time, after all serialization is over.
Parameters:
isCompatible [line 1436]
Determines whether this package claims it is compatible with the version of
the package that has a recommended version dependency
Parameters:
isEquivalent [line 290]
Tests whether every part of the package.xml 1.0 is represented in
this package.xml 2.0
Parameters:
isExtension [line 275]
bool isExtension(
string
$extension)
|
|
Parameters:
isIncomplete [line 806]
isSubpackage [line 1508]
Determines whether the passed in package is a subpackage of this package.
No version checking is done, only name verification.
Parameters:
isSubpackageOf [line 1496]
listPostinstallScripts [line 539]
array|false listPostinstallScripts(
)
|
|
Determines whether this package.xml has post-install scripts or not
packageInfo [line 849]
void packageInfo(
$field)
|
|
Parameters:
resetDirtree [line 1425]
resetFilelist [line 1225]
This is only used at install-time, after all serialization is over.
runPostinstallScripts [line 637]
void runPostinstallScripts(
)
|
|
setCompatible [line 759]
void setCompatible(
$compat)
|
|
WARNING - do not use this function directly unless you know what you're doing
Parameters:
setConfig [line 734]
void setConfig(
&$config)
|
|
Parameters:
setDate [line 1030]
setDeps [line 751]
WARNING - do not use this function directly unless you know what you're doing
Parameters:
setDirtree [line 1409]
setFileAttribute [line 1373]
bool setFileAttribute(
string
$filename, string
$attr, string
$value, [int
$index = false])
|
|
Parameters:
setInstalledAs [line 1324]
void setInstalledAs(
string
$file, string
$path)
|
|
This is only used at install-time, after all serialization is over.
Overridden in child classes as:
- PEAR_PackageFile_v2_rw::setInstalledAs()
- This is only used at install-time, after all serialization is over.
Parameters:
setLastInstalledVersion [line 519]
void setLastInstalledVersion(
string
$version)
|
|
For saving in the registry.
Set the last version that was installed
Parameters:
setLogger [line 740]
void setLogger(
&$logger)
|
|
Parameters:
setPackagefile [line 764]
void setPackagefile(
$file, [
$archive = false])
|
|
Parameters:
setRawChannel [line 495]
void setRawChannel(
$channel)
|
|
WARNING - do not use this function unless you know what you're doing
Parameters:
setRawCompatible [line 479]
void setRawCompatible(
$compatible)
|
|
WARNING - do not use this function unless you know what you're doing
Parameters:
setRawPackage [line 487]
void setRawPackage(
$package)
|
|
WARNING - do not use this function unless you know what you're doing
Parameters:
setRawState [line 468]
void setRawState(
$state)
|
|
WARNING - do not use this function unless you know what you're doing
Parameters:
setRequestedGroup [line 500]
void setRequestedGroup(
$group)
|
|
Parameters:
setTime [line 1045]
toArray [line 814]
array toArray(
[
$forreg = false])
|
|
Parameters:
validate [line 1908]
void validate(
[
$state = PEAR_VALIDATE_NORMAL])
|
|
Parameters:
_getFlattenedFilelist [line 694]
array _getFlattenedFilelist(
array
&$files, array
$dir, [string|false
$baseinstall = false], [string
$path = ''])
|
|
Parameters: