| @@ 189-198 (lines=10) @@ | ||
| 186 | $res = array(); |
|
| 187 | $groups = $auth->getGroupsByFilter(false); |
|
| 188 | $count = count($groups); |
|
| 189 | for($i = 0; $i < $count; $i++) |
|
| 190 | { |
|
| 191 | $tmp = json_decode(json_encode($groups[$i]), true); |
|
| 192 | $tmp['type'] = 'Group'; |
|
| 193 | if($keys !== false) |
|
| 194 | { |
|
| 195 | $tmp = array_intersect_key($tmp, $keys); |
|
| 196 | } |
|
| 197 | $res[] = $tmp; |
|
| 198 | } |
|
| 199 | $users = $auth->getUsersByFilter(false); |
|
| 200 | $count = count($users); |
|
| 201 | for($i = 0; $i < $count; $i++) |
|
| @@ 201-210 (lines=10) @@ | ||
| 198 | } |
|
| 199 | $users = $auth->getUsersByFilter(false); |
|
| 200 | $count = count($users); |
|
| 201 | for($i = 0; $i < $count; $i++) |
|
| 202 | { |
|
| 203 | $tmp = json_decode(json_encode($users[$i]), true); |
|
| 204 | $tmp['type'] = 'User'; |
|
| 205 | if($keys !== false) |
|
| 206 | { |
|
| 207 | $tmp = array_intersect_key($tmp, $keys); |
|
| 208 | } |
|
| 209 | $res[] = $tmp; |
|
| 210 | } |
|
| 211 | return $res; |
|
| 212 | } |
|
| 213 | ||
| @@ 219-224 (lines=6) @@ | ||
| 216 | if($keys !== false) |
|
| 217 | { |
|
| 218 | $count = count($nonMembers); |
|
| 219 | for($i = 0; $i < $count; $i++) |
|
| 220 | { |
|
| 221 | $tmp = json_decode(json_encode($nonMembers[$i]), true); |
|
| 222 | $tmp['type'] = getTypeOfEntity($nonMembers[$i]); |
|
| 223 | $nonMembers[$i] = array_intersect_key($tmp, $keys); |
|
| 224 | } |
|
| 225 | } |
|
| 226 | return $nonMembers; |
|
| 227 | } |
|