PEAR_Dependency2::validateOsDependency | PEAR_Dependency2::validatePackageDependency |
PEAR_Dependency2 | |
PEAR Manual | |
require_once '/Dependency2.php'; |
true|PEAR_Error|array
PEAR_Dependency2::validatePackage
(
array|PEAR_PackageFile_v2|PEAR_Downloader_Package
$pkg
,
PEAR_Common
&$dl
)
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.
Either an array of format array('channel' => channelname, 'package' => package) or one of these objects.
Any object with a log() method that matches the signature of PEAR_Common
throws no exceptions thrown
This function can not be called statically.
PEAR_Dependency2::validateOsDependency | PEAR_Dependency2::validatePackageDependency |
PEAR_Dependency2 | |
PEAR Manual | |