PEAR_PackageFileManager::
addPlatformException
(Previous)
(Next) PEAR_PackageFileManager::
addRole

Last updated: Sun, 16 May 2004

PEAR_PackageFileManager::addReplacement()

PEAR_PackageFileManager::addReplacement() -- Add a replacement option for a file

ïÐÉÓÁÎÉÅ

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

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.

ðÁÒÁÍÅÔÒ

string $path

relative path of file (relative to packagedirectory option)

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

Throws

throws PEAR_PACKAGEFILEMANAGER_INVALID_REPLACETYPE

úÁÍÅÔËÁ

üÔÁ ÆÕÎËÃÉÑ ÎÅ ÄÏÌÖÎÁ ×ÙÚÙ×ÁÔØÓÑ ÓÔÁÔÉÞÅÓËÉ.

PEAR_PackageFileManager::
addPlatformException
(Previous)
(Next) PEAR_PackageFileManager::
addRole

Download Documentation Last updated: Sun, 16 May 2004
Hosting
HIVE: All information for read only. Please respect copyright!
Hosted by hive ÊÃÁ: Êèåâñêàÿ ãîðîäñêàÿ áèáëèîòåêà