projects
/
fusionforge
/
fusionforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b43d62d
)
Added new getRoles convenience function
author
Roland Mas
<lolando@debian.org>
Thu, 8 Apr 2010 13:09:48 +0000
(13:09 +0000)
committer
Roland Mas
<lolando@debian.org>
Thu, 8 Apr 2010 13:09:48 +0000
(13:09 +0000)
gforge/common/include/Group.class.php
patch
|
blob
|
history
diff --git
a/gforge/common/include/Group.class.php
b/gforge/common/include/Group.class.php
index 5173112e88061ce07b85a996cb3863d23c74b0d5..f969eb31572a0f33e6ca62833716b056ce781ea3 100644
(file)
--- a/
gforge/common/include/Group.class.php
+++ b/
gforge/common/include/Group.class.php
@@
-2434,11
+2434,21
@@
The %1$s admin team will now examine your project submission. You will be notif
return $rolesId;
}
- function normalizeAllRoles () {
+ function getRoles () {
+ $result = array () ;
+
$roles = $this->getRolesId () ;
-
foreach ($roles as $role_id) {
- $r = new Role ($this, $role_id) ;
+ $result[] = new Role ($this, $role_id) ;
+ }
+
+ return $result ;
+ }
+
+ function normalizeAllRoles () {
+ $roles = $this->getRoles () ;
+
+ foreach ($roles as $r) {
$r->normalizeData () ;
}
}