PEAR_Dependency2::validatePackage

PEAR_Dependency2::validatePackage() – validatePackage

Synopsis

require_once '/Dependency2.php';

true|PEAR_Error|array PEAR_Dependency2::validatePackage ( array|PEAR_PackageFile_v2|PEAR_Downloader_Package $pkg , PEAR_Common &$dl )

Description

As with all dependency validation, true is returned on success, PEAR_Error on failure for required dependencies (and the PEAR installer dependency is required). If the soft, force or ignore-errors options are specified, an array containing the error message will be returned instead.

Parameter

array|PEAR_PackageFile_v2|PEAR_Downloader_Package $pkg

Either an array of format array('channel' => channelname, 'package' => package) or one of these objects.

PEAR_Common &$dl

Any object with a log() method that matches the signature of PEAR_Common

Throws

throws no exceptions thrown

Note

This function can not be called statically.

Specify a dependency on an OS. Use arch for detailed os/processor information (Previous) validatePackageDependency (Next)
Last updated: Thu, 17 Apr 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.