PEAR_PackageFile_v2 (Constructor) [line 133]
PEAR_PackageFile_v2 PEAR_PackageFile_v2(
)
|
|
The constructor merely sets up the private error stack
analyzeSourceCode [line 1832]
void analyzeSourceCode(
$file, [
$string = false])
|
|
Parameters:
dependsOn [line 1516]
void dependsOn(
$package,
$channel)
|
|
Parameters:
flattenFilelist [line 643]
Convert a recursive set of <dir> and <file> tags into a single <dir> tag with <file> tags.
fromArray [line 776]
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 763]
getArray [line 800]
void getArray(
[
$forReg = false])
|
|
Parameters:
getBundledPackages [line 1757]
void getBundledPackages(
)
|
|
getChangelog [line 1727]
getChannel [line 861]
getCompatible [line 1441]
array|false getCompatible(
)
|
|
getConfigureOptions [line 1164]
array|false getConfigureOptions(
)
|
|
Return configure options array, if any
getContents [line 1321]
Retrieve the contents tag
getContributors [line 986]
getDate [line 1032]
getDefaultGenerator [line 1823]
void &getDefaultGenerator(
)
|
|
getDependencies [line 1449]
getDependencyGroup [line 1564]
array|false getDependencyGroup(
string
$name)
|
|
Get the contents of a dependency group
Parameters:
getDeps [line 1593]
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 896]
getDevelopers [line 978]
getDirtree [line 1378]
getExtends [line 880]
getFileContents [line 1778]
string getFileContents(
string
$file)
|
|
Get the contents of a file listed within the package.xml
Parameters:
getFilelist [line 1133]
void getFilelist(
[
$preserve = false])
|
|
This should only be used to retrieve filenames and install attributes
Parameters:
getHelpers [line 994]
getInstallationFilelist [line 1198]
array getInstallationFilelist(
[
$forfilecheck = false])
|
|
Retrieve a list of files that should be installed on this computer
Parameters:
getInstalledBinary [line 171]
void getInstalledBinary(
)
|
|
getInstalledLocation [line 1296]
void getInstalledLocation(
$file)
|
|
Parameters:
getLastInstalledVersion [line 522]
string|false getLastInstalledVersion(
)
|
|
getLastModified [line 1765]
getLeads [line 970]
getLicense [line 1075]
void getLicense(
[
$raw = false])
|
|
Parameters:
getLicenseLocation [line 1090]
void getLicenseLocation(
)
|
|
getMaintainers [line 904]
void getMaintainers(
[
$raw = false])
|
|
Parameters:
getName [line 848]
getNotes [line 1098]
getPackage [line 853]
getPackageFile [line 758]
getPackageType [line 1692]
php|extsrc|extbin|bundle|false getPackageType(
)
|
|
getPackagexmlVersion [line 1740]
void getPackagexmlVersion(
)
|
|
getPEARDependency2 [line 162]
To make unit-testing easier
Parameters:
getPEARDownloader [line 147]
To make unit-testing easier
Parameters:
getProvidesExtension [line 260]
string|false getProvidesExtension(
)
|
|
getReleases [line 1712]
array|false getReleases(
)
|
|
getRequestedGroup [line 500]
void getRequestedGroup(
)
|
|
getRW [line 1803]
getSourcePackage [line 1748]
array|false getSourcePackage(
)
|
|
getStability [line 1059]
getState [line 1067]
void getState(
[
$key = 'release'])
|
|
Parameters:
getSummary [line 888]
getTask [line 1885]
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 1860]
getTime [line 1040]
getUri [line 872]
getUsesrole [line 1110]
array|false getUsesrole(
)
|
|
Return the <usesrole> tag contents, if any
getUsestask [line 1122]
array|false getUsestask(
)
|
|
Return the <usestask> tag contents, if any
getValidationWarnings [line 753]
getVersion [line 1051]
void getVersion(
[package|api
$key = 'release'])
|
|
Parameters:
hasDeps [line 1735]
initPostinstallScripts [line 581]
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 183]
Installation of source package has failed, attempt to download and install the binary version of this package.
Parameters:
installedFile [line 1308]
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 1397]
Determines whether this package claims it is compatible with the version of
the package that has a recommended version dependency
Parameters:
isEquivalent [line 288]
Tests whether every part of the package.xml 1.0 is represented in
this package.xml 2.0
Parameters:
isExtension [line 274]
bool isExtension(
string
$extension)
|
|
Parameters:
isIncomplete [line 784]
isSubpackage [line 1469]
Determines whether the passed in package is a subpackage of this package.
No version checking is done, only name verification.
Parameters:
isSubpackageOf [line 1457]
listPostinstallScripts [line 534]
array|false listPostinstallScripts(
)
|
|
Determines whether this package.xml has post-install scripts or not
packageInfo [line 827]
void packageInfo(
$field)
|
|
Parameters:
resetDirtree [line 1386]
resetFilelist [line 1189]
This is only used at install-time, after all serialization is over.
runPostinstallScripts [line 628]
void runPostinstallScripts(
)
|
|
setConfig [line 720]
void setConfig(
&$config)
|
|
Parameters:
setDate [line 1002]
setDeps [line 737]
WARNING - do not use this function directly unless you know what you're doing
Parameters:
setDirtree [line 1373]
setFileAttribute [line 1337]
bool setFileAttribute(
string
$filename, string
$attr, string
$value, [int
$index = false])
|
|
Parameters:
setInstalledAs [line 1288]
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 514]
void setLastInstalledVersion(
string
$version)
|
|
For saving in the registry.
Set the last version that was installed
Parameters:
setLogger [line 726]
void setLogger(
&$logger)
|
|
Parameters:
setPackagefile [line 742]
void setPackagefile(
$file, [
$archive = false])
|
|
Parameters:
setRawChannel [line 490]
void setRawChannel(
$channel)
|
|
WARNING - do not use this function unless you know what you're doing
Parameters:
setRawCompatible [line 474]
void setRawCompatible(
$compatible)
|
|
WARNING - do not use this function unless you know what you're doing
Parameters:
setRawPackage [line 482]
void setRawPackage(
$package)
|
|
WARNING - do not use this function unless you know what you're doing
Parameters:
setRawState [line 466]
void setRawState(
$state)
|
|
WARNING - do not use this function unless you know what you're doing
Parameters:
setRequestedGroup [line 495]
void setRequestedGroup(
$group)
|
|
Parameters:
setTime [line 1017]
toArray [line 792]
array toArray(
[
$forreg = false])
|
|
Parameters:
validate [line 1843]
void validate(
[
$state = PEAR_VALIDATE_NORMAL])
|
|
Parameters:
_getFlattenedFilelist [line 680]
array _getFlattenedFilelist(
array
&$files, array
$dir, [string|false
$baseinstall = false], [string
$path = ''])
|
|
Parameters: