From 7dbc5cd43f911a381011f4d220a8490f3049c27d Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 5 Jun 2008 17:06:35 +0000 Subject: Fixes for metadata and for the run order. git-svn-id: https://code.elgg.org/elgg/trunk@817 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/users.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'engine/lib/users.php') diff --git a/engine/lib/users.php b/engine/lib/users.php index b4fa795b8..ed73e7405 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -545,6 +545,23 @@ } return 0; } + + /** + * Get user objects by an array of metadata + * + * @param int $user_guid The GUID of the owning user + * @param string $subtype Optionally, the subtype of objects + * @paran array $metadata An array of metadata + * @param int $limit The number of results to return (default 10) + * @param int $offset Indexing offset, if any + * @return false|array An array of ElggObjects or false, depending on success + * @return unknown + */ + function get_user_objects_by_metadata($user_guid, $subtype = "", $metadata = array(), $limit = 0, $offset = 0) { + + return get_entities_from_metadata_multi($metadata,"object",$subtype,$user_guid,$limit,$offset); + + } /** * Get a user object from a GUID. -- cgit v1.2.3