| @@ 141-150 (lines=10) @@ | ||
| 138 | $groups = $auth->getGroupsByFilter(false); |
|
| 139 | $count = count($groups); |
|
| 140 | $res = array(); |
|
| 141 | for($i = 0; $i < $count; $i++) |
|
| 142 | { |
|
| 143 | $tmp = json_decode(json_encode($groups[$i]), true); |
|
| 144 | $tmp['type'] = 'Group'; |
|
| 145 | if($keys !== false) |
|
| 146 | { |
|
| 147 | $tmp = array_intersect_key($tmp, $keys); |
|
| 148 | } |
|
| 149 | $res[] = $tmp; |
|
| 150 | } |
|
| 151 | $users = $auth->getUsersByFilter(false); |
|
| 152 | $count = count($users); |
|
| 153 | for($i = 0; $i < $count; $i++) |
|
| @@ 153-162 (lines=10) @@ | ||
| 150 | } |
|
| 151 | $users = $auth->getUsersByFilter(false); |
|
| 152 | $count = count($users); |
|
| 153 | for($i = 0; $i < $count; $i++) |
|
| 154 | { |
|
| 155 | $tmp = json_decode(json_encode($users[$i]), true); |
|
| 156 | $tmp['type'] = 'User'; |
|
| 157 | if($keys !== false) |
|
| 158 | { |
|
| 159 | $tmp = array_intersect_key($tmp, $keys); |
|
| 160 | } |
|
| 161 | $res[] = $tmp; |
|
| 162 | } |
|
| 163 | return $res; |
|
| 164 | } |
|
| 165 | ||
| @@ 183-188 (lines=6) @@ | ||
| 180 | if($keys !== false) |
|
| 181 | { |
|
| 182 | $count = count($nonMembers); |
|
| 183 | for($i = 0; $i < $count; $i++) |
|
| 184 | { |
|
| 185 | $tmp = json_decode(json_encode($nonMembers[$i]), true); |
|
| 186 | $tmp['type'] = $this->getTypeOfEntity($nonMembers[$i]); |
|
| 187 | $nonMembers[$i] = array_intersect_key($tmp, $keys); |
|
| 188 | } |
|
| 189 | } |
|
| 190 | return $nonMembers; |
|
| 191 | } |
|