require_once 'PEAR/PackageFileManager.php';
void PEAR_PackageFileManager::addRole (string $extension, string $role)
void PEAR_PackageFileManager::addRole
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
file extension
role
throws PEAR_PACKAGEFILEMANAGER_INVALID_ROLE
This function can not be called statically.