Commit 911d55e88df738808313caa9175d8dd70da16b95
1 parent
cde55476
(#2616) added defaultUsersAssigned method to check the folder collaboration step…
…s have default users assigned git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2405 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
13 additions
and
2 deletions
lib/foldermanagement/FolderCollaboration.inc
| ... | ... | @@ -218,7 +218,18 @@ class FolderCollaboration { |
| 218 | 218 | return false; |
| 219 | 219 | } |
| 220 | 220 | |
| 221 | - | |
| 222 | - | |
| 221 | + /** | |
| 222 | + * Checks whether all the FolderCollaboration objects have the default user set | |
| 223 | + * | |
| 224 | + * @param array folder collaboration information for a specific document | |
| 225 | + * @return true if all default users are set, false otherwise | |
| 226 | + */ | |
| 227 | + function defaultUsersAssigned($aFolderCollaboration) { | |
| 228 | + $bUsersSet = true; | |
| 229 | + for ($i=0; $i<count($aFolderCollaboration); $i++) { | |
| 230 | + $bUsersSet = $bUsersSet && $aFolderCollaboration[$i]->getUserID(); | |
| 231 | + } | |
| 232 | + return $bUsersSet; | |
| 233 | + } | |
| 223 | 234 | } |
| 224 | 235 | ?> | ... | ... |