![]() |
Bearsampp 2026.9.23
|
Public Member Functions | |
| __construct (&$config, $installoptions, $package, $state=PEAR_VALIDATE_INSTALLING) | |
| _validatePackageDownload ($dep, $required, $params, $depv1=false) | |
| _validatePackageInstall ($dep, $required, $depv1=false) | |
| _validatePackageUninstall ($dep, $required, $dl) | |
| extension_loaded ($name) | |
| getPEARVersion () | |
| getPHP_OS () | |
| getsysname () | |
| matchSignature ($pattern) | |
| phpversion ($name=null) | |
| raiseError ($msg) | |
| validateArchDependency ($dep) | |
| validateDependency1 ($dep, $params=array()) | |
| validateExtensionDependency ($dep, $required=true) | |
| validateOsDependency ($dep) | |
| validatePackage ($pkg, &$dl, $params=array()) | |
| validatePackageDependency ($dep, $required, $params, $depv1=false) | |
| validatePackageUninstall (&$dl) | |
| validatePearinstallerDependency ($dep) | |
| validatePhpDependency ($dep) | |
| validateSubpackageDependency ($dep, $required, $params) | |
| warning ($msg) | |
Static Public Member Functions | |
| static | _getExtraString ($dep) |
| static | normalizeDep ($dep) |
| static | signOperator ($operator) |
Data Fields | |
| $_config | |
| $_currentPackage | |
| $_dependencydb | |
| $_options | |
| $_os | |
| $_registry | |
| $_state | |
Definition at line 37 of file Dependency2.php.
| __construct | ( | & | $config, |
| $installoptions, | |||
| $package, | |||
| $state = PEAR_VALIDATE_INSTALLING ) |
| PEAR_Config | |
| array | installation options |
| array | format of PEAR_Registry::parsedPackageName() |
| int | installation state (one of PEAR_VALIDATE_*) |
Definition at line 84 of file Dependency2.php.
References $config, PEAR_VALIDATE_INSTALLING, and PEAR_DependencyDB\singleton().
|
static |
Definition at line 113 of file Dependency2.php.
Referenced by PEAR_Downloader_Package\_analyzeDownloadURL(), _validatePackageDownload(), _validatePackageUninstall(), PEAR_Command_Package\doPackageDependencies(), validateExtensionDependency(), validatePearinstallerDependency(), and validatePhpDependency().
| _validatePackageDownload | ( | $dep, | |
| $required, | |||
| $params, | |||
| $depv1 = false ) |
Definition at line 642 of file Dependency2.php.
References _getExtraString(), raiseError(), and warning().
Referenced by _validatePackageInstall(), and validatePackageDependency().
| _validatePackageInstall | ( | $dep, | |
| $required, | |||
| $depv1 = false ) |
Definition at line 871 of file Dependency2.php.
References _validatePackageDownload().
Referenced by validatePackageDependency().
| _validatePackageUninstall | ( | $dep, | |
| $required, | |||
| $dl ) |
Definition at line 1093 of file Dependency2.php.
References _getExtraString(), raiseError(), and warning().
Referenced by validatePackageUninstall().
| extension_loaded | ( | $name | ) |
This makes unit-testing a heck of a lot easier
Definition at line 315 of file Dependency2.php.
References extension_loaded().
Referenced by extension_loaded(), validateExtensionDependency(), and validatePackageDependency().
| getPEARVersion | ( | ) |
This makes unit-testing a heck of a lot easier
Definition at line 541 of file Dependency2.php.
Referenced by validatePearinstallerDependency().
| getPHP_OS | ( | ) |
This makes unit-testing a heck of a lot easier
Definition at line 164 of file Dependency2.php.
Referenced by validateOsDependency().
| getsysname | ( | ) |
This makes unit-testing a heck of a lot easier
Definition at line 172 of file Dependency2.php.
| matchSignature | ( | $pattern | ) |
This makes unit-testing a heck of a lot easier
Definition at line 266 of file Dependency2.php.
Referenced by validateArchDependency().
|
static |
Convert a 1.0 dep into a 2.0 dep
Definition at line 1249 of file Dependency2.php.
References signOperator().
Referenced by PEAR_Downloader_Package\_detect1(), PEAR_Downloader_Package\isEqual(), and validateDependency1().
| phpversion | ( | $name = null | ) |
This makes unit-testing a heck of a lot easier
Definition at line 323 of file Dependency2.php.
References phpversion().
Referenced by phpversion(), validateExtensionDependency(), and validatePhpDependency().
| raiseError | ( | $msg | ) |
Definition at line 1342 of file Dependency2.php.
References warning().
Referenced by _validatePackageDownload(), _validatePackageUninstall(), validateArchDependency(), validateDependency1(), validateExtensionDependency(), validateOsDependency(), validatePackage(), validatePackageUninstall(), validatePearinstallerDependency(), and validatePhpDependency().
|
static |
Converts text comparing operators to them sign equivalents
Example: 'ge' to '>='
@access public
| string | Operator |
Definition at line 1328 of file Dependency2.php.
Referenced by normalizeDep().
| validateArchDependency | ( | $dep | ) |
Specify a complex dependency on an OS/processor/kernel version, Use OS for simple operating system dependency.
This is the only dependency that accepts an eregable pattern. The pattern will be matched against the php_uname() output parsed by OS_Guess
Definition at line 278 of file Dependency2.php.
References matchSignature(), PEAR_VALIDATE_INSTALLING, raiseError(), and warning().
| validateDependency1 | ( | $dep, | |
| $params = array() ) |
validate a package.xml 1.0 dependency
Definition at line 1229 of file Dependency2.php.
References normalizeDep(), and raiseError().
| validateExtensionDependency | ( | $dep, | |
| $required = true ) |
Definition at line 332 of file Dependency2.php.
References _getExtraString(), extension_loaded(), PEAR_VALIDATE_DOWNLOADING, PEAR_VALIDATE_INSTALLING, phpversion(), raiseError(), and warning().
Referenced by validatePackageDependency().
| validateOsDependency | ( | $dep | ) |
Specify a dependency on an OS. Use arch for detailed os/processor information
There are two generic OS dependencies that will be the most common, unix and windows. Other options are linux, freebsd, darwin (OS X), sunos, irix, hpux, aix
Definition at line 183 of file Dependency2.php.
References getPHP_OS(), PEAR_VALIDATE_DOWNLOADING, PEAR_VALIDATE_INSTALLING, raiseError(), and warning().
| validatePackage | ( | $pkg, | |
| & | $dl, | ||
| $params = array() ) |
validate a downloaded package against installed packages
As of PEAR 1.4.3, this will only validate
| array | PEAR_Downloader_Package | PEAR_PackageFile_v1 | PEAR_PackageFile_v2 | $pkg | package identifier (either array('package' => blah, 'channel' => blah) or an array with index 'info' referencing an object) |
| PEAR_Downloader | $dl | |
| array | $params | full list of packages to install |
Definition at line 1163 of file Dependency2.php.
References PEAR_ERROR_RETURN, and raiseError().
| validatePackageDependency | ( | $dep, | |
| $required, | |||
| $params, | |||
| $depv1 = false ) |
| array | dependency information (2.0 format) |
| boolean | whether this is a required dependency |
| array | a list of downloaded packages to be installed, if any |
| boolean | if true, then deps on pear.php.net that fail will also check against pecl.php.net packages to accommodate extensions that have moved to pecl.php.net from pear.php.net |
Definition at line 612 of file Dependency2.php.
References _validatePackageDownload(), _validatePackageInstall(), extension_loaded(), PEAR_ERROR_RETURN, PEAR_VALIDATE_DOWNLOADING, PEAR_VALIDATE_INSTALLING, and validateExtensionDependency().
Referenced by validateSubpackageDependency().
| validatePackageUninstall | ( | & | $dl | ) |
Verify that uninstalling packages passed in to command line is OK.
| PEAR_Installer | $dl |
Definition at line 882 of file Dependency2.php.
References $_currentPackage, $_dependencydb, _validatePackageUninstall(), raiseError(), and warning().
| validatePearinstallerDependency | ( | $dep | ) |
Definition at line 546 of file Dependency2.php.
References _getExtraString(), getPEARVersion(), raiseError(), and warning().
| validatePhpDependency | ( | $dep | ) |
Definition at line 481 of file Dependency2.php.
References _getExtraString(), PEAR_VALIDATE_DOWNLOADING, PEAR_VALIDATE_INSTALLING, phpversion(), raiseError(), and warning().
| validateSubpackageDependency | ( | $dep, | |
| $required, | |||
| $params ) |
Definition at line 599 of file Dependency2.php.
References validatePackageDependency().
| warning | ( | $msg | ) |
Definition at line 1352 of file Dependency2.php.
Referenced by _validatePackageDownload(), _validatePackageUninstall(), raiseError(), validateArchDependency(), validateExtensionDependency(), validateOsDependency(), validatePackageUninstall(), validatePearinstallerDependency(), and validatePhpDependency().
| $_config |
Definition at line 65 of file Dependency2.php.
| $_currentPackage |
Definition at line 76 of file Dependency2.php.
Referenced by validatePackageUninstall().
| $_dependencydb |
Definition at line 70 of file Dependency2.php.
Referenced by validatePackageUninstall().
| $_options |
Command-line options to install/upgrade/uninstall commands
| array |
Definition at line 50 of file Dependency2.php.
| $_os |
Definition at line 55 of file Dependency2.php.
| $_registry |
Definition at line 60 of file Dependency2.php.
| $_state |
Definition at line 44 of file Dependency2.php.