Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 17125 программистов и 1834 робота. Сейчас ищут 1574 программиста ...
PEAR_PackageFileManager::addRole
Вернуться к: PEAR_PackageFileManager
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
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