PEAR_PackageFileManager::addRole()

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

Synopsis

require_once 'PEAR/PackageFileManager.php';

void PEAR_PackageFileManager::addRole (string $extension, string $role)

Описание

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

Параметр

string $extension

file extension

string $role

role

Throws

throws PEAR_PACKAGEFILEMANAGER_INVALID_ROLE

Заметка

Эта функция не должна вызываться статически.


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ