PEAR_PackageFile_v2 (Constructor) [line 133]
PEAR_PackageFile_v2 PEAR_PackageFile_v2(
)
|
|
The constructor merely sets up the private error stack
analyzeSourceCode [line 1674]
void analyzeSourceCode(
$file, [
$string = false])
|
|
Parameters:
dependsOn [line 1369]
void dependsOn(
$package,
$channel)
|
|
Parameters:
flattenFilelist [line 522]
Convert a recursive set of <dir> and <file> tags into a single <dir> tag with <file> tags.
fromArray [line 655]
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 642]
getArray [line 679]
void getArray(
[
$forReg = false])
|
|
Parameters:
getBundledPackages [line 1599]
void getBundledPackages(
)
|
|
getChannel [line 740]
getCompatible [line 1294]
array|false getCompatible(
)
|
|
getContents [line 1174]
Retrieve the contents tag
getContributors [line 865]
getDate [line 911]
getDefaultGenerator [line 1665]
void &getDefaultGenerator(
)
|
|
getDependencies [line 1302]
getDependencyGroup [line 1417]
array|false getDependencyGroup(
string
$name)
|
|
Get the contents of a dependency group
Parameters:
getDeps [line 1446]
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 775]
getDevelopers [line 857]
getDirtree [line 1231]
getExtends [line 759]
getFileContents [line 1620]
string getFileContents(
string
$file)
|
|
Get the contents of a file listed within the package.xml
Parameters:
getFilelist [line 1012]
void getFilelist(
[
$preserve = false])
|
|
This should only be used to retrieve filenames and install attributes
Parameters:
getHelpers [line 873]
getInstallationFilelist [line 1051]
array getInstallationFilelist(
[
$forfilecheck = false])
|
|
Retrieve a list of files that should be installed on this computer
Parameters:
getInstalledBinary [line 171]
void getInstalledBinary(
)
|
|
getInstalledLocation [line 1149]
void getInstalledLocation(
$file)
|
|
Parameters:
getLastInstalledVersion [line 401]
string|false getLastInstalledVersion(
)
|
|
getLastModified [line 1607]
getLeads [line 849]
getLicense [line 954]
void getLicense(
[
$raw = false])
|
|
Parameters:
getLicenseLocation [line 969]
void getLicenseLocation(
)
|
|
getMaintainers [line 783]
void getMaintainers(
[
$raw = false])
|
|
Parameters:
getName [line 727]
getNotes [line 977]
getPackage [line 732]
getPackageFile [line 637]
getPackageType [line 1545]
php|extsrc|extbin|bundle|false getPackageType(
)
|
|
getPackagexmlVersion [line 1582]
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 1565]
array|false getReleases(
)
|
|
getRequestedGroup [line 379]
void getRequestedGroup(
)
|
|
getRW [line 1645]
getSourcePackage [line 1590]
array|false getSourcePackage(
)
|
|
getStability [line 938]
getState [line 946]
void getState(
[
$key = 'release'])
|
|
Parameters:
getSummary [line 767]
getTask [line 1724]
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 1699]
getTime [line 919]
getUri [line 751]
getUsesrole [line 989]
array|false getUsesrole(
)
|
|
Return the <usesrole> tag contents, if any
getUsestask [line 1001]
array|false getUsestask(
)
|
|
Return the <usestask> tag contents, if any
getValidationWarnings [line 632]
getVersion [line 930]
void getVersion(
[package|api
$key = 'release'])
|
|
Parameters:
hasDeps [line 1577]
initPostinstallScripts [line 460]
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 1161]
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 1250]
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 663]
isSubpackage [line 1322]
Determines whether the passed in package is a subpackage of this package.
No version checking is done, only name verification.
Parameters:
isSubpackageOf [line 1310]
listPostinstallScripts [line 413]
array|false listPostinstallScripts(
)
|
|
Determines whether this package.xml has post-install scripts or not
packageInfo [line 706]
void packageInfo(
$field)
|
|
Parameters:
resetDirtree [line 1239]
resetFilelist [line 1042]
This is only used at install-time, after all serialization is over.
runPostinstallScripts [line 507]
void runPostinstallScripts(
)
|
|
setConfig [line 599]
void setConfig(
&$config)
|
|
Parameters:
setDate [line 881]
setDeps [line 616]
WARNING - do not use this function directly unless you know what you're doing
Parameters:
setDirtree [line 1226]
setFileAttribute [line 1190]
bool setFileAttribute(
string
$filename, string
$attr, string
$value, [int
$index = false])
|
|
Parameters:
setInstalledAs [line 1141]
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 393]
void setLastInstalledVersion(
string
$version)
|
|
For saving in the registry.
Set the last version that was installed
Parameters:
setLogger [line 605]
void setLogger(
&$logger)
|
|
Parameters:
setPackagefile [line 621]
void setPackagefile(
$file, [
$archive = false])
|
|
Parameters:
setRawChannel [line 369]
void setRawChannel(
$channel)
|
|
WARNING - do not use this function unless you know what you're doing
Parameters:
setRawPackage [line 361]
void setRawPackage(
$package)
|
|
WARNING - do not use this function unless you know what you're doing
Parameters:
setRawState [line 353]
void setRawState(
$state)
|
|
WARNING - do not use this function unless you know what you're doing
Parameters:
setRequestedGroup [line 374]
void setRequestedGroup(
$group)
|
|
Parameters:
setTime [line 896]
toArray [line 671]
array toArray(
[
$forreg = false])
|
|
Parameters:
validate [line 1682]
void validate(
[
$state = PEAR_VALIDATE_NORMAL])
|
|
Parameters:
_getFlattenedFilelist [line 559]
array _getFlattenedFilelist(
array
&$files, array
$dir, [string|false
$baseinstall = false], [string
$path = ''])
|
|
Parameters: