engine/classes/ElggGroup.php 1 location
|
@@ 354-359 (lines=6) @@
|
351 |
|
'offset' => $offset, |
352 |
|
'count' => $count, |
353 |
|
); |
354 |
|
} else { |
355 |
|
$options['relationship'] = 'member'; |
356 |
|
$options['relationship_guid'] = $this->getGUID(); |
357 |
|
$options['inverse_relationship'] = true; |
358 |
|
$options['type'] = 'user'; |
359 |
|
} |
360 |
|
|
361 |
|
return elgg_get_entities_from_relationship($options); |
362 |
|
} |
mod/thewire_tools/procedures/autocomplete.php 1 location
|
@@ 33-37 (lines=5) @@
|
30 |
|
$options["relationship"] = "member"; |
31 |
|
$options["relationship_guid"] = $group->getGUID(); |
32 |
|
$options["inverse_relationship"] = true; |
33 |
|
} else { |
34 |
|
$options["relationship"] = "member_of_site"; |
35 |
|
$options["relationship_guid"] = $site->getGUID(); |
36 |
|
$options["inverse_relationship"] = true; |
37 |
|
} |
38 |
|
|
39 |
|
$users = elgg_get_entities_from_relationship($options); |
40 |
|
if (!empty($users)) { |
mod/group_tools/procedures/group_invite_autocomplete.php 1 location
|
@@ 71-75 (lines=5) @@
|
68 |
|
if ($relationship == "friends") { |
69 |
|
$query_options["relationship"] = "friend"; |
70 |
|
$query_options["relationship_guid"] = $user->getGUID(); |
71 |
|
} elseif ($relationship == "site") { |
72 |
|
$query_options["relationship"] = "member_of_site"; |
73 |
|
$query_options["relationship_guid"] = elgg_get_site_entity()->getGUID(); |
74 |
|
$query_options["inverse_relationship"] = true; |
75 |
|
} |
76 |
|
|
77 |
|
$entities = elgg_get_entities_from_relationship($query_options); |
78 |
|
if (!empty($entities)) { |