cvs: php4 /pear/PEAR Common.php
| From: | Tomas V.V.Cox | Date: | Sun, 07 Apr 2002 20:47:05 +0000 |
| Subject: | cvs: php4 /pear/PEAR Common.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3116@lists.php.net to get a copy of this message | ||
cox Sun Apr 7 16:47:05 2002 EDT
Modified files:
/php4/pear/PEAR Common.php
Log:
Added PEAR_Common::getUserRoles() and a suggestion
Index: php4/pear/PEAR/Common.php
diff -u php4/pear/PEAR/Common.php:1.44 php4/pear/PEAR/Common.php:1.45
--- php4/pear/PEAR/Common.php:1.44 Sun Apr 7 11:49:23 2002
+++ php4/pear/PEAR/Common.php Sun Apr 7 16:47:04 2002
@@ -17,7 +17,7 @@
// | Tomas V.V.Cox <cox@idecnet.com> |
// +----------------------------------------------------------------------+
//
-// $Id: Common.php,v 1.44 2002/04/07 15:49:23 ssb Exp $
+// $Id: Common.php,v 1.45 2002/04/07 20:47:04 cox Exp $
require_once 'PEAR.php';
require_once 'Archive/Tar.php';
@@ -910,12 +910,24 @@
} 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;
+ }
}
?>