aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/sites.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-21 13:00:08 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-21 13:00:08 +0000
commit75187715f6d7a04bbda4858d6a17138001da4807 (patch)
tree9a87d9b742c6f82bd6a9ac3a9c51c972ec6cb670 /engine/lib/sites.php
parentc100c017b6c9aeb6faf5b901fe0e128035e9b1e0 (diff)
downloadelgg-75187715f6d7a04bbda4858d6a17138001da4807.tar.gz
elgg-75187715f6d7a04bbda4858d6a17138001da4807.tar.bz2
deprecated two site functions and removed a use of previously deprecated function in the wire plugin
git-svn-id: http://code.elgg.org/elgg/trunk@7396 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/sites.php')
-rw-r--r--engine/lib/sites.php10
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);
-
}
/**