![]() |
Bearsampp 2026.9.23
|
Static Public Member Functions | |
| static & | factory ($pkg, $role, &$config) |
| static | getBaseinstallRoles ($clear=false) |
| static | getInstallableRoles ($clear=false) |
| static | getPhpRoles ($clear=false) |
| static | getValidRoles ($release, $clear=false) |
| static | initializeConfig (&$config) |
| static | registerRoles ($dir=null) |
|
static |
| PEAR_PackageFile_v2 | |
| string | role name |
| PEAR_Config |
Definition at line 60 of file Role.php.
References $config, $GLOBALS, getValidRoles(), and registerRoles().
Referenced by PEAR_Installer\_installFile2(), and PEAR_Command_Registry\doFileList().
|
static |
Return an array of roles that are affected by the baseinstalldir attribute
Most roles ignore this attribute, and instead install directly into: PackageName/filepath so a tests file tests/file.phpt is installed into PackageName/tests/filepath.php
| bool | clear cache |
Definition at line 156 of file Role.php.
References $GLOBALS, and registerRoles().
Referenced by PEAR_Registry\_rebuildFileMap(), PEAR_Registry\checkFileMap(), and registerRoles().
|
static |
Get a list of roles that require their files to be installed
Most roles must be installed, but src and package roles, for instance are pseudo-roles. src files are compiled into a new extension. Package roles are actually fully bundled releases of a package
| bool | clear cache |
Definition at line 122 of file Role.php.
References $GLOBALS, and registerRoles().
Referenced by PEAR_Registry\_rebuildFileMap(), PEAR_Registry\checkFileMap(), and registerRoles().
|
static |
Return an array of file roles that should be analyzed for PHP content at package time, like the "php" role.
| bool | clear cache |
Definition at line 187 of file Role.php.
References $GLOBALS, and registerRoles().
Referenced by PEAR_PackageFile_v2_Validator\_analyzePhpFiles(), and registerRoles().
|
static |
Get a list of file roles that are valid for the particular release type.
For instance, src files serve no purpose in regular php releases.
| string | |
| bool | clear cache |
Definition at line 88 of file Role.php.
References $GLOBALS, and registerRoles().
Referenced by PEAR_Installer\_installFile2(), PEAR_PackageFile_v2_Validator\_invalidFileRole(), PEAR_PackageFile_v2_Validator\_validateRole(), factory(), and registerRoles().
|
static |
Set up any additional configuration variables that file roles require
Never call this directly, it is called by the PEAR_Config constructor
| PEAR_Config |
Definition at line 39 of file Role.php.
References $config, $GLOBALS, and registerRoles().
|
static |
Scan through the Command directory looking for classes and see what commands they implement.
| string | which directory to look for classes, defaults to the Installer/Roles subdirectory of the directory from where this file (FILE) is included. |
Definition at line 222 of file Role.php.
References $GLOBALS, getBaseinstallRoles(), getInstallableRoles(), getPhpRoles(), and getValidRoles().
Referenced by factory(), getBaseinstallRoles(), getInstallableRoles(), getPhpRoles(), getValidRoles(), and initializeConfig().