| [ Index ] |
|
Code source de GeekLog 1.4.1 |
[Code source] [Imprimer] [Statistiques]
PEAR_DependencyDB, advanced installed packages dependency database PHP versions 4 and 5
| Author: | Tomas V. V. Cox <cox@idecnet.com> |
| 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: DependencyDB.php,v 1.30.2.1 2006/05/25 22:00:05 cellog Exp $ |
| Poids: | 675 lignes (24 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
PEAR_DependencyDB:: (18 méthodes):
singleton()
setConfig()
hasWriteAccess()
assertDepsDB()
getDependentPackages()
getDependentPackageDependencies()
getDependencies()
dependsOn()
_dependsOn()
installPackage()
uninstallPackage()
rebuildDB()
_lock()
_unlock()
_getDepDB()
_writeDepDB()
_setPackageDeps()
_registerDep()
Classe: PEAR_DependencyDB - X-Ref
Track dependency relationships between installed packages| singleton(&$config, $depdb = false) X-Ref |
| Get a raw dependency database. Calls setConfig() and assertDepsDB() param: PEAR_Config param: string|false full path to the dependency database, or false to use default return: PEAR_DependencyDB|PEAR_Error |
| setConfig(&$config, $depdb = false) X-Ref |
| Set up the registry/location of dependency DB param: PEAR_Config|false param: string|false full path to the dependency database, or false to use default |
| hasWriteAccess() X-Ref |
| Pas de description |
| assertDepsDB() X-Ref |
| Create the dependency database, if it doesn't exist. Error if the database is newer than the code reading it. return: void|PEAR_Error |
| getDependentPackages(&$pkg) X-Ref |
| Get a list of installed packages that depend on this package param: PEAR_PackageFile_v1|PEAR_PackageFile_v2|array return: array|false |
| getDependentPackageDependencies(&$pkg) X-Ref |
| Get a list of the actual dependencies of installed packages that depend on a package. param: PEAR_PackageFile_v1|PEAR_PackageFile_v2|array return: array|false |
| getDependencies(&$pkg) X-Ref |
| Get a list of dependencies of this installed package param: PEAR_PackageFile_v1|PEAR_PackageFile_v2|array return: array|false |
| dependsOn($parent, $child) X-Ref |
| Determine whether $parent depends on $child, near or deep param: array|PEAR_PackageFile_v2|PEAR_PackageFile_v2 param: array|PEAR_PackageFile_v2|PEAR_PackageFile_v2 |
| _dependsOn($parent, $child, &$checked) X-Ref |
| Pas de description |
| installPackage(&$package) X-Ref |
| Register dependencies of a package that is being installed or upgraded param: PEAR_PackageFile_v2|PEAR_PackageFile_v2 |
| uninstallPackage(&$pkg) X-Ref |
| Remove dependencies of a package that is being uninstalled, or upgraded. Upgraded packages first uninstall, then install param: PEAR_PackageFile_v1|PEAR_PackageFile_v2|array If an array, then it must have |
| rebuildDB() X-Ref |
| Rebuild the dependency DB by reading registry entries. return: true|PEAR_Error |
| _lock($mode = LOCK_EX) X-Ref |
| Register usage of the dependency DB to prevent race conditions param: int one of the LOCK_* constants return: true|PEAR_Error |
| _unlock() X-Ref |
| Release usage of dependency DB return: true|PEAR_Error |
| _getDepDB() X-Ref |
| Load the dependency database from disk, or return the cache return: array|PEAR_Error |
| _writeDepDB(&$deps) X-Ref |
| Write out the dependency database to disk param: array the database return: true|PEAR_Error |
| _setPackageDeps(&$data, &$pkg) X-Ref |
| Register all dependencies from a package in the dependencies database, in essence "installing" the package's dependency information param: array the database param: PEAR_PackageFile_v1|PEAR_PackageFile_v2 |
| _registerDep(&$data, &$pkg, $dep, $type, $group = false) X-Ref |
param: array the database param: PEAR_PackageFile_v1|PEAR_PackageFile_v2 param: array the specific dependency param: required|optional whether this is a required or an optional dep param: string|false dependency group this dependency is from, or false for ordinary dep |
| Généré le : Wed Nov 21 12:27:40 2007 | par Balluche grâce à PHPXref 0.7 |
|