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

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

PEAR_PackageFileManager::addRole()

PEAR_PackageFileManager::addRole() -- Add an extension/role mapping to the role mapping option

Description

Roles influence both where a file is installed and how it is installed. Files with role="data" are in a completely different directory hierarchy from the program files of role="php"

In PEAR 1.3b2, these roles are

  • php (most common)

  • data

  • doc

  • test

  • script (gives the file an executable attribute)

  • src

Parameter

string $extension

file extension

string $role

role

Throws

throws PEAR_PACKAGEFILEMANAGER_INVALID_ROLE

Note

This function can not be called statically.

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

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