aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/users.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-05 17:06:35 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-05 17:06:35 +0000
commit7dbc5cd43f911a381011f4d220a8490f3049c27d (patch)
tree3c9e6a35be9fd140bcfcaf407e9c953f578b1a1c /engine/lib/users.php
parentf98e97d304f47243d367c66a740ad653912ea57d (diff)
downloadelgg-7dbc5cd43f911a381011f4d220a8490f3049c27d.tar.gz
elgg-7dbc5cd43f911a381011f4d220a8490f3049c27d.tar.bz2
Fixes for metadata and for the run order.
git-svn-id: https://code.elgg.org/elgg/trunk@817 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r--engine/lib/users.php17
1 files changed, 17 insertions, 0 deletions
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.