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

Class: PEAR_Dependency2

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

Class Overview


Dependency check for PEAR packages


Author(s):

Version:

  • Release: 1.9.4

Copyright:

  • 1997-2009 The Authors

Methods


Inherited Variables

Inherited Methods


Class Details

[line 38]
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

PEAR_Dependency2 (Constructor)   [line 85]

PEAR_Dependency2 PEAR_Dependency2( 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 316]

void extension_loaded( $name)

This makes unit-testing a heck of a lot easier

Parameters:

   $name     

[ Top ]

getPEARVersion   [line 542]

void getPEARVersion( )

This makes unit-testing a heck of a lot easier

[ Top ]

getPHP_OS   [line 165]

void getPHP_OS( )

This makes unit-testing a heck of a lot easier

[ Top ]

getsysname   [line 173]

void getsysname( )

This makes unit-testing a heck of a lot easier

[ Top ]

matchSignature   [line 267]

void matchSignature( $pattern)

This makes unit-testing a heck of a lot easier

Parameters:

   $pattern     

[ Top ]

normalizeDep   [line 1250]

void normalizeDep( $dep)

Convert a 1.0 dep into a 2.0 dep

Parameters:

   $dep     

[ Top ]

phpversion   [line 324]

void phpversion( [ $name = null])

This makes unit-testing a heck of a lot easier

Parameters:

   $name     

[ Top ]

raiseError   [line 1343]

void raiseError( $msg)


Parameters:

   $msg     

[ Top ]

signOperator   [line 1329]

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 279]

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 1230]

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

validate a package.xml 1.0 dependency

Parameters:

   $dep     
   $params     

[ Top ]

validateExtensionDependency   [line 333]

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


Parameters:

   $dep     
   $required     

[ Top ]

validateOsDependency   [line 184]

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 1164]

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 613]

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 accomodate extensions that have moved to pecl.php.net from pear.php.net

[ Top ]

validatePackageUninstall   [line 883]

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 547]

void validatePearinstallerDependency( $dep)


Parameters:

   $dep     

[ Top ]

validatePhpDependency   [line 482]

void validatePhpDependency( $dep)


Parameters:

   $dep     

[ Top ]

validateSubpackageDependency   [line 600]

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


Parameters:

   $dep     
   $required     
   $params     

[ Top ]

warning   [line 1353]

void warning( $msg)


Parameters:

   $msg     

[ Top ]


Documentation generated on Wed, 06 Jul 2011 23:30:42 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.