From: Tomas V.V.Cox Date: Sun, 7 Apr 2002 20:47:04 +0000 (+0000) Subject: Added PEAR_Common::getUserRoles() and a suggestion X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~810 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ac6b788187aaa330cf03a738721f99867472f49;p=php Added PEAR_Common::getUserRoles() and a suggestion --- 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