[ Index ] |
|
Code source de PHP PEAR 1.4.5 |
[Code source] [Imprimer] [Statistiques]
PEAR_PackageFile_v2, package.xml version 2.0 PHP versions 4 and 5
Author: | Greg Beaver <cellog@php.net> |
Copyright: | 1997-2006 The PHP Group |
License: | http://www.php.net/license/3_0.txt PHP License 3.0 |
Version: | CVS: $Id: v2.php,v 1.135 2006/10/31 02:54:41 cellog Exp $ |
Poids: | 2031 lignes (69 kb) |
Inclus ou requis: | 9 fois |
Référencé: | 0 fois |
Nécessite: | 5 fichiers PEAR/PackageFile/v2/Validator.php PEAR/Dependency2.php PEAR/PackageFile/v2/rw.php PEAR/ErrorStack.php PEAR/PackageFile/Generator/v2.php |
PEAR_PackageFile_v2:: (106 méthodes):
PEAR_PackageFile_v2()
getPEARDownloader()
getPEARDependency2()
getInstalledBinary()
installBinary()
getProvidesExtension()
isExtension()
isEquivalent()
_differentPackage()
_differentVersion()
_differentState()
_differentRole()
_differentEmail()
_differentName()
_unmatchedMaintainers()
_differentNotes()
_differentSummary()
_differentDescription()
_missingFile()
setRawState()
setRawCompatible()
setRawPackage()
setRawChannel()
setRequestedGroup()
getRequestedGroup()
setLastInstalledVersion()
getLastInstalledVersion()
listPostinstallScripts()
initPostinstallScripts()
runPostinstallScripts()
flattenFilelist()
_getFlattenedFilelist()
setConfig()
setLogger()
setDeps()
setPackagefile()
getValidationWarnings()
getPackageFile()
getArchiveFile()
fromArray()
isIncomplete()
toArray()
getArray()
packageInfo()
getName()
getPackage()
getChannel()
getUri()
getExtends()
getSummary()
getDescription()
getMaintainers()
getLeads()
getDevelopers()
getContributors()
getHelpers()
setDate()
setTime()
getDate()
getTime()
getVersion()
getStability()
getState()
getLicense()
getLicenseLocation()
getNotes()
getUsesrole()
getUsestask()
getFilelist()
getConfigureOptions()
resetFilelist()
getInstallationFilelist()
setInstalledAs()
getInstalledLocation()
installedFile()
getContents()
setFileAttribute()
setDirtree()
getDirtree()
resetDirtree()
isCompatible()
getCompatible()
getDependencies()
isSubpackageOf()
isSubpackage()
dependsOn()
getDependencyGroup()
getDeps()
getPackageType()
getReleases()
getChangelog()
hasDeps()
getPackagexmlVersion()
getSourcePackage()
getBundledPackages()
getLastModified()
getFileContents()
getRW()
getDefaultGenerator()
analyzeSourceCode()
validate()
getTasksNs()
getTask()
_ksplice()
_insertBefore()
_mergeTag()
Classe: PEAR_PackageFile_v2 - X-Ref
PEAR_PackageFile_v2() X-Ref |
The constructor merely sets up the private error stack |
getPEARDownloader(&$i, $o, &$c) X-Ref |
To make unit-testing easier param: PEAR_Frontend_* param: array options param: PEAR_Config return: PEAR_Downloader |
getPEARDependency2(&$c, $o, $p, $s = PEAR_VALIDATE_INSTALLING) X-Ref |
To make unit-testing easier param: PEAR_Config param: array options param: array package name as returned from {@link PEAR_Registry::parsePackageName()} param: int PEAR_VALIDATE_* constant return: PEAR_Dependency2 |
getInstalledBinary() X-Ref |
Pas de description |
installBinary(&$installer) X-Ref |
Installation of source package has failed, attempt to download and install the binary version of this package. param: PEAR_Installer return: array|false |
getProvidesExtension() X-Ref |
return: string|false Extension name |
isExtension($extension) X-Ref |
param: string Extension name return: bool |
isEquivalent($pf1) X-Ref |
Tests whether every part of the package.xml 1.0 is represented in this package.xml 2.0 param: PEAR_PackageFile_v1 return: bool |
_differentPackage($package) X-Ref |
Pas de description |
_differentVersion($version) X-Ref |
Pas de description |
_differentState($state) X-Ref |
Pas de description |
_differentRole($handle, $role, $selfrole) X-Ref |
Pas de description |
_differentEmail($handle, $email, $selfemail) X-Ref |
Pas de description |
_differentName($handle, $name, $selfname) X-Ref |
Pas de description |
_unmatchedMaintainers($my, $yours) X-Ref |
Pas de description |
_differentNotes($notes) X-Ref |
Pas de description |
_differentSummary($summary) X-Ref |
Pas de description |
_differentDescription($description) X-Ref |
Pas de description |
_missingFile($file) X-Ref |
Pas de description |
setRawState($state) X-Ref |
WARNING - do not use this function unless you know what you're doing |
setRawCompatible($compatible) X-Ref |
WARNING - do not use this function unless you know what you're doing |
setRawPackage($package) X-Ref |
WARNING - do not use this function unless you know what you're doing |
setRawChannel($channel) X-Ref |
WARNING - do not use this function unless you know what you're doing |
setRequestedGroup($group) X-Ref |
Pas de description |
getRequestedGroup() X-Ref |
Pas de description |
setLastInstalledVersion($version) X-Ref |
For saving in the registry. Set the last version that was installed param: string |
getLastInstalledVersion() X-Ref |
return: string|false |
listPostinstallScripts() X-Ref |
Determines whether this package.xml has post-install scripts or not return: array|false |
initPostinstallScripts() X-Ref |
Initialize post-install scripts for running This method can be used to detect post-install scripts, as the return value indicates whether any exist return: bool |
runPostinstallScripts() X-Ref |
Pas de description |
flattenFilelist() X-Ref |
Convert a recursive set of <dir> and <file> tags into a single <dir> tag with <file> tags. |
_getFlattenedFilelist(&$files, $dir, $baseinstall = false, $path = '') X-Ref |
param: array the final flattened file list param: array the current directory being processed param: string|false any recursively inherited baeinstalldir attribute param: string private recursion variable return: array |
setConfig(&$config) X-Ref |
Pas de description |
setLogger(&$logger) X-Ref |
Pas de description |
setDeps($deps) X-Ref |
WARNING - do not use this function directly unless you know what you're doing |
setPackagefile($file, $archive = false) X-Ref |
Pas de description |
getValidationWarnings($purge = true) X-Ref |
Wrapper to {@link PEAR_ErrorStack::getErrors()} param: boolean determines whether to purge the error stack after retrieving return: array |
getPackageFile() X-Ref |
Pas de description |
getArchiveFile() X-Ref |
Pas de description |
fromArray($pinfo) X-Ref |
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 param: array |
isIncomplete() X-Ref |
Pas de description |
toArray($forreg = false) X-Ref |
return: array |
getArray($forReg = false) X-Ref |
Pas de description |
packageInfo($field) X-Ref |
Pas de description |
getName() X-Ref |
Pas de description |
getPackage() X-Ref |
Pas de description |
getChannel() X-Ref |
Pas de description |
getUri() X-Ref |
Pas de description |
getExtends() X-Ref |
Pas de description |
getSummary() X-Ref |
Pas de description |
getDescription() X-Ref |
Pas de description |
getMaintainers($raw = false) X-Ref |
Pas de description |
getLeads() X-Ref |
Pas de description |
getDevelopers() X-Ref |
Pas de description |
getContributors() X-Ref |
Pas de description |
getHelpers() X-Ref |
Pas de description |
setDate($date) X-Ref |
Pas de description |
setTime($time) X-Ref |
Pas de description |
getDate() X-Ref |
Pas de description |
getTime() X-Ref |
Pas de description |
getVersion($key = 'release') X-Ref |
param: package|api version category to return |
getStability() X-Ref |
Pas de description |
getState($key = 'release') X-Ref |
Pas de description |
getLicense($raw = false) X-Ref |
Pas de description |
getLicenseLocation() X-Ref |
Pas de description |
getNotes() X-Ref |
Pas de description |
getUsesrole() X-Ref |
Return the <usesrole> tag contents, if any return: array|false |
getUsestask() X-Ref |
Return the <usestask> tag contents, if any return: array|false |
getFilelist($preserve = false) X-Ref |
This should only be used to retrieve filenames and install attributes |
getConfigureOptions() X-Ref |
Return configure options array, if any return: array|false |
resetFilelist() X-Ref |
This is only used at install-time, after all serialization is over. |
getInstallationFilelist($forfilecheck = false) X-Ref |
Retrieve a list of files that should be installed on this computer return: array |
setInstalledAs($file, $path) X-Ref |
This is only used at install-time, after all serialization is over. param: string file name param: string installed path |
getInstalledLocation($file) X-Ref |
Pas de description |
installedFile($file, $atts) X-Ref |
This is only used at install-time, after all serialization is over. |
getContents() X-Ref |
Retrieve the contents tag |
setFileAttribute($filename, $attr, $value, $index = false) X-Ref |
param: string full path to file param: string attribute name param: string attribute value param: int risky but fast - use this to choose a file based on its position in the list return: bool success of operation |
setDirtree($path) X-Ref |
Pas de description |
getDirtree() X-Ref |
Pas de description |
resetDirtree() X-Ref |
Pas de description |
isCompatible($pf) X-Ref |
Determines whether this package claims it is compatible with the version of the package that has a recommended version dependency param: PEAR_PackageFile_v2|PEAR_PackageFile_v1|PEAR_Downloader_Package return: boolean |
getCompatible() X-Ref |
return: array|false |
getDependencies() X-Ref |
Pas de description |
isSubpackageOf($p) X-Ref |
Pas de description |
isSubpackage($p) X-Ref |
Determines whether the passed in package is a subpackage of this package. No version checking is done, only name verification. param: PEAR_PackageFile_v1|PEAR_PackageFile_v2 return: bool |
dependsOn($package, $channel) X-Ref |
Pas de description |
getDependencyGroup($name) X-Ref |
Get the contents of a dependency group param: string return: array|false |
getDeps($raw = false, $nopearinstaller = false) X-Ref |
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 param: boolean return package.xml 2.0 <dependencies> tag return: array|false |
getPackageType() X-Ref |
return: php|extsrc|extbin|zendextsrc|zendextbin|bundle|false |
getReleases() X-Ref |
return: array|false |
getChangelog() X-Ref |
return: array |
hasDeps() X-Ref |
Pas de description |
getPackagexmlVersion() X-Ref |
Pas de description |
getSourcePackage() X-Ref |
return: array|false |
getBundledPackages() X-Ref |
Pas de description |
getLastModified() X-Ref |
Pas de description |
getFileContents($file) X-Ref |
Get the contents of a file listed within the package.xml param: string return: string |
getRW() X-Ref |
Pas de description |
getDefaultGenerator() X-Ref |
Pas de description |
analyzeSourceCode($file, $string = false) X-Ref |
Pas de description |
validate($state = PEAR_VALIDATE_NORMAL) X-Ref |
Pas de description |
getTasksNs() X-Ref |
Pas de description |
getTask($task) X-Ref |
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 param: string return: boolean |
_ksplice($array, $key, $value, $newkey) X-Ref |
Key-friendly array_splice param: tagname to splice a value in before param: mixed the value to splice in param: string the new tag name |
_insertBefore($array, $keys, $contents, $newkey) X-Ref |
param: array a list of possible keys, in the order they may occur param: mixed contents of the new package.xml tag param: string tag name |
_mergeTag($manip, $contents, $order) X-Ref |
param: subsection of {@link $_packageInfo} param: array|string tag contents param: array format: |
Généré le : Sun Feb 25 14:08:00 2007 | par Balluche grâce à PHPXref 0.7 |