aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-15 11:22:43 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-15 11:22:43 +0000
commitef3e87ebcf82fbf172aa719e23ef1a6cfca7a948 (patch)
tree881fdeca2ecdab5f8b565b249ba9e74dcab54369 /engine
parent5f4c987b91f5f75f9a0c5ef20ed7edcacc110a26 (diff)
downloadelgg-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
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/users.php9
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