From 6ac6b788187aaa330cf03a738721f99867472f49 Mon Sep 17 00:00:00 2001 From: "Tomas V.V.Cox" Date: Sun, 7 Apr 2002 20:47:04 +0000 Subject: [PATCH] Added PEAR_Common::getUserRoles() and a suggestion --- pear/PEAR/Common.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 -- 2.50.1