PEAR_PackageFileManager::addPlatformException (Previous) (Next) PEAR_PackageFileManager::addReplacement

View this page in Last updated: Sun, 01 Jul 2007
English | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

PEAR_PackageFileManager::addGlobalReplacement()

PEAR_PackageFileManager::addGlobalReplacement() -- Add a replacement option for all files

Leírás

This sets an install-time complex search-and-replace function allowing the setting of platform-specific variables in all installed files.

if $type is php-const, then $to must be the name of a PHP Constant. If $type is pear-config, then $to must be the name of a PEAR config variable accessible through a PEAR_Config::get() method. If type is package-info, then $to must be the name of a section from the package.xml file used to install this file.

Paraméterek

string $type

variable type, either php-const, pear-config or package-info

string $from

text to replace in the source file

string $to

variable name to use for replacement

Lehetséges hibaértékek

throws PEAR_PACKAGEFILEMANAGER_INVALID_REPLACETYPE

Megjegyzés

Ez a függvény nem hívható statikusan.

PEAR_PackageFileManager::addPlatformException (Previous) (Next) PEAR_PackageFileManager::addReplacement

Download Documentation Last updated: Sun, 01 Jul 2007
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.