PEAR
[ class tree: PEAR ] [ index: PEAR ] [ all elements ]

Class: PEAR_DependencyDB

Source Location: /PEAR-1.9.5/PEAR/DependencyDB.php

Class Overview


Track dependency relationships between installed packages


Author(s):

Version:

  • Release: 1.9.5

Copyright:

  • 1997-2009 The Authors

Methods


Inherited Variables

Inherited Methods


Class Details

[line 37]
Track dependency relationships between installed packages


[ Top ]


Method Detail

assertDepsDB   [line 163]

void|PEAR_Error assertDepsDB( )

Create the dependency database, if it doesn't exist. Error if the database is newer than the code reading it.

[ Top ]

dependsOn   [line 280]

void dependsOn( array|PEAR_PackageFile_v2|PEAR_PackageFile_v2 $parent, array|PEAR_PackageFile_v2|PEAR_PackageFile_v2 $child)

Determine whether $parent depends on $child, near or deep

Parameters:

array|PEAR_PackageFile_v2|PEAR_PackageFile_v2   $parent     
array|PEAR_PackageFile_v2|PEAR_PackageFile_v2   $child     

[ Top ]

getDependencies   [line 257]

array|false getDependencies( PEAR_PackageFile_v1|PEAR_PackageFile_v2|array &$pkg)

Get a list of dependencies of this installed package

Parameters:

PEAR_PackageFile_v1|PEAR_PackageFile_v2|array   &$pkg     

[ Top ]

getDependentPackageDependencies   [line 212]

array|false getDependentPackageDependencies( PEAR_PackageFile_v1|PEAR_PackageFile_v2|array &$pkg)

Get a list of the actual dependencies of installed packages that depend on a package.

Parameters:

PEAR_PackageFile_v1|PEAR_PackageFile_v2|array   &$pkg     

[ Top ]

getDependentPackages   [line 188]

array|false getDependentPackages( PEAR_PackageFile_v1|PEAR_PackageFile_v2|array &$pkg)

Get a list of installed packages that depend on this package

Parameters:

PEAR_PackageFile_v1|PEAR_PackageFile_v2|array   &$pkg     

[ Top ]

hasWriteAccess   [line 135]

void hasWriteAccess( )


[ Top ]

installPackage   [line 357]

void installPackage( PEAR_PackageFile_v2|PEAR_PackageFile_v2 &$package)

Register dependencies of a package that is being installed or upgraded

Parameters:

PEAR_PackageFile_v2|PEAR_PackageFile_v2   &$package     

[ Top ]

rebuildDB   [line 435]

true|PEAR_Error rebuildDB( )

Rebuild the dependency DB by reading registry entries.

[ Top ]

setConfig   [line 115]

void setConfig( PEAR_Config|false &$config, [string|false $depdb = false])

Set up the registry/location of dependency DB

Parameters:

PEAR_Config|false   &$config     
string|false   $depdb     full path to the dependency database, or false to use default

[ Top ]

singleton   [line 94]

PEAR_DependencyDB|PEAR_Error &singleton( PEAR_Config &$config, [string|false $depdb = false])

Get a raw dependency database. Calls setConfig() and assertDepsDB()

Parameters:

PEAR_Config   &$config     
string|false   $depdb     full path to the dependency database, or false to use default

[ Top ]

uninstallPackage   [line 372]

void uninstallPackage( PEAR_PackageFile_v1|PEAR_PackageFile_v2|array &$pkg)

Remove dependencies of a package that is being uninstalled, or upgraded.

Upgraded packages first uninstall, then install


Parameters:

PEAR_PackageFile_v1|PEAR_PackageFile_v2|array   &$pkg     If an array, then it must have indices 'channel' and 'package'

[ Top ]


Documentation generated on Sat, 12 Jul 2014 14:00:39 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.