PEAR
[ class tree: PEAR ] [ index: PEAR ] [ all elements ]

Class: PEAR_Dependency2

Source Location: /PEAR-1.10.12/PEAR/Dependency2.php

Class Overview


Dependency check for PEAR packages


Author(s):

Version:

  • Release: 1.10.12

Copyright:

  • 1997-2009 The Authors

Methods


Inherited Variables

Inherited Methods


Class Details

[line 37]
Dependency check for PEAR packages

This class handles both version 1.0 and 2.0 dependencies WARNING: *any* changes to this class must be duplicated in the test_PEAR_Dependency2 class found in tests/PEAR_Dependency2/setup.php.inc, or unit tests will not actually validate the changes



[ Top ]


Method Detail

__construct (Constructor)   [line 84]

PEAR_Dependency2 __construct( PEAR_Config &$config, array $installoptions, array $package, [int $state = PEAR_VALIDATE_INSTALLING])


Parameters:

PEAR_Config   &$config   — 
array   $installoptions   —  installation options
array   $package   —  format of PEAR_Registry::parsedPackageName()
int   $state   —  installation state (one of PEAR_VALIDATE_*)

[ Top ]

extension_loaded   [line 315]

void extension_loaded( $name)

This makes unit-testing a heck of a lot easier

Parameters:

   $name   — 

[ Top ]

getPEARVersion   [line 541]

void getPEARVersion( )

This makes unit-testing a heck of a lot easier

[ Top ]

getPHP_OS   [line 164]

void getPHP_OS( )

This makes unit-testing a heck of a lot easier

[ Top ]

getsysname   [line 172]

void getsysname( )

This makes unit-testing a heck of a lot easier

[ Top ]

matchSignature   [line 266]

void matchSignature( $pattern)

This makes unit-testing a heck of a lot easier

Parameters:

   $pattern   — 

[ Top ]

normalizeDep   [line 1249]

void normalizeDep( $dep)

Convert a 1.0 dep into a 2.0 dep

Parameters:

   $dep   — 

[ Top ]

phpversion   [line 323]

void phpversion( [ $name = null])

This makes unit-testing a heck of a lot easier

Parameters:

   $name   — 

[ Top ]

raiseError   [line 1342]

void raiseError( $msg)


Parameters:

   $msg   — 

[ Top ]

signOperator   [line 1328]

string signOperator( string $operator)

Converts text comparing operators to them sign equivalents

Example: 'ge' to '>='

  • Return: Sign equivalent
  • Access: public

Parameters:

string   $operator   —  Operator

[ Top ]

validateArchDependency   [line 278]

void 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


Parameters:

   $dep   — 

[ Top ]

validateDependency1   [line 1229]

void validateDependency1( $dep, [ $params = array()])

validate a package.xml 1.0 dependency

Parameters:

   $dep   — 
   $params   — 

[ Top ]

validateExtensionDependency   [line 332]

void validateExtensionDependency( $dep, [ $required = true])


Parameters:

   $dep   — 
   $required   — 

[ Top ]

validateOsDependency   [line 183]

void 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


Parameters:

   $dep   — 

[ Top ]

validatePackage   [line 1163]

true|PEAR_Error validatePackage( array|PEAR_Downloader_Package|PEAR_PackageFile_v1|PEAR_PackageFile_v2 $pkg, &$dl, [array $params = array()], PEAR_Downloader $dl)

validate a downloaded package against installed packages

As of PEAR 1.4.3, this will only validate


Parameters:

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
   &$dl   — 

[ Top ]

validatePackageDependency   [line 612]

void validatePackageDependency( array $dep, boolean $required, array $params, [boolean $depv1 = false])


Parameters:

array   $dep   —  dependency information (2.0 format)
boolean   $required   —  whether this is a required dependency
array   $params   —  a list of downloaded packages to be installed, if any
boolean   $depv1   —  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

[ Top ]

validatePackageUninstall   [line 882]

PEAR_Error|true validatePackageUninstall( &$dl, PEAR_Installer $dl)

Verify that uninstalling packages passed in to command line is OK.

Parameters:

PEAR_Installer   $dl   — 
   &$dl   — 

[ Top ]

validatePearinstallerDependency   [line 546]

void validatePearinstallerDependency( $dep)


Parameters:

   $dep   — 

[ Top ]

validatePhpDependency   [line 481]

void validatePhpDependency( $dep)


Parameters:

   $dep   — 

[ Top ]

validateSubpackageDependency   [line 599]

void validateSubpackageDependency( $dep, $required, $params)


Parameters:

   $dep   — 
   $required   — 
   $params   — 

[ Top ]

warning   [line 1352]

void warning( $msg)


Parameters:

   $msg   — 

[ Top ]


Documentation generated on Sun, 19 Apr 2020 14:22:12 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.