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

Class: PEAR_DependencyDB

Source Location: /PEAR-1.10.0dev2/PEAR/DependencyDB.php

Class Overview


Track dependency relationships between installed packages


Author(s):

Version:

  • Release: 1.10.0dev2

Copyright:

  • 1997-2009 The Authors

Methods


Inherited Variables

Inherited Methods


Class Details

[line 36]
Track dependency relationships between installed packages


[ Top ]


Method Detail

assertDepsDB   [line 164]

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 281]

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 258]

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 213]

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 189]

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 136]

void hasWriteAccess( )


[ Top ]

installPackage   [line 358]

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 436]

true|PEAR_Error rebuildDB( )

Rebuild the dependency DB by reading registry entries.

[ Top ]

setConfig   [line 113]

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 92]

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

Get a raw dependency database. Calls setConfig() and assertDepsDB()
  • Access: public

Parameters:

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

[ Top ]

uninstallPackage   [line 373]

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 Fri, 31 Jul 2015 09:30:21 +0000 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.