diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-15 11:22:43 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-15 11:22:43 +0000 |
commit | ef3e87ebcf82fbf172aa719e23ef1a6cfca7a948 (patch) | |
tree | 881fdeca2ecdab5f8b565b249ba9e74dcab54369 | |
parent | 5f4c987b91f5f75f9a0c5ef20ed7edcacc110a26 (diff) | |
download | elgg-ef3e87ebcf82fbf172aa719e23ef1a6cfca7a948.tar.gz elgg-ef3e87ebcf82fbf172aa719e23ef1a6cfca7a948.tar.bz2 |
Introducing getFriendsObjects to ElggUser
git-svn-id: https://code.elgg.org/elgg/trunk@645 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | engine/lib/users.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php index a28a09ac3..dafd4945a 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -251,6 +251,15 @@ public function getObjects($subtype="", $limit = 10, $offset = 0) { return get_user_objects($this->getGUID(), $subtype, $limit, $offset); }
/**
+ * Get an array of ElggObjects owned by this user's friends.
+ *
+ * @param string $subtype The subtype of the objects, if any
+ * @param int $limit Number of results to return
+ * @param int $offset Any indexing offset
+ */
+ public function getFriendsObjects($subtype = "", $limit = 10, $offset = 0) { return get_user_friends_objects($this->getGUID(), $subtype, $limit, $offset); }
+
+ /**
* Counts the number of ElggObjects owned by this user
*
* @param string $subtype The subtypes of the objects, if any
|