PEAR_PackageFileManager::addReplacement (Previous) (Next) PEAR_PackageFileManager::detectDependencies

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

PEAR_PackageFileManager::addRole()

PEAR_PackageFileManager::addRole() -- ロールマッピングオプションに、拡張子とロールの対応を追加する

説明

ロールは、ファイルのインストール先およびインストール方法に 影響を及ぼします。role="data" が指定されたファイルは、 role="php" が指定されたプログラムファイルとは まったく別のディレクトリ階層に配置されます。

PEAR 1.3b2 では、以下のロールが使用可能です。

  • php (もっとも一般的です)

  • data

  • doc

  • test

  • script (ファイルに実行可能属性を与えます)

  • src

パラメータ

string $extension

ファイルの拡張子。

string $role

ロール。

例外・エラー

PEAR_PACKAGEFILEMANAGER_INVALID_ROLE をスローします。

注意

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

PEAR_PackageFileManager::addReplacement (Previous) (Next) PEAR_PackageFileManager::detectDependencies

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