diff options
author | Tomas V.V.Cox <cox@php.net> | 2002-04-07 20:47:04 +0000 |
---|---|---|
committer | Tomas V.V.Cox <cox@php.net> | 2002-04-07 20:47:04 +0000 |
commit | 6ac6b788187aaa330cf03a738721f99867472f49 (patch) | |
tree | 929c86d81f06ab21d4f639e1ad3f63122649bfc2 | |
parent | 954dbb2d3554080dbfe84c4c6f7ee2017c48807e (diff) | |
download | php-git-6ac6b788187aaa330cf03a738721f99867472f49.tar.gz |
Added PEAR_Common::getUserRoles() and a suggestion
-rw-r--r-- | pear/PEAR/Common.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/pear/PEAR/Common.php b/pear/PEAR/Common.php index a50ece6969..9d846ceb1f 100644 --- a/pear/PEAR/Common.php +++ b/pear/PEAR/Common.php @@ -910,12 +910,24 @@ class PEAR_Common extends PEAR } elseif ($fa['role'] == 'extsrc' && empty($fa['sources'])) { $errors[] = "$file: no source files"; } - // Any checks we can do for baseinstalldir? + // (ssb) Any checks we can do for baseinstalldir? + // (cox) Perhaps checks that either the target dir and baseInstall + // doesn't cointain "../../" } } return true; } // }}} + /** + * Get the valid roles for a PEAR package maintainer + * + * @static + */ + function getUserRoles() + { + $common = &new PEAR_Common; + return $common->maintainer_roles; + } } ?>
\ No newline at end of file |