PEAR_PackageFileManager::addConfigureOption (Previous) (Next) PEAR_PackageFileManager::addMaintainer

View this page in Last updated: Sun, 07 Sep 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

PEAR_PackageFileManager::addDependency()

PEAR_PackageFileManager::addDependency() -- Add a dependency on another package, or an extension/php

Description

This will overwrite an existing dependency if it is found. In other words, if a dependency on PHP 4.1.0 exists, and addDependency('php', '4.3.0', 'ge', 'php') is called, the existing dependency on PHP 4.1.0 will be overwritten with the new one on PHP 4.3.0

Paramètres

chaîne de caractères $name

Dependency element name

chaîne de caractères $version

Dependency version

chaîne de caractères $operator

A specific operator for the version, this can be one of: 'has', 'not', 'lt', 'le', 'eq', 'ne', 'ge', or 'gt'

chaîne de caractères $type

Dependency type. This can be one of: 'pkg', 'ext', 'php', 'prog', 'os', 'sapi', or 'zend'

booléen $optional

TRUE if dependency is optional

Valeurs renvoyées

throws PEAR_PACKAGEFILEMANAGER_RUN_SETOPTIONS

throws PEAR_PACKAGEFILEMANAGER_PHP_NOT_PACKAGE

Note

Cette fonction ne peut pas être appelée de façon statique.

PEAR_PackageFileManager::addConfigureOption (Previous) (Next) PEAR_PackageFileManager::addMaintainer

Download Documentation Last updated: Sun, 07 Sep 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.