]> granicus.if.org Git - php/commitdiff
Added PEAR_Common::getUserRoles() and a suggestion
authorTomas V.V.Cox <cox@php.net>
Sun, 7 Apr 2002 20:47:04 +0000 (20:47 +0000)
committerTomas V.V.Cox <cox@php.net>
Sun, 7 Apr 2002 20:47:04 +0000 (20:47 +0000)
pear/PEAR/Common.php

index a50ece6969089ae128189c1e90dbdb1affa899a4..9d846ceb1f0ed692da221817e0afb926d2bcb8a9 100644 (file)
@@ -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