* @author Greg Beaver <cellog@php.net>
* @copyright 1997-2009 The Authors
* @license http://opensource.org/licenses/bsd-license.php New BSD License
- * @version CVS: $Id: Role.php 313023 2011-07-06 19:17:11Z dufuz $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 1.4.0a1
*/
* @author Greg Beaver <cellog@php.net>
* @copyright 1997-2009 The Authors
* @license http://opensource.org/licenses/bsd-license.php New BSD License
- * @version Release: 1.9.4
+ * @version Release: 1.10.1
* @link http://pear.php.net/package/PEAR
* @since Class available since Release 1.4.0a1
*/
*
* Never call this directly, it is called by the PEAR_Config constructor
* @param PEAR_Config
- * @access private
- * @static
*/
- function initializeConfig(&$config)
+ public static function initializeConfig(&$config)
{
if (!isset($GLOBALS['_PEAR_INSTALLER_ROLES'])) {
PEAR_Installer_Role::registerRoles();
* @param string role name
* @param PEAR_Config
* @return PEAR_Installer_Role_Common
- * @static
*/
- function &factory($pkg, $role, &$config)
+ public static function &factory($pkg, $role, &$config)
{
if (!isset($GLOBALS['_PEAR_INSTALLER_ROLES'])) {
PEAR_Installer_Role::registerRoles();
* @param string
* @param bool clear cache
* @return array
- * @static
*/
- function getValidRoles($release, $clear = false)
+ public static function getValidRoles($release, $clear = false)
{
if (!isset($GLOBALS['_PEAR_INSTALLER_ROLES'])) {
PEAR_Installer_Role::registerRoles();
* roles are actually fully bundled releases of a package
* @param bool clear cache
* @return array
- * @static
*/
- function getInstallableRoles($clear = false)
+ public static function getInstallableRoles($clear = false)
{
if (!isset($GLOBALS['_PEAR_INSTALLER_ROLES'])) {
PEAR_Installer_Role::registerRoles();
* so a tests file tests/file.phpt is installed into PackageName/tests/filepath.php
* @param bool clear cache
* @return array
- * @static
*/
- function getBaseinstallRoles($clear = false)
+ public static function getBaseinstallRoles($clear = false)
{
if (!isset($GLOBALS['_PEAR_INSTALLER_ROLES'])) {
PEAR_Installer_Role::registerRoles();
* like the "php" role.
* @param bool clear cache
* @return array
- * @static
*/
- function getPhpRoles($clear = false)
+ public static function getPhpRoles($clear = false)
{
if (!isset($GLOBALS['_PEAR_INSTALLER_ROLES'])) {
PEAR_Installer_Role::registerRoles();
* included.
*
* @return bool TRUE on success, a PEAR error on failure
- * @access public
- * @static
*/
- function registerRoles($dir = null)
+ public static function registerRoles($dir = null)
{
$GLOBALS['_PEAR_INSTALLER_ROLES'] = array();
$parser = new PEAR_XMLParser;