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

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

PEAR_PackageFileManager::addGlobalReplacement()

PEAR_PackageFileManager::addGlobalReplacement() -- すべてのファイルに対して置換オプションを追加する

説明

インストール時に実行される複雑な置換関数を設定します。これは、 インストールするファイルに対してプラットフォーム固有の値を 設定するために使用することができます。

$type が php-const の場合は、$to には PHP の定数名を指定しなければ なりません。$type が pear-config の場合は、$to には PEAR_Config::get() メソッドでアクセス可能な PEAR 設定変数を 指定しなければなりません。 $type が package-info の場合は、$to には package.xml の セクション名を指定する必要があります。

パラメータ

string $type

変数の形式。php-const、pear-config あるいは package-info のいずれかです。

string $from

ソースファイル内の置換対象テキスト。

string $to

置換に使用する変数名。

例外・エラー

PEAR_PACKAGEFILEMANAGER_INVALID_REPLACETYPE をスローします。

注意

この関数は、スタティックにコールする ことはできません。

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

Download Documentation Last updated: Sun, 24 Aug 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.