From 53391d961c8531c81363f4e7beae8ddefe6df800 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Wed, 10 Nov 2010 22:53:14 +0000 Subject: Fixes #2306: deprecated get/count/list_user_objects as well as get_user_objects_by_metadata git-svn-id: http://code.elgg.org/elgg/trunk@7286 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/users.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'engine/lib') diff --git a/engine/lib/users.php b/engine/lib/users.php index 1e49c5926..b3c21a0b5 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -443,10 +443,11 @@ $offset = 0) { * @param int $timeupper The latest time the entity can have been created. Default: all * * @return false|array An array of ElggObjects or false, depending on success + * @deprecated 1.8 Use elgg_get_entities() instead */ function get_user_objects($user_guid, $subtype = ELGG_ENTITIES_ANY_VALUE, $limit = 10, $offset = 0, $timelower = 0, $timeupper = 0) { - + elgg_deprecated_notice("get_user_objects() was deprecated in favor of elgg_get_entities()", 1.8); $ntt = elgg_get_entities(array( 'type' => 'object', 'subtype' => $subtype, @@ -469,10 +470,11 @@ $offset = 0, $timelower = 0, $timeupper = 0) { * @param int $timeupper The latest time the entity can have been created. Default: all * * @return int The number of objects the user owns (of this subtype) + * @deprecated 1.8 Use elgg_get_entities() instead */ function count_user_objects($user_guid, $subtype = ELGG_ENTITIES_ANY_VALUE, $timelower = 0, $timeupper = 0) { - + elgg_deprecated_notice("count_user_objects() was deprecated in favor of elgg_get_entities()", 1.8); $total = elgg_get_entities(array( 'type' => 'object', 'subtype' => $subtype, @@ -500,9 +502,11 @@ $timeupper = 0) { * @param int $timeupper The latest time the entity can have been created. Default: all * * @return string The list in a form suitable to display + * @deprecated 1.8 Use elgg_list_entities() instead */ function list_user_objects($user_guid, $subtype = ELGG_ENTITIES_ANY_VALUE, $limit = 10, $fullview = true, $viewtypetoggle = true, $pagination = true, $timelower = 0, $timeupper = 0) { + elgg_deprecated_notice("list_user_objects() was deprecated in favor of elgg_list_entities()", 1.8); $offset = (int) get_input('offset'); $limit = (int) $limit; @@ -618,9 +622,11 @@ $viewtypetoggle = true, $pagination = true, $timelower = 0, $timeupper = 0) { * @param int $offset Indexing offset, if any * * @return false|array An array of ElggObjects or false, depending on success + * @deprecated 1.8 Use elgg_get_entities_from_metadata() instead */ function get_user_objects_by_metadata($user_guid, $subtype = "", $metadata = array(), $limit = 0, $offset = 0) { + elgg_deprecated_notice("get_user_objects_by_metadata() was deprecated in favor of elgg_get_entities_from_metadata()", 1.8); return get_entities_from_metadata_multi($metadata, "object", $subtype, $user_guid, $limit, $offset); } -- cgit v1.2.3