PEAR_DependencyDB::getDependentPackages

PEAR_DependencyDB::getDependentPackages() – Get a list of installed packages that depend on this package

Synopsis

require_once '/DependencyDB.php';

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

Description

This is most useful at uninstall-time. A list of installed packages that depend upon the package can be used to prevent uninstallation, and to emit warnings for optional dependencies.

Parameter

PEAR_PackageFile_v1|PEAR_PackageFile_v2|array &$pkg

This parameter, if an array, should be in format:


<?php
array(
  'package' => 'packagename',
  'channel' => 'channelname'
);
?>

Throws

throws no exceptions thrown

Note

This function can not be called statically.

Get a list of the actual dependencies of installed packages that depend on a package. (Previous) determines whether a dependency DB can be modified (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.