PEAR_DependencyDB::getDependencies

PEAR_DependencyDB::getDependencies() – Get a list of dependencies of this installed package

Synopsis

require_once '/DependencyDB.php';

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

Description

get an array of all immediate package dependencies of an installed package.

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.

Determine whether $parent depends on $child, near or deep (Previous) Get a list of the actual dependencies of installed packages that depend on a package. (Next)
Last updated: Wed, 22 Oct 2014 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.