diff options
Diffstat (limited to 'engine/lib/sites.php')
-rw-r--r-- | engine/lib/sites.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/engine/lib/sites.php b/engine/lib/sites.php index 79b71d901..cf838e720 100644 --- a/engine/lib/sites.php +++ b/engine/lib/sites.php @@ -139,8 +139,12 @@ function remove_site_user($site_guid, $user_guid) { * @param int $offset Offset * * @return mixed + * @deprecated 1.8 Use ElggSite::getMembers() */ function get_site_members($site_guid, $limit = 10, $offset = 0) { + elgg_deprecated_notice("get_site_members() deprecated. + Use ElggSite::getMembers()", 1.8); + $site_guid = (int)$site_guid; $limit = (int)$limit; $offset = (int)$offset; @@ -162,8 +166,13 @@ function get_site_members($site_guid, $limit = 10, $offset = 0) { * @param bool $fullview Whether or not to display the full view (default: true) * * @return string A displayable list of members + * @deprecated 1.8 Use elgg_list_entities_from_relationships() with relationship + * 'member_of_site' */ function list_site_members($site_guid, $limit = 10, $fullview = true) { + elgg_deprecated_notice("list_site_members() deprecated. + Use elgg_list_entities_from_relationships()", 1.8); + $offset = (int) get_input('offset'); $limit = (int) $limit; $options = array( @@ -179,7 +188,6 @@ function list_site_members($site_guid, $limit = 10, $fullview = true) { $entities = get_site_members($site_guid, $limit, $offset); return elgg_view_entity_list($entities, $count, $offset, $limit, $fullview); - } /** |